includes/paths.php
changeset 325 e17cc42d77cf
parent 322 5f1cd51bf1be
child 326 ab66d6d1f1f4
child 454 7b984f924dcd
--- a/includes/paths.php	Tue Dec 18 23:47:33 2007 -0500
+++ b/includes/paths.php	Wed Dec 19 17:15:48 2007 -0500
@@ -342,7 +342,7 @@
       $pid_cleaned = sanitize_page_id($this->page);
       if ( $pid_cleaned != $this->page )
       {
-        redirect($pid_cleaned, 'Sanitizer message', 'page id sanitized', 0);
+        redirect(makeUrl($pid_cleaned), 'Sanitizer message', 'page id sanitized', 0);
       }
       
       if ( !is_array($this->cpage) )
@@ -376,6 +376,7 @@
         }
       }
       $this->namespace = $this->cpage['namespace'];
+      $this->page_id =& $this->cpage['urlname_nons'];
       
       if($this->namespace=='System') 
       {
@@ -1009,5 +1010,5 @@
   }
   
 }
-  
+
 ?>