]> git.mxchange.org Git - friendica.git/commitdiff
Replace Frienica\Core\Addon::isApp() withi Friendica\Core\Hook::isAddonApp()
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 23 Oct 2018 15:27:53 +0000 (17:27 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 23 Oct 2018 15:27:53 +0000 (17:27 +0200)
fix #6010

src/App.php

index 0ba82077985774e9728d03afc27d17758a7a0e67..f24a4cffa4fc946862499b5c3391384a6b628f93 100644 (file)
@@ -1774,7 +1774,7 @@ class App
                        $privateapps = Core\Config::get('config', 'private_addons', false);
                        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) {
+                               if ((!local_user()) && Core\Hook::isAddonApp($this->module) && $privateapps) {
                                        info(Core\L10n::t("You must be logged in to use addons. "));
                                } else {
                                        include_once "addon/{$this->module}/{$this->module}.php";