summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2008-10-12 21:42:06 +0200
committerAnika Henke <anika@selfthinker.org>2008-10-12 21:42:06 +0200
commit27eb9321718ffb7a4140a7eea2f05db196c5e63c (patch)
tree5e06376f1764dd22b30945a1b9095d25d2d20d3b /inc
parent07493d0546e04d6abc0c398b7e360139a58891a8 (diff)
downloadrpg-27eb9321718ffb7a4140a7eea2f05db196c5e63c.tar.gz
rpg-27eb9321718ffb7a4140a7eea2f05db196c5e63c.tar.bz2
show pagesource when locked (FS#443)
darcs-hash:20081012194206-f7d6d-e6372bf1e518650ff71a811b78b3231b1dab1219.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/html.php2
-rw-r--r--inc/template.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 570f12b17..f15faf961 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1074,7 +1074,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed?
}
}
- $wr = $INFO['writable'];
+ $wr = $INFO['writable'] && !$INFO['locked'];
if($wr){
if ($REV) print p_locale_xhtml('editrev');
print p_locale_xhtml($include);
diff --git a/inc/template.php b/inc/template.php
index 7fea8c7ac..f5f2e7760 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -107,6 +107,7 @@ function tpl_content_core(){
break;
case 'locked':
html_locked();
+ html_edit();
break;
case 'login':
html_login();