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:
Philipp Holzer 2021-11-19 22:47:48 +01:00
parent 4d7c1e795d
commit 82cef20e60
Signed by: nupplaPhil
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) {