* Please use the accessor functions
*/
- /**#@+
+ /**#@+
* @private
*/
$t = new Title();
$t->mInterwiki = '';
$t->mFragment = '';
- $t->mNamespace = intval( $ns );
+ $t->mNamespace = $ns = intval( $ns );
$t->mDbkeyform = str_replace( ' ', '_', $title );
$t->mArticleID = ( $ns >= 0 ) ? -1 : 0;
$t->mUrlform = wfUrlencode( $t->mDbkeyform );
* Should a link should be displayed as a known link, just based on its title?
*
* Currently, a self-link with a fragment and special pages are in
- * this category. Special pages never exist in the database.
+ * this category. Special pages never exist in the database. System
+ * messages that have defined default values are also always known.
*/
public function isAlwaysKnown() {
- return $this->isExternal() || ( 0 == $this->mNamespace && "" == $this->mDbkeyform )
- || NS_SPECIAL == $this->mNamespace;
+ return ( $this->isExternal() ||
+ ( 0 == $this->mNamespace && "" == $this->mDbkeyform ) ||
+ ( NS_SPECIAL == $this->mNamespace ) ||
+ ( NS_MEDIAWIKI == $this->mNamespace && wfMsgWeirdKey( $this->mDbkeyform ) ) );
}
/**