summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index f14472181..ed887d216 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -164,6 +164,7 @@ function tpl_admin(){
*/
function tpl_metaheaders($alt=true){
global $ID;
+ global $REV;
global $INFO;
global $ACT;
global $lang;
@@ -291,6 +292,7 @@ function tpl_getparent($id){
function tpl_button($type){
global $ACT;
global $ID;
+ global $REV;
global $NS;
global $INFO;
global $conf;
@@ -604,7 +606,7 @@ function tpl_youarehere($sep=' » '){
}
// print current page, skipping start page, skipping for namespace index
- if($page == $part.$parts[$i]) return;
+ if(isset($page) && $page==$part.$parts[$i]) return;
$page = $part.$parts[$i];
if($page == $conf['start']) return;
echo $sep;