/** * Returns the template parameters. * * @param string $view The name of the view * @param int $statusCode The HTTP status code * @param string $basePath The base path * * @return array|null The template parameters or null */ private function getTemplateParameters($view, $statusCode, $basePath) { if (null === ($labels = $this->loadLanguageStrings())) { return null; } $encoded = StringUtil::encodeEmail($this->config->get('adminEmail')); return ['statusCode' => $statusCode, 'error' => $labels, 'template' => $view, 'base' => $basePath, 'adminEmail' => 'mailto:' . $encoded]; }
/** * Sets the time zone. */ private function setTimezone() { $this->iniSet('date.timezone', $this->config->get('timeZone')); date_default_timezone_set($this->config->get('timeZone')); }