diff options
| author | jhilden <jakobhilden@gmail.com> | 2009-08-28 20:53:06 -0400 |
|---|---|---|
| committer | jhilden <jakobhilden@gmail.com> | 2009-08-28 20:53:06 -0400 |
| commit | c234f9fd392d355bb7a143e28474bb689ed65e48 (patch) | |
| tree | dec3a3c6eff4869440a796a1e79232008f56c1c2 /modules/gallery/controllers | |
| parent | 1ce8643b8056266139552045fcdb48bbdb9c665b (diff) | |
improved translations admin interface
Diffstat (limited to 'modules/gallery/controllers')
| -rw-r--r-- | modules/gallery/controllers/l10n_client.php | 11 |
1 files changed, 8 insertions, 3 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)); + $l10n_mode = $session->get("l10n_mode", false); + $session->set("l10n_mode", !$l10n_mode); - url::redirect("albums/1"); + $redirect_url = "admin/languages"; + if (!$l10n_mode) { + $redirect_url .= "#l10n-client"; + } + + url::redirect($redirect_url); } private static function _l10n_client_search_form() { |
