From c9ce1b7a2d724d523b026f73d02a3097f10adf10 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Fri, 13 Mar 2015 22:03:29 +0100 Subject: [PATCH] baculum: Tweak exit from wizard and directors get --- gui/baculum/protected/Pages/ConfigurationWizard.php | 2 +- gui/baculum/protected/Pages/Home.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/baculum/protected/Pages/ConfigurationWizard.php b/gui/baculum/protected/Pages/ConfigurationWizard.php index 29472aaac2..a296552784 100644 --- a/gui/baculum/protected/Pages/ConfigurationWizard.php +++ b/gui/baculum/protected/Pages/ConfigurationWizard.php @@ -114,7 +114,7 @@ class ConfigurationWizard extends BaculumPage $urlPrefix = $this->Application->getModule('friendly-url')->getUrlPrefix(); $location = sprintf("%s://%s:%s@%s:%d%s", $http_protocol, $cfgData['baculum']['login'], $cfgData['baculum']['password'], $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $urlPrefix); header("Location: $location"); - exit(); + return; } else { // standard version (user defined auth method) $this->goToDefaultPage(); } diff --git a/gui/baculum/protected/Pages/Home.php b/gui/baculum/protected/Pages/Home.php index 9e10ac9d38..84097554c6 100644 --- a/gui/baculum/protected/Pages/Home.php +++ b/gui/baculum/protected/Pages/Home.php @@ -45,9 +45,8 @@ class Home extends BaculumPage $this->Logging->Checked = $this->getModule('logging')->isDebugOn(); } - $directors = $this->getModule('api')->get(array('directors'))->output; - if(!$this->IsPostBack && !$this->IsCallBack) { + $directors = $this->getModule('api')->get(array('directors'))->output; if(!array_key_exists('director', $_SESSION)) { $_SESSION['director'] = $directors[0]; } -- 2.39.5