From: Michael Date: Thu, 4 Jan 2018 13:05:50 +0000 (+0000) Subject: Reverted to old controller X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36a922d312e161d097e4a6ad47f76a28ad45cc76;p=friendica.git Reverted to old controller --- diff --git a/index.php b/index.php index e1995016ba..a20646cb0f 100644 --- a/index.php +++ b/index.php @@ -253,13 +253,9 @@ if (strlen($a->module)) { } // Controller class routing - $classes = ['Friendica\\Module\\' . ucfirst($a->module), 'Friendica\\Module\\' . ucfirst($a->module) . 'Module']; - foreach ($classes as $class) { - if (!$a->module_loaded && class_exists($class)) { - $a->module_class = $class; - $a->module_loaded = true; - break; - } + if (! $a->module_loaded && class_exists('Friendica\\Module\\' . ucfirst($a->module))) { + $a->module_class = 'Friendica\\Module\\' . ucfirst($a->module); + $a->module_loaded = true; } /**