includes/namespaces/user.php
changeset 896 ddecc53004ee
parent 832 7152ca0a0ce9
child 953 323c4cd1aa37
equal deleted inserted replaced
895:d6b095673a47 896:ddecc53004ee
    74         ));
    74         ));
    75     
    75     
    76     $target_username = preg_replace('/^' . str_replace('/', '\\/', preg_quote($paths->nslist['User'])) . '/', '', $target_username);
    76     $target_username = preg_replace('/^' . str_replace('/', '\\/', preg_quote($paths->nslist['User'])) . '/', '', $target_username);
    77     list($target_username) = explode('/', $target_username);
    77     list($target_username) = explode('/', $target_username);
    78     
    78     
    79     if ( ( $page_name == str_replace('_', ' ', $this->page_id) || $page_name == $paths->nslist['User'] . str_replace('_', ' ', $this->page_id) ) || !$this->page_exists )
    79     if ( ( $page_name == str_replace('_', ' ', $this->page_id) || $page_name == $paths->nslist['User'] . str_replace('_', ' ', $this->page_id) ) || !$this->exists )
    80     {
    80     {
    81       $page_name = $lang->get('userpage_page_title', array('username' => $target_username));
    81       $page_name = $lang->get('userpage_page_title', array('username' => $target_username));
    82     }
    82     }
    83     else
    83     else
    84     {
    84     {