diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-07-20 12:22:52 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-07-20 12:22:52 -0700 |
commit | 9db310186a276f4cd2d07534a7184a801ae4f167 (patch) | |
tree | 0128517021685e7c902ce7043448ca041d9c5aa4 /modules/gallery/helpers/gallery_theme.php | |
parent | 112582daeb73f9ae1cc3862ec635b393499eed6d (diff) |
Use Session::get_once() instead of Session::get() followed by Session::delete();
Diffstat (limited to 'modules/gallery/helpers/gallery_theme.php')
-rw-r--r-- | modules/gallery/helpers/gallery_theme.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index 62deb831..0d7cc44a 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -79,8 +79,7 @@ class gallery_theme_Core { return L10n_Client_Controller::l10n_form(); } - if ($session->get("after_install")) { - $session->delete("after_install"); + if ($session->get_once("after_install")) { return new View("welcome_message_loader.html"); } } |