includes/pageprocess.php
changeset 228 7846d45bd250
parent 165 d53cc29308f4
child 229 b2f985e4cef3
equal deleted inserted replaced
227:0f039028f7a5 228:7846d45bd250
   615   function _handle_userpage()
   615   function _handle_userpage()
   616   {
   616   {
   617     global $db, $session, $paths, $template, $plugins; // Common objects
   617     global $db, $session, $paths, $template, $plugins; // Common objects
   618     global $email;
   618     global $email;
   619     
   619     
       
   620     $page_urlname = dirtify_page_id($this->page_id);
   620     if ( $this->page_id == $paths->cpage['urlname_nons'] && $this->namespace == $paths->namespace )
   621     if ( $this->page_id == $paths->cpage['urlname_nons'] && $this->namespace == $paths->namespace )
   621     {
   622     {
   622       $page_name = ( isset($paths->cpage['name']) ) ? $paths->cpage['name'] : $this->page_id;
   623       $page_name = ( isset($paths->cpage['name']) ) ? $paths->cpage['name'] : $this->page_id;
   623     }
   624     }
   624     else
   625     else
   625     {
   626     {
   626       $page_name = ( isset($paths->pages[$this->page_id]) ) ? $paths->pages[$this->page_id]['name'] : $this->page_id;
   627       $page_name = ( isset($paths->pages[$this->page_id]) ) ? $paths->pages[$this->page_id]['name'] : $this->page_id;
   627     }
   628     }
   628     
   629     
   629     $target_username = strtr($page_name, 
   630     $target_username = strtr($page_urlname, 
   630       Array(
   631       Array(
   631         '_' => ' ',
   632         '_' => ' ',
   632         '<' => '&lt;',
   633         '<' => '&lt;',
   633         '>' => '&gt;'
   634         '>' => '&gt;'
   634         ));
   635         ));