From 0b7c14c22e9810803e87a882cd9b3597b27fe74f Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 4 May 2005 21:22:03 +0200 Subject: local links added #297 darcs-hash:20050504192203-9977f-004cc04b0753fc5d36d4515519c54039e73e77de.gz --- inc/pageutils.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'inc/pageutils.php') diff --git a/inc/pageutils.php b/inc/pageutils.php index 488d268fe..fdece44e4 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -188,6 +188,7 @@ function resolve_mediaid($ns,&$page,&$exists){ */ function resolve_pageid($ns,&$page,&$exists){ global $conf; + $exists = false; //if links starts with . add current namespace if($page{0} == '.'){ @@ -206,8 +207,6 @@ function resolve_pageid($ns,&$page,&$exists){ $file = wikiFN($page); - $exists = false; - //check alternative plural/nonplural form if(!@file_exists($file)){ if( $conf['autoplural'] ){ -- cgit v1.2.3