X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=f7c929820d308640f7b3156d684b58d997417d70;hb=925b3ab565a0631a24dbe802a644edebe1d8c7a6;hp=d6532c445cc2ecafb6849d0095a5e1a67b1ce7cb;hpb=0844e3f8a6d3625608be50eba2b5bb3412e21a0d;p=friendica.git diff --git a/src/App.php b/src/App.php index d6532c445c..f7c929820d 100644 --- a/src/App.php +++ b/src/App.php @@ -1,6 +1,6 @@ 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()) { @@ -707,7 +707,9 @@ class App $input = array_merge($httpinput['variables'], $httpinput['files'], $request ?? $_REQUEST); // Let the module run it's internal process (init, get, post, ...) + $timestamp = microtime(true); $response = $module->run($input); + $this->profiler->set(microtime(true) - $timestamp, 'content'); if ($response->getHeaderLine(ICanCreateResponses::X_HEADER) === ICanCreateResponses::TYPE_HTML) { $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig); } else {