]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #5995 from FiXato/patch-1
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 23 Oct 2018 01:13:22 +0000 (21:13 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Oct 2018 01:13:22 +0000 (21:13 -0400)
Updated Friendiqa's links

src/App.php

index 081e7785e59e2579992ab4407de118322bd6987c..8cd3b74f99483a11f5a009cbfb402280016257b2 100644 (file)
@@ -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. "));