Skip to content

Commit

Permalink
Use "continue_url" instead of "continue" for consistency with the
Browse files Browse the repository at this point in the history
reauth code.
  • Loading branch information
bharat committed Jun 12, 2010
1 parent b61b506 commit c026da8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gallery/controllers/logout.php
Expand Up @@ -21,7 +21,7 @@ class Logout_Controller extends Controller {
public function index() {
access::verify_csrf();
auth::logout();
if ($continue_url = Input::instance()->get("continue")) {
if ($continue_url = Input::instance()->get("continue_url")) {
url::redirect($continue_url);
}
url::redirect(item::root()->abs_url());
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/helpers/gallery_event.php
Expand Up @@ -171,7 +171,7 @@ static function user_menu($menu, $theme) {
$menu->append(Menu::factory("link")
->id("user_menu_logout")
->css_id("g-logout-link")
->url(url::site("logout?csrf=$csrf&continue=" .
->url(url::site("logout?csrf=$csrf&continue_url=" .
urlencode($continue_url)))
->label(t("Logout")));
}
Expand Down

0 comments on commit c026da8

Please sign in to comment.