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 // Controller class routing
$classes = ['Friendica\\Module\\' . ucfirst($a->module), 'Friendica\\Module\\' . ucfirst($a->module) . 'Module']; if (! $a->module_loaded && class_exists('Friendica\\Module\\' . ucfirst($a->module))) {
foreach ($classes as $class) { $a->module_class = 'Friendica\\Module\\' . ucfirst($a->module);
if (!$a->module_loaded && class_exists($class)) { $a->module_loaded = true;
$a->module_class = $class;
$a->module_loaded = true;
break;
}
} }
/** /**