RSS: wfLoadExtensionMessages() is not needed for 1.16/trunk

This commit is contained in:
Jack Phoenix 2010-07-23 15:28:57 +00:00
parent ffdd42f217
commit 76e8fc3151

View file

@ -161,17 +161,14 @@ function renderRss( $input ) {
# Check for errors.
if ( empty( $rss ) ) {
wfLoadExtensionMessages( 'RSS' );
return wfMsg( 'rss-empty', $url );
}
if ( $rss->ERROR ) {
wfLoadExtensionMessages( 'RSS' );
return '<div>' . wfMsg( 'rss-error', $url, $rss->ERROR ) . '</div>';
}
if ( !is_array( $rss->items ) ) {
wfLoadExtensionMessages( 'RSS' );
return '<div>' . wfMsg( 'rss-empty', $url ) . '</div>';
}