Index: trunk/extensions/NewUserMessage/NewUserMessage.class.php |
— | — | @@ -85,11 +85,14 @@ |
86 | 86 | */ |
87 | 87 | static function fetchText() { |
88 | 88 | $template = wfMsg( 'newusermessage-template-body' ); |
| 89 | + |
| 90 | + $title = Title::newFromText( $template ); |
| 91 | + if ( $title && $title->exists() && $title->getLength() ) { |
| 92 | + return $template; |
| 93 | + } |
| 94 | + |
89 | 95 | // Fall back if necessary to the old template |
90 | | - if ( !$template ) { |
91 | | - $template = wfMsg( 'newusermessage-template' ); |
92 | | - } |
93 | | - return $template; |
| 96 | + return wfMsg( 'newusermessage-template' ); |
94 | 97 | } |
95 | 98 | |
96 | 99 | /** |