Skip to content
Snippets Groups Projects
Commit 75e487e9 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix for old revision button and action disabling

darcs-hash:20060714093028-7ad00-6d5a07d8bb7a21e315ee52da237085321be1a7a9.gz
parent b4df946b
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment