Skip to content

Commit

Permalink
Use Session::get_once() instead of Session::get() followed by Session…
Browse files Browse the repository at this point in the history
…::delete();
  • Loading branch information
bharat committed Jul 20, 2010
1 parent 112582d commit 9db3101
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/gallery/helpers/gallery_theme.php
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit 9db3101

Please sign in to comment.