diff --git a/PHPCI/Helper/LoginIsDisabled.php b/PHPCI/Helper/LoginIsDisabled.php index 208aac23..d30fcd9f 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 @@ class LoginIsDisabled { 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 1bd68749..1aca09c1 100644 --- a/PHPCI/View/layout.phtml +++ b/PHPCI/View/layout.phtml @@ -135,8 +135,7 @@ - -LoginIsDisabled()): ?> +LoginIsDisabled()->check()): ?>