X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fredirectingaction.php;h=3a358f891c6c0c83f4ec8d21af4dc086dd72c930;hb=621233e1ad6956cfb543042a1493a04b243e92ca;hp=f1158527424f3fd5a1c27739da3fd54d56d0c00e;hpb=1f8451f4aa9128e55d4b274faf7f0cd19d56e2b8;p=quix0rs-gnu-social.git diff --git a/lib/redirectingaction.php b/lib/redirectingaction.php index f115852742..3a358f891c 100644 --- a/lib/redirectingaction.php +++ b/lib/redirectingaction.php @@ -53,12 +53,13 @@ class RedirectingAction extends Action * * To be called only after successful processing. * - * @fixme rename this -- it obscures Action::returnToArgs() which - * returns a list of arguments, and is a bit confusing. + * Note: this was named returnToArgs() up through 0.9.2, which + * caused problems because there's an Action::returnToArgs() + * already which does something different. * * @return void */ - function returnToArgs() + function returnToPrevious() { // Now, gotta figure where we go back to $action = false; @@ -77,7 +78,7 @@ class RedirectingAction extends Action if ($action) { common_redirect(common_local_url($action, $args, $params), 303); } else { - $url = $this->defaultReturnToUrl(); + $url = $this->defaultReturnTo(); } common_redirect($url, 303); }