summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/l10n_client.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-10 21:31:50 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-10 21:31:50 -0700
commit7fddd2aced1821f977323fc75f2954f2b240ae37 (patch)
treeff44b50c5badfaa3618b3b3273a54e368c646ea1 /modules/gallery/controllers/l10n_client.php
parent3d60e39a7b46e61316780405616a47bf2000eb42 (diff)
Use abs_url() inside url::redirect() calls so that we don't just wind
up tacking onto the base url.
Diffstat (limited to 'modules/gallery/controllers/l10n_client.php')
-rw-r--r--modules/gallery/controllers/l10n_client.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gallery/controllers/l10n_client.php b/modules/gallery/controllers/l10n_client.php
index 16d39024..6e19310b 100644
--- a/modules/gallery/controllers/l10n_client.php
+++ b/modules/gallery/controllers/l10n_client.php
@@ -90,14 +90,14 @@ class L10n_Client_Controller extends Controller {
}
$session = Session::instance();
- $l10n_mode = $session->get("l10n_mode", false);
+ $l10n_mode = $session->get("l10n_mode", false);
$session->set("l10n_mode", !$l10n_mode);
$redirect_url = "admin/languages";
- if (!$l10n_mode) {
- $redirect_url .= "#l10n-client";
- }
-
+ if (!$l10n_mode) {
+ $redirect_url .= "#l10n-client";
+ }
+
url::redirect($redirect_url);
}