Permalink
Browse files

BackwardsCompatibilityBreak - Changed the replacement token in fReque…

…st::overrideAction() from %%action%% to %action%
  • Loading branch information...
wbond committed Oct 13, 2008
1 parent 11cceba commit 093f2d2094293da5b00da1184458eb15ba2c58d1
Showing with 2 additions and 2 deletions.
  1. +2 −2 classes/fRequest.php
View
@@ -334,7 +334,7 @@ static public function isPut()
* This method is primarily intended to be used for hanlding multiple
* submit buttons.
*
* @param string $redirect The url to redirect to if the action is overriden. %%action%% will be replaced with the overridden action.
* @param string $redirect The url to redirect to if the action is overriden. %action% will be replaced with the overridden action.
* @return void
*/
static public function overrideAction($redirect=NULL)
@@ -355,7 +355,7 @@ static public function overrideAction($redirect=NULL)
}
if ($redirect && $found) {
fURL::redirect(str_replace('%%action%%', $found, $redirect));
fURL::redirect(str_replace('%action%', $found, $redirect));
}
}

0 comments on commit 093f2d2

Please sign in to comment.