summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-03-04 21:27:10 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-03-04 21:27:10 +0100
commitf019ab46c33b430831053cd41b5b04a163fd529f (patch)
tree085955989a1c5e564d4b871d3caceb8c7dc911be
parent8daa2c9f98ef02857c1d92f2f226288c313146a7 (diff)
downloadrpg-f019ab46c33b430831053cd41b5b04a163fd529f.tar.gz
rpg-f019ab46c33b430831053cd41b5b04a163fd529f.tar.bz2
added login form at denied access page
- restore lang string as well
-rw-r--r--inc/html.php4
-rw-r--r--inc/lang/en/lang.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 507ba511e..514f961e7 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -81,6 +81,10 @@ function html_denied() {
$denied
);
print $denied;
+
+ if(!$_SERVER['REMOTE_USER']){
+ html_login();
+ }
}
/**
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index b95a8a58a..fccb470e3 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -78,7 +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['notloggedin'] = 'Perhaps you forgot to login?';
$lang['profna'] = 'This wiki does not support profile modification';
$lang['profnochange'] = 'No changes, nothing to do.';