mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-13 17:57:07 +00:00
RSS: wfLoadExtensionMessages() is not needed for 1.16/trunk
This commit is contained in:
parent
ffdd42f217
commit
76e8fc3151
3
RSS.php
3
RSS.php
|
@ -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>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue