From 36a922d312e161d097e4a6ad47f76a28ad45cc76 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 4 Jan 2018 13:05:50 +0000 Subject: [PATCH] Reverted to old controller --- index.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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; } /** -- 2.39.5