diff options
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 3 |
1 files changed, 1 insertions, 2 deletions
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'] ){ |