summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 3bb10883f..ca4936a82 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -115,11 +115,10 @@ function cleanID($raw_id,$ascii=false,$media=false){
$id = utf8_strtolower($id);
//alternative namespace seperator
- $id = strtr($id,';',':');
if($conf['useslash']){
- $id = strtr($id,'/',':');
+ $id = strtr($id,';/','::');
}else{
- $id = strtr($id,'/',$sepchar);
+ $id = strtr($id,';/',':'.$sepchar);
}
if($conf['deaccent'] == 2 || $ascii) $id = utf8_romanize($id);
@@ -645,6 +644,7 @@ function utf8_decodeFN($file){
* @return string|false the full page id of the found page, false if any
*/
function page_findnearest($page){
+ if (!$page) return false;
global $ID;
$ns = $ID;