diff options
author | chris <chris@jalakai.co.uk> | 2006-09-23 22:36:09 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-09-23 22:36:09 +0200 |
commit | bb4866bd74ec6b55bf41e75c158d940dced91f2f (patch) | |
tree | fd3bf3458189d8ef7d5854720af2f825fd874d28 /inc/template.php | |
parent | a424cd8e52ec6e1e860e19467c8cea23871f611f (diff) | |
download | rpg-bb4866bd74ec6b55bf41e75c158d940dced91f2f.tar.gz rpg-bb4866bd74ec6b55bf41e75c158d940dced91f2f.tar.bz2 |
minor bugfix and boring error removal
darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/template.php b/inc/template.php index b03a0b2ee..bcfbff8ea 100644 --- a/inc/template.php +++ b/inc/template.php @@ -139,7 +139,7 @@ function tpl_content_core(){ function tpl_admin(){ $plugin = NULL; - if ($_REQUEST['page']) { + if (!empty($_REQUEST['page'])) { $pluginlist = plugin_list('admin'); if (in_array($_REQUEST['page'], $pluginlist)) { @@ -181,7 +181,7 @@ function tpl_metaheaders($alt=true){ $head['meta'][] = array( 'name'=>'generator', 'content'=>'DokuWiki '.getVersion() ); $head['link'][] = array( 'rel'=>'start', 'href'=>'DOKU_BASE' ); $head['link'][] = array( 'rel'=>'contents', 'href'=> wl($ID,'do=index',false,'&'), - 'title'=>$lang['index'] ); + 'title'=>$lang['btn_index'] ); if($alt){ $head['link'][] = array( 'rel'=>'alternate', 'type'=>'application/rss+xml', @@ -223,7 +223,7 @@ function tpl_metaheaders($alt=true){ } // keywords (explicit or implicit) - if($INFO['meta']['subject']){ + if(!empty($INFO['meta']['subject'])){ $head['meta'][] = array( 'name'=>'keywords', 'content'=>join(',',$INFO['meta']['subject'])); }else{ $head['meta'][] = array( 'name'=>'keywords', 'content'=>str_replace(':',',',$ID)); @@ -369,7 +369,7 @@ function tpl_button($type){ #most complicated type - we need to decide on current action if($ACT == 'show' || $ACT == 'search'){ if($INFO['writable']){ - if($INFO['draft']){ + if(!empty($INFO['draft'])){ echo html_btn('draft',$ID,'e',array('do' => 'draft'),'post'); }else{ if($INFO['exists']){ |