From d2386c4f67bcad83830fb0275f1039bb0b49ccb8 Mon Sep 17 00:00:00 2001 From: Pavel Selitskas Date: Thu, 2 May 2013 03:20:11 +0300 Subject: [PATCH] Convert underscores to spaces in {{SUBJECTSPACE}} Bug: 46742 Change-Id: I1af2432cb453efff209e5c384eb484cff5440ebb --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ) ); -- 2.20.1