Page MenuHomePhabricator

Parser.php.diff.txt

Authored By
bzimport
Nov 21 2014, 8:33 PM
Size
857 B
Referenced Files
None
Subscribers
None

Parser.php.diff.txt

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 ) );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1665
Default Alt Text
Parser.php.diff.txt (857 B)

Event Timeline