Split and delete ModuleController
- $moduleName is part of the argument string => App\Arguments - $isBackend boolean already part of App\Mode::isBackend() - $module is now the direct return of App\Router::getModule() - ModuleController::run() moved to BaseModule::run()
This commit is contained in:
parent
4d7c1e795d
commit
82cef20e60
|
@ -29,7 +29,7 @@ function rendertime_page_end(Friendica\App $a, &$o)
|
|||
$duration = microtime(true) - $profiler->get('start');
|
||||
|
||||
$ignored_modules = ["fbrowser"];
|
||||
$ignored = in_array(DI::module()->getName(), $ignored_modules);
|
||||
$ignored = in_array(DI::args()->getModuleName(), $ignored_modules);
|
||||
|
||||
if ($a->isSiteAdmin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user