diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-08-29 10:49:25 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-29 10:49:25 -0700 | 
| commit | 1527f149a90a46428c48b4b811d4b8ecc10b9d2c (patch) | |
| tree | 5132259e5e703dce92e8a025d007de3b220d8457 /modules/gallery/controllers/l10n_client.php | |
| parent | b833cb607323000b987428c94995e18a9d07df65 (diff) | |
| parent | b518a5173da57d65d454518fd2400fe28cdfef3c (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/l10n_client.php')
| -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() { | 
