summaryrefslogtreecommitdiffstats
path: root/template/admin/html/auth.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-08-11 03:24:07 +0200
committerThomas Lange <code@nerdmind.de>2017-08-11 03:24:07 +0200
commita9684792106e4de3aa622d33a0ed7780cbd67ad0 (patch)
tree4051a0a99e2b4388bd919d3c90444d6b612a0400 /template/admin/html/auth.php
parent6c550895ef0f27bf84b8a5d7917eeee3e3122f67 (diff)
downloadblog-a9684792106e4de3aa622d33a0ed7780cbd67ad0.tar.gz
blog-a9684792106e4de3aa622d33a0ed7780cbd67ad0.tar.xz
blog-a9684792106e4de3aa622d33a0ed7780cbd67ad0.zip
Several changes have been made in this commit, which together with the previous commits result in version 2.3:v2.3
+ Optimization: Originally, the core and template languages were completely separated in the logic of the Language class and you had to use "$Language->text()" to get a core language string and "$Language->template()" to get a template language string. Since this commit, the core and template language strings are still located in different files, but you now have to use "$Language->text()" for core and template language strings both. Thus, you can now even overwrite a core language string from the language file of a template if the core language string does not satisfy you. + Deprecated: The method "$Language->template()" was marked as deprecated and will be removed in further versions (currently, it's just an alias for "$Language->text()"). Template upgrade to version 2.3 (only for customized templates): SEARCH: $Language->template REPLACE: $Language->text
Diffstat (limited to 'template/admin/html/auth.php')
-rw-r--r--template/admin/html/auth.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/template/admin/html/auth.php b/template/admin/html/auth.php
index 186c096..6aec620 100644
--- a/template/admin/html/auth.php
+++ b/template/admin/html/auth.php
@@ -1,5 +1,5 @@
-<h1><?=$Language->template('authentication_text')?></h1>
-<p><?=$Language->template('authentication_desc')?></p>
+<h1><?=$Language->text('authentication_text')?></h1>
+<p><?=$Language->text('authentication_desc')?></p>
<form action="" method="POST">
<input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" />
@@ -17,18 +17,18 @@
<div class="flex">
<div class="flex-item">
<div class="form-icon-flex"><i class="fa fa-user-secret"></i></div>
- <div class="form-label-flex"><label for="form_username"><?=$Language->template('label_username')?></label></div>
+ <div class="form-label-flex"><label for="form_username"><?=$Language->text('label_username')?></label></div>
<div class="form-field-flex"><input id="form_username" name="username" value="<?=escapeHTML($FORM['DATA']['USERNAME'])?>" /></div>
</div>
</div>
<div class="flex">
<div class="flex-item">
<div class="form-icon-flex"><i class="fa fa-key"></i></div>
- <div class="form-label-flex"><label for="form_password"><?=$Language->template('label_password')?></label></div>
+ <div class="form-label-flex"><label for="form_password"><?=$Language->text('label_password')?></label></div>
<div class="form-field-flex"><input type="password" id="form_password" name="password" /></div>
</div>
</div>
<div class="flex flex-padding background">
- <input type="submit" name="auth" value="Auth" />
+ <input type="submit" name="auth" value="<?=$Language->text('login')?>" />
</div>
</form> \ No newline at end of file