includes/paths.php
changeset 380 73444271fd1c
parent 377 bb3e6c3bd4f4
child 387 92664d2efab8
--- a/includes/paths.php	Sun Jan 27 23:03:57 2008 -0500
+++ b/includes/paths.php	Sun Jan 27 23:17:15 2008 -0500
@@ -149,7 +149,15 @@
     {
       
       $r['urlname_nons'] = $r['urlname'];
-      $r['urlname'] = $this->nslist[$r['namespace']] . $r['urlname']; // Applies the User:/File:/etc prefixes to the URL names
+      if ( isset($this->nslist[$r['namespace']]) )
+      {
+        $r['urlname'] = $this->nslist[$r['namespace']] . $r['urlname']; // Applies the User:/File:/etc prefixes to the URL names
+      }
+      else
+      {
+        $ns_char = substr($this->nslist['Special'], -1);
+        $r['urlname'] = $r['namespace'] . $ns_char . $r['urlname'];
+      }
       
       if ( $r['delvotes'] == null)
       {