summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-25 19:59:29 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-25 19:59:29 +0100
commit2f2c518c20d6e55e20e9fc2fb0ec2053854b0d1b (patch)
tree51fc7b4a8e58dcca8efe346bc5ad77c0d953e6d4
parent5d873dd4ce31c79403a01ac0e40ff148be282592 (diff)
downloadrpg-2f2c518c20d6e55e20e9fc2fb0ec2053854b0d1b.tar.gz
rpg-2f2c518c20d6e55e20e9fc2fb0ec2053854b0d1b.tar.bz2
Show 'not logged in' only when logged out FS#2124
-rw-r--r--inc/lang/en/denied.txt2
-rw-r--r--inc/lang/en/lang.php1
-rw-r--r--inc/template.php2
3 files changed, 3 insertions, 2 deletions
diff --git a/inc/lang/en/denied.txt b/inc/lang/en/denied.txt
index 3ac72820c..6f7fe055e 100644
--- a/inc/lang/en/denied.txt
+++ b/inc/lang/en/denied.txt
@@ -1,4 +1,4 @@
====== Permission Denied ======
-Sorry, you don't have enough rights to continue. Perhaps you forgot to login?
+Sorry, you don't have enough rights to continue. @NOTLOGGEDIN@
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index cbdef8661..b95a8a58a 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -78,6 +78,7 @@ $lang['regbadmail'] = 'The given email address looks invalid - if you
$lang['regbadpass'] = 'The two given passwords are not identical, please try again.';
$lang['regpwmail'] = 'Your DokuWiki password';
$lang['reghere'] = 'You don\'t have an account yet? Just get one';
+$lang['notloggedin'] = 'Please be aware you are not logged in.';
$lang['profna'] = 'This wiki does not support profile modification';
$lang['profnochange'] = 'No changes, nothing to do.';
diff --git a/inc/template.php b/inc/template.php
index 0a6a9e4aa..c9d583d98 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -154,7 +154,7 @@ function tpl_content_core() {
html_resendpwd();
break;
case 'denied':
- print p_locale_xhtml('denied');
+ html_denied();
break;
case 'profile' :
html_updateprofile();