use MAG_NAMESPACEE & MAG_TALKSPACEE if you want URL encoded text.
* (bug 6054) Update to Indonesian localisation (id) #16
* Add {{CURRENTTIMESTAMP}} magic word
* (bug 6061) Improper escaping in some html forms
* (bug 6054) Update to Indonesian localisation (id) #16
* Add {{CURRENTTIMESTAMP}} magic word
* (bug 6061) Improper escaping in some html forms
+* (bug 6065) Remove underscore when using NAMESPACE and TALKSPACE magics.
case MAG_REVISIONID:
return $this->mRevisionId;
case MAG_NAMESPACE:
case MAG_REVISIONID:
return $this->mRevisionId;
case MAG_NAMESPACE:
- return $wgContLang->getNsText( $this->mTitle->getNamespace() );
+ return str_replace('_',' ',$wgContLang->getNsText( $this->mTitle->getNamespace() ) );
case MAG_NAMESPACEE:
return wfUrlencode( $wgContLang->getNsText( $this->mTitle->getNamespace() ) );
case MAG_TALKSPACE:
case MAG_NAMESPACEE:
return wfUrlencode( $wgContLang->getNsText( $this->mTitle->getNamespace() ) );
case MAG_TALKSPACE:
- return $this->mTitle->canTalk() ? $this->mTitle->getTalkNsText() : '';
+ return $this->mTitle->canTalk() ? str_replace('_',' ',$this->mTitle->getTalkNsText()) : '';
case MAG_TALKSPACEE:
return $this->mTitle->canTalk() ? wfUrlencode( $this->mTitle->getTalkNsText() ) : '';
case MAG_SUBJECTSPACE:
case MAG_TALKSPACEE:
return $this->mTitle->canTalk() ? wfUrlencode( $this->mTitle->getTalkNsText() ) : '';
case MAG_SUBJECTSPACE: