From 9db310186a276f4cd2d07534a7184a801ae4f167 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 20 Jul 2010 12:22:52 -0700 Subject: [PATCH] Use Session::get_once() instead of Session::get() followed by Session::delete(); --- modules/gallery/helpers/gallery_theme.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index 62deb83147..0d7cc44ab4 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -79,8 +79,7 @@ static function page_bottom($theme) { 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"); } }