summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-07-14 11:30:28 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-07-14 11:30:28 +0200
commit75e487e9d106f5e0a60b5b66552c332c79637442 (patch)
treed342ace912d844a244fe2225f166be88d868ba1d
parentb4df946b91dc57d647aa5cc8256d6c8a8206a7a3 (diff)
downloadrpg-75e487e9d106f5e0a60b5b66552c332c79637442.tar.gz
rpg-75e487e9d106f5e0a60b5b66552c332c79637442.tar.bz2
fix for old revision button and action disabling
darcs-hash:20060714093028-7ad00-6d5a07d8bb7a21e315ee52da237085321be1a7a9.gz
-rw-r--r--inc/template.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index ed887d216..faf38a642 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -298,7 +298,10 @@ function tpl_button($type){
global $conf;
global $auth;
- if(!actionOK($type)) return;
+ // check disabled actions and fix the badly named ones
+ $ctype = $type;
+ if($type == 'history') $ctype='revisions';
+ if(!actionOK($ctype)) return;
switch($type){
case 'edit':
@@ -408,7 +411,10 @@ function tpl_actionlink($type,$pre='',$suf=''){
global $lang;
global $auth;
- if(!actionOK($type)) return;
+ // check disabled actions and fix the badly named ones
+ $ctype = $type;
+ if($type == 'history') $ctype='revisions';
+ if(!actionOK($ctype)) return;
switch($type){
case 'edit':