From: fabrixxm Date: Tue, 23 Oct 2018 15:27:53 +0000 (+0200) Subject: Replace Frienica\Core\Addon::isApp() withi Friendica\Core\Hook::isAddonApp() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=035603a516c627e786301b7be6ce650e5783043b;p=friendica.git Replace Frienica\Core\Addon::isApp() withi Friendica\Core\Hook::isAddonApp() fix #6010 --- diff --git a/src/App.php b/src/App.php index 0ba8207798..f24a4cffa4 100644 --- a/src/App.php +++ b/src/App.php @@ -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";