equal
deleted
inserted
replaced
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 '<' => '<', |
633 '<' => '<', |
633 '>' => '>' |
634 '>' => '>' |
634 )); |
635 )); |