Changed the search default namespace code to use the new
authorMatthias Jordan <matjordan@users.mediawiki.org>
Fri, 1 Aug 2003 23:44:28 +0000 (23:44 +0000)
committerMatthias Jordan <matjordan@users.mediawiki.org>
Fri, 1 Aug 2003 23:44:28 +0000 (23:44 +0000)
variable for the name of the Main namespace.

includes/SpecialPreferences.php

index 778ad29..4e1ed33 100644 (file)
@@ -181,7 +181,7 @@ function wfSpecialPreferences()
                        $checked = " checked";
                }
                $name = str_replace( "_", " ", $ns[$i] );
-               if ( "" == $name ) { $name = "(Main)"; }
+               if ( "" == $name ) { $name = wfMsg( "blanknamespace" ); }
 
                if ( 0 != $i ) { $r1 .= " "; }
                $r1 .= "<label><input type=checkbox value=\"1\" name=\"" .