Index: Parser.php =================================================================== RCS file: /root/phase3/includes/Parser.php,v retrieving revision 1.445 diff -u -r1.445 Parser.php --- Parser.php 31 May 2005 11:54:35 -0000 1.445 +++ Parser.php 1 Jun 2005 20:49:48 -0000 @@ -2063,7 +2063,13 @@ $mwNs = MagicWord::get( MAG_NS ); if ( $mwNs->matchStartAndRemove( $part1 ) ) { if ( intval( $part1 ) ) { - $text = $linestart . $wgContLang->getNsText( intval( $part1 ) ); + $namespaces = $wgContLang->getNamespaces(); + if ( !array_key_exists( intval( $part1 ), $namespaces ) ) { + $namespacetext = ''; + } else { + $namespacetext = $namespaces[ intval( $part1 ) ]; + } + $text = $linestart . $namespacetext; $found = true; } else { $index = Namespace::getCanonicalIndex( strtolower( $part1 ) );