diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-29 14:02:29 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-29 14:02:29 -0600 |
commit | a9fcec755a835e284465bafcc9aba9ec9c2f0f62 (patch) | |
tree | 1b6a6029d18ee7cb350f47dd5be54a9bbbbebd17 /modules/gallery/controllers | |
parent | 5db0b68a70434a16d8881a6e560a9526530a8a60 (diff) | |
parent | 6b633e87489acbe79d65fc5e089d35cc27ee691c (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/l10n_client.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/gallery/controllers/l10n_client.php b/modules/gallery/controllers/l10n_client.php index 831c79c1..0775791e 100644 --- a/modules/gallery/controllers/l10n_client.php +++ b/modules/gallery/controllers/l10n_client.php @@ -90,10 +90,15 @@ class L10n_Client_Controller extends Controller { } $session = Session::instance(); - $session->set("l10n_mode", - !$session->get("l10n_mode", false)); - - url::redirect("albums/1"); + $l10n_mode = $session->get("l10n_mode", false); + $session->set("l10n_mode", !$l10n_mode); + + $redirect_url = "admin/languages"; + if (!$l10n_mode) { + $redirect_url .= "#l10n-client"; + } + + url::redirect($redirect_url); } private static function _l10n_client_search_form() { |