Reverted to old controller
This commit is contained in:
parent
e96dbbe7f7
commit
36a922d312
10
index.php
10
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user