From 2f2c518c20d6e55e20e9fc2fb0ec2053854b0d1b Mon Sep 17 00:00:00 2001 From: Gerrit Uitslag Date: Tue, 25 Feb 2014 19:59:29 +0100 Subject: Show 'not logged in' only when logged out FS#2124 --- inc/lang/en/denied.txt | 2 +- inc/lang/en/lang.php | 1 + inc/template.php | 2 +- 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(); -- cgit v1.2.3