summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-06-16 10:01:44 +0200
committerAdrian Lang <lang@cosmocode.de>2010-06-16 10:02:27 +0200
commit782807733e52295b535005074a62cee46640b0db (patch)
tree8c52a95440213882aef6305e10fb03936253e2bc /inc/template.php
parent6709e843f0cb599daacc2afa793a3c17226a28a1 (diff)
downloadrpg-782807733e52295b535005074a62cee46640b0db.tar.gz
rpg-782807733e52295b535005074a62cee46640b0db.tar.bz2
Restore hiding of unavailable links
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/template.php b/inc/template.php
index 2ebc7a36d..6776d4a09 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -596,7 +596,6 @@ function tpl_actionlink($type,$pre='',$suf='',$inner='',$return=false){
$out = '';
$id = $ID;
$query = array();
- $build_link = true;
$more = '';
switch($type){
case 'edit':
@@ -640,7 +639,6 @@ function tpl_actionlink($type,$pre='',$suf='',$inner='',$return=false){
$more = 'class="action index" accesskey="x"';
break;
case 'top':
- $build_link = false;
$out = '<a href="#dokuwiki__top" class="action top" accesskey="x">'.
$pre.(($inner)?$inner:$lang['btn_top']).$suf.'</a>';
break;
@@ -692,11 +690,10 @@ function tpl_actionlink($type,$pre='',$suf='',$inner='',$return=false){
}
break;
default:
- $build_link = false;
$out = '[unknown link type]';
break;
}
- if ($build_link) {
+ if ($more !== '') {
if (is_array($query) && !isset($query['do'])) {
$query['do'] = $type;
}