Skip to content
Permalink
Browse files

Changed title of error page

  • Loading branch information...
Thoulah committed May 9, 2019
1 parent 2c6363f commit 02571f8ae89410fd01a7d1550c21d107d1da5b5b

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -4,4 +4,3 @@
echo $content;
$this->endBody();
$this->endPage();
?>
@@ -79,6 +79,7 @@
'Email Address' => 'E-Mail-Addresse',
'Email Message' => 'E-Mail Nachricht',
'End Date' => 'Enddatum',
'Error {statusCode}' => 'Fehler {statusCode}',
'Favicon Converter' => 'Favicon-Konverter',
'File {name} Selected' => 'Datei {name} ausgewählt',
'First Name' => 'Vorname',
@@ -79,6 +79,7 @@
'Email Address' => 'Адрес электронной почты',
'Email Message' => 'Сообщение электронной почты',
'End Date' => 'Дата окончания',
'Error {statusCode}' => 'Ошибка {statusCode}',
'Favicon Converter' => 'Конвертер Favicon',
'File {name} Selected' => 'Выбран файл {name}',
'First Name' => 'Имя',
@@ -8,7 +8,7 @@ public function push(): array {
$payload = json_decode(Yii::$app->request->post('payload'));
$controller = new FeedController(Yii::$app->controller->id, Yii::$app);
$controller->limit = 5;
$controller->actionWebfeed('atom', 'Mr42Commits', "https://github.com/{$payload->repository->full_name}/commits/{$payload->repository->default_branch}.atom", 'content');
$controller->actionWebfeed('Mr42Commits', "https://github.com/{$payload->repository->full_name}/commits/{$payload->repository->default_branch}.atom", 'content');
return ['status' => 'success', 'message' => 'Successfully updated.'];
}
@@ -1,7 +1,8 @@
<?php
use yii\bootstrap4\Html;
use Yii;
$this->title = $name;
$this->title = Yii::t('mr42', 'Error {statusCode}', ['statusCode' => Yii::$app->response->statusCode]);
echo Html::tag('h1', $this->title);
echo Html::tag('div', nl2br($message, false), ['class' => 'alert alert-danger']);

0 comments on commit 02571f8

Please sign in to comment.
You can’t perform that action at this time.