Index: trunk/phase3/includes/Title.php |
— | — | @@ -3952,7 +3952,7 @@ |
3953 | 3953 | return $this->mDbkeyform == ''; |
3954 | 3954 | case NS_MEDIAWIKI: |
3955 | 3955 | // known system message |
3956 | | - return $this->getDefaultMessageText() !== false; |
| 3956 | + return $this->hasSourceText() !== false; |
3957 | 3957 | default: |
3958 | 3958 | return false; |
3959 | 3959 | } |
— | — | @@ -3982,8 +3982,13 @@ |
3983 | 3983 | |
3984 | 3984 | if ( $this->mNamespace == NS_MEDIAWIKI ) { |
3985 | 3985 | // If the page doesn't exist but is a known system message, default |
3986 | | - // message content will be displayed, same for language subpages |
3987 | | - return $this->getDefaultMessageText() !== false; |
| 3986 | + // message content will be displayed, same for language subpages- |
| 3987 | + // Use always content language to avoid loading hundreds of languages |
| 3988 | + // to get the link color. |
| 3989 | + global $wgContLang; |
| 3990 | + list( $name, $lang ) = MessageCache::singleton()->figureMessage( $wgContLang->lcfirst( $this->getText() ) ); |
| 3991 | + $message = wfMessage( $name )->inLanguage( $wgContLang )->useDatabase( false ); |
| 3992 | + return $message->exists(); |
3988 | 3993 | } |
3989 | 3994 | |
3990 | 3995 | return false; |