summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index 7dc08087d..7dd7e91cb 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -526,8 +526,8 @@ function tpl_actionlink($type,$pre='',$suf=''){
print '<a href="#dokuwiki__top" class="action top" accesskey="x">'.$pre.$lang['btn_top'].$suf.'</a>';
return true;
case 'back':
- if ($ID = tpl_getparent($ID)) {
- tpl_link(wl($ID,'do=show'),$pre.$lang['btn_back'].$suf,'class="action back" accesskey="b"');
+ if ($parent = tpl_getparent($ID)) {
+ tpl_link(wl($parent,'do=show'),$pre.$lang['btn_back'].$suf,'class="action back" accesskey="b"');
return true;
}
return false;