Skip to content

Commit 22e993c

Browse files
authored
Merge pull request #69 from uzulla/fix/61-add-title-to-admin-login-page
(68後にマージください)Fix/61 管理画面ログインページのタイトルタグ指定
2 parents 9a24bc5 + d5e88ba commit 22e993c

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed
394 Bytes
Binary file not shown.

app/locale/en_US.UTF-8/LC_MESSAGES/messages.po

+3
Original file line numberDiff line numberDiff line change
@@ -2464,3 +2464,6 @@ msgstr "{%displayNone}"
24642464

24652465
#~ msgid "system-date-format"
24662466
#~ msgstr "dd/mm/yy"
2467+
2468+
msgid "Login to Administration page"
2469+
msgstr ""
2.54 KB
Binary file not shown.

app/locale/ja_JP.UTF-8/LC_MESSAGES/messages.po

+3
Original file line numberDiff line numberDiff line change
@@ -2511,3 +2511,6 @@ msgstr "さん"
25112511

25122512
#~ msgid "Midway"
25132513
#~ msgstr "ミッドウェー島"
2514+
2515+
msgid "Login to Administration page"
2516+
msgstr "管理画面へログイン"

app/src/Web/Controller/Admin/UsersController.php

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public function login()
137137
}
138138

139139
$request = Request::getInstance();
140+
$this->set('html_title', __('Login to Administration page'));
140141

141142
// 初期表示時
142143
if (!$request->get('user')) {

app/view/admin/layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html lang="<?php echo \Fc2blog\Config::get('LANG'); ?>">
44
<head>
55
<meta charset="utf-8">
6-
<title><?php echo \Fc2blog\Web\Session::get('blog_id'); ?></title>
6+
<title><?php if(isset($html_title)) {echo h($html_title);} else {echo h(\Fc2blog\Web\Session::get('blog_id'));} ?></title>
77
<link rel="icon" href="https://static.fc2.com/share/image/favicon.ico">
88
<link rel="stylesheet" href="/css/normalize.css" type="text/css" media="all">
99
<link rel="stylesheet" href="/css/admin-fc2.css" type="text/css" media="all">

0 commit comments

Comments
 (0)