includes/pageprocess.php
changeset 285 7846d45bd250
parent 166 d53cc29308f4
child 286 b2f985e4cef3
--- a/includes/pageprocess.php	Thu Nov 22 02:10:12 2007 -0500
+++ b/includes/pageprocess.php	Fri Nov 23 17:59:24 2007 -0500
@@ -617,6 +617,7 @@
     global $db, $session, $paths, $template, $plugins; // Common objects
     global $email;
     
+    $page_urlname = dirtify_page_id($this->page_id);
     if ( $this->page_id == $paths->cpage['urlname_nons'] && $this->namespace == $paths->namespace )
     {
       $page_name = ( isset($paths->cpage['name']) ) ? $paths->cpage['name'] : $this->page_id;
@@ -626,7 +627,7 @@
       $page_name = ( isset($paths->pages[$this->page_id]) ) ? $paths->pages[$this->page_id]['name'] : $this->page_id;
     }
     
-    $target_username = strtr($page_name, 
+    $target_username = strtr($page_urlname, 
       Array(
         '_' => ' ',
         '<' => '&lt;',