Reverted to old controller

This commit is contained in:
Michael 2018-01-04 13:05:50 +00:00
parent e96dbbe7f7
commit 36a922d312

View file

@ -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;
}
/**