From c5bdafeaa3cb20de4b8a09717c10a7af4987cfd1 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 22 Jan 2015 09:17:58 +0000 Subject: [PATCH] Fixing login is disabled checks --- PHPCI/Helper/LoginIsDisabled.php | 4 +++- PHPCI/View/layout.phtml | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PHPCI/Helper/LoginIsDisabled.php b/PHPCI/Helper/LoginIsDisabled.php index 208aac235..d30fcd9f1 100644 --- a/PHPCI/Helper/LoginIsDisabled.php +++ b/PHPCI/Helper/LoginIsDisabled.php @@ -9,6 +9,8 @@ namespace PHPCI\Helper; +use b8\Config; + /** * Login Is Disabled Helper - Checks if login is disalbed in the view * @author Stephen Ball @@ -27,7 +29,7 @@ public function __call($method, $params = array()) { unset($method, $params); - $config = b8\Config::getInstance(); + $config = Config::getInstance(); $state = (bool) $config->get('phpci.authentication_settings.state', false); return (false !== $state); diff --git a/PHPCI/View/layout.phtml b/PHPCI/View/layout.phtml index 1bd687497..1aca09c1e 100644 --- a/PHPCI/View/layout.phtml +++ b/PHPCI/View/layout.phtml @@ -135,8 +135,7 @@ - -LoginIsDisabled()): ?> +LoginIsDisabled()->check()): ?>