diff --git a/application/controllers/SetupController.php b/application/controllers/SetupController.php index 3b59e266f..b491446e0 100644 --- a/application/controllers/SetupController.php +++ b/application/controllers/SetupController.php @@ -27,7 +27,7 @@ class SetupController extends ActionController $installer = $wizard->getInstaller(); $success = $installer->run(); if ($success) { - $wizard->getSession()->clear(); + $wizard->clearSession(); } else { $wizard->setIsFinished(false); } diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index db81d497e..a1c18ab4b 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -407,6 +407,14 @@ class Wizard return Session::getSession()->getNamespace(get_class($this)); } + /** + * Clear the session being used by this wizard + */ + public function clearSession() + { + $this->getSession()->clear(); + } + /** * Add buttons to the given page based on its position in the page-chain *