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()
pull/1209/head
Philipp 2021-11-19 22:47:48 +01:00
parent 4d7c1e795d
commit 82cef20e60
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
1 changed files with 1 additions and 1 deletions

View File

@ -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) {