// Allow folks to override user themes and always use their own on their own site.
// This works only if the user is on the same server
$user = $this->database->selectFirst('user', ['theme'], ['uid' => $this->profile_owner]);
- if ($this->database->isResult($user) && !$this->pConfig->get(local_user(), 'system', 'always_my_theme')) {
+ if ($this->database->isResult($user) && !local_user()) {
$page_theme = $user['theme'];
}
}
if (!empty($this->profile_owner) && ($this->profile_owner != local_user())) {
// Allow folks to override user themes and always use their own on their own site.
// This works only if the user is on the same server
- if (!$this->pConfig->get(local_user(), 'system', 'always_my_theme')) {
+ if (!local_user()) {
$page_mobile_theme = $this->pConfig->get($this->profile_owner, 'system', 'mobile-theme');
}
}
$this->profiler->set(microtime(true), 'classinit');
$moduleName = $this->args->getModuleName();
+ $page->setLogging($this->args->getCommand(), $this->args->getMethod());
try {
// Missing DB connection: ERROR
if ($this->mode->has(App\Mode::LOCALCONFIGPRESENT) && !$this->mode->has(App\Mode::DBAVAILABLE)) {
- throw new HTTPException\InternalServerErrorException('Apologies but the website is unavailable at the moment.');
+ throw new HTTPException\InternalServerErrorException($this->l10n->t('Apologies but the website is unavailable at the moment.'));
}
if (!$this->mode->isInstall()) {
} catch (HTTPException $e) {
(new ModuleHTTPException())->rawContent($e);
}
+ $page->logRuntime($this->config, 'runFrontend');
}
/**