includes/paths.php
changeset 380 73444271fd1c
parent 377 bb3e6c3bd4f4
child 387 92664d2efab8
equal deleted inserted replaced
379:82b991bee797 380:73444271fd1c
   147     }
   147     }
   148     while($r = $db->fetchrow())
   148     while($r = $db->fetchrow())
   149     {
   149     {
   150       
   150       
   151       $r['urlname_nons'] = $r['urlname'];
   151       $r['urlname_nons'] = $r['urlname'];
   152       $r['urlname'] = $this->nslist[$r['namespace']] . $r['urlname']; // Applies the User:/File:/etc prefixes to the URL names
   152       if ( isset($this->nslist[$r['namespace']]) )
       
   153       {
       
   154         $r['urlname'] = $this->nslist[$r['namespace']] . $r['urlname']; // Applies the User:/File:/etc prefixes to the URL names
       
   155       }
       
   156       else
       
   157       {
       
   158         $ns_char = substr($this->nslist['Special'], -1);
       
   159         $r['urlname'] = $r['namespace'] . $ns_char . $r['urlname'];
       
   160       }
   153       
   161       
   154       if ( $r['delvotes'] == null)
   162       if ( $r['delvotes'] == null)
   155       {
   163       {
   156         $r['delvotes'] = 0;
   164         $r['delvotes'] = 0;
   157       }
   165       }