Index: branches/wmf/1.18wmf1/includes/Title.php |
— | — | @@ -3880,7 +3880,7 @@ |
3881 | 3881 | return $this->mDbkeyform == ''; |
3882 | 3882 | case NS_MEDIAWIKI: |
3883 | 3883 | // known system message |
3884 | | - return $this->getDefaultMessageText() !== false; |
| 3884 | + return $this->hasSourceText() !== false; |
3885 | 3885 | default: |
3886 | 3886 | return false; |
3887 | 3887 | } |
— | — | @@ -3910,8 +3910,13 @@ |
3911 | 3911 | |
3912 | 3912 | if ( $this->mNamespace == NS_MEDIAWIKI ) { |
3913 | 3913 | // If the page doesn't exist but is a known system message, default |
3914 | | - // message content will be displayed, same for language subpages |
3915 | | - return $this->getDefaultMessageText() !== false; |
| 3914 | + // message content will be displayed, same for language subpages- |
| 3915 | + // Use always content language to avoid loading hundreds of languages |
| 3916 | + // to get the link color. |
| 3917 | + global $wgContLang; |
| 3918 | + list( $name, $lang ) = MessageCache::singleton()->figureMessage( $wgContLang->lcfirst( $this->getText() ) ); |
| 3919 | + $message = wfMessage( $name )->inLanguage( $wgContLang )->useDatabase( false ); |
| 3920 | + return $message->exists(); |
3916 | 3921 | } |
3917 | 3922 | |
3918 | 3923 | return false; |