From b6a0b686c4c0c0be301db273b192cbd6c8acbc39 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 22 Oct 2018 21:09:53 -0400 Subject: [PATCH] Fix missing instance of Addon::isEnabled in App --- src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index 081e7785e5..8cd3b74f99 100644 --- a/src/App.php +++ b/src/App.php @@ -1772,7 +1772,7 @@ class App } $privateapps = Core\Config::get('config', 'private_addons', false); - if (is_array($this->addons) && in_array($this->module, $this->addons) && file_exists("addon/{$this->module}/{$this->module}.php")) { + if (Core\Addon::isEnabled($this->module) && file_exists("addon/{$this->module}/{$this->module}.php")) { //Check if module is an app and if public access to apps is allowed or not if ((!local_user()) && Core\Addon::isApp($this->module) && $privateapps) { info(Core\L10n::t("You must be logged in to use addons. "));