From: Pavel Selitskas Date: Thu, 2 May 2013 00:20:11 +0000 (+0300) Subject: Convert underscores to spaces in {{SUBJECTSPACE}} X-Git-Tag: 1.31.0-rc.0~18958 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=d2386c4f67bcad83830fb0275f1039bb0b49ccb8;p=lhc%2Fweb%2Fwiklou.git Convert underscores to spaces in {{SUBJECTSPACE}} Bug: 46742 Change-Id: I1af2432cb453efff209e5c384eb484cff5440ebb --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 2b6363e7d0..ba5c8decc8 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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() ) );