diff options
author | Chris Smith <chris@jalakai.co.uk> | 2007-09-30 04:10:40 +0200 |
---|---|---|
committer | Chris Smith <chris@jalakai.co.uk> | 2007-09-30 04:10:40 +0200 |
commit | 103c256a6f9161bec0a89e70eb600c84bcb51e50 (patch) | |
tree | 022946b4decc8d7297552d183280900042a5bd32 /inc/template.php | |
parent | 25ec097b5237c0e0cffd5c26918898836516aff6 (diff) | |
download | rpg-103c256a6f9161bec0a89e70eb600c84bcb51e50.tar.gz rpg-103c256a6f9161bec0a89e70eb600c84bcb51e50.tar.bz2 |
add page_exists function (inc/pageutils.php)
bool page_exists($id, $rev
darcs-hash:20070930021040-d26fc-e3847bfdd20a36154685262eca94211cfd461e83.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index 5879d98db..d84aad8db 100644 --- a/inc/template.php +++ b/inc/template.php @@ -812,7 +812,7 @@ function tpl_youarehere($sep=' » '){ $page = $part.$parts[$i]; if($page == $conf['start']) return; echo $sep; - if(@file_exists(wikiFN($page))){ + if(page_exists($page)){ $title = p_get_first_heading($page); if(!$title) $title = $parts[$i]; tpl_link(wl($page),hsc($title),'title="'.$page.'"'); |