X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=app%2Fauthorize.php;fp=app%2Fauthorize.php;h=81f95b1c5285426bafc770f85320010d8b1c2c9f;hp=a37bd4a0f63aea6bd028830bffb5a5e0504a0c47;hb=3f24953f10063243a61eb2f9ddcb3e8888f96147;hpb=1b90529e881cefefb19cb50cb627d24b4753b587 diff --git a/app/authorize.php b/app/authorize.php index a37bd4a..81f95b1 100644 --- a/app/authorize.php +++ b/app/authorize.php @@ -15,7 +15,8 @@ $errors = $utils->checkForSecureConnection(); $utils->sendSecurityHeaders(); // Initialize the HTML document with our basic elements. -extract($utils->initHTMLDocument('Authorization Request | KaiRo.at', 'KaiRo.at Authentication Server')); // sets $document, $html, $head, $title, $body +extract($utils->initHTMLDocument(sprintf(_('Authorization Request | %s'), $utils->settings['operator_name']), + sprintf(_('%s Authentication Server'), $utils->settings['operator_name']))); // sets $document, $html, $head, $title, $body if (!count($errors)) { $session = $utils->initSession(); // Read session or create new session and set cookie. @@ -39,7 +40,8 @@ if (!count($errors)) { $user = array('id' => 0, 'email' => ''); } if (is_null($session)) { - $errors[] = _('The session system is not working.').' '._('Please contact KaiRo.at and tell the team about this.'); + $errors[] = _('The session system is not working.').' ' + .sprintf(_('Please contact %s and tell the team about this.'), $utils->settings['operator_contact_url'], $utils->settings['operator_name']); } elseif ($session['logged_in']) { // We are logged in, process authorization request.