Convert underscores to spaces in {{SUBJECTSPACE}}
authorPavel Selitskas <p.selitskas@gmail.com>
Thu, 2 May 2013 00:20:11 +0000 (03:20 +0300)
committerTim Starling <tstarling@wikimedia.org>
Fri, 16 Aug 2013 06:14:00 +0000 (06:14 +0000)
Bug: 46742
Change-Id: I1af2432cb453efff209e5c384eb484cff5440ebb

includes/parser/Parser.php

index 2b6363e..ba5c8de 100644 (file)
@@ -2909,7 +2909,7 @@ class Parser {
                                $value = $this->mTitle->canTalk() ? wfUrlencode( $this->mTitle->getTalkNsText() ) : '';
                                break;
                        case 'subjectspace':
-                               $value = $this->mTitle->getSubjectNsText();
+                               $value = str_replace( '_', ' ', $this->mTitle->getSubjectNsText() );
                                break;
                        case 'subjectspacee':
                                $value = ( wfUrlencode( $this->mTitle->getSubjectNsText() ) );