Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Add url to retourMatch #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ In your main plugin class file, simply add this function:
* 'hitCount' => the number of times this redirect has been matched, and the redirect done in the browser
* 'hitLastTime' => the date and time of the when this redirect was matched
* 'locale' => the locale of this redirect
* )
* ),
* 'url' => the url to match
* );
* @return bool Return true if it's a match, false otherwise
*/
Expand Down
1 change: 1 addition & 0 deletions services/RetourService.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public function lookupRedirect($url, $redirects)
$args = array(
array(
'redirect' => &$redirect,
'url' => $url,
),
);
$result = call_user_func_array(array($plugin, "retourMatch"), $args);
Expand Down