Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2088
Parser.php.diff.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:33 PM
2014-11-21 20:33:27 (UTC+0)
Size
857 B
Referenced Files
None
Subscribers
None
Parser.php.diff.txt
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1665
Default Alt Text
Parser.php.diff.txt (857 B)
Attached To
Mode
T4287: {{ns:##}} makes php to print notices if namespace doesn't exists
Attached
Detach File
Event Timeline
Log In to Comment