Index: trunk/extensions/RSS/RSSParser.php |
— | — | @@ -55,13 +55,10 @@ |
56 | 56 | |
57 | 57 | # Get date format from argument array |
58 | 58 | # or use a default value |
59 | | - switch ( true ) { |
60 | | - case ( isset( $args['date'] ) ): |
| 59 | + if ( isset( $args['date'] ) ) { |
61 | 60 | $this->date = $args['date']; |
62 | | - break; |
63 | | - case ( isset( $wgRSSDateDefaultFormat ) ): |
| 61 | + } elseif ( isset( $wgRSSDateDefaultFormat ) ) { |
64 | 62 | $this->date = $wgRSSDateDefaultFormat; |
65 | | - break; |
66 | 63 | } |
67 | 64 | |
68 | 65 | # Get highlight terms from argument array |
— | — | @@ -76,13 +73,10 @@ |
77 | 74 | } |
78 | 75 | |
79 | 76 | # Get a maximal length for item texts |
80 | | - switch ( true ) { |
81 | | - case ( isset( $args['item-max-length'] ) ): |
| 77 | + if ( isset( $args['item-max-length'] ) ) { |
82 | 78 | $this->ItemMaxLength = $args['item-max-length']; |
83 | | - break; |
84 | | - case ( isset( $wgRSSItemMaxLength ) && is_numeric( $wgRSSItemMaxLength ) ): |
| 79 | + } elseif ( isset( $wgRSSItemMaxLength ) && is_numeric( $wgRSSItemMaxLength ) ) { |
85 | 80 | $this->ItemMaxLength = $wgRSSItemMaxLength; |
86 | | - break; |
87 | 81 | } |
88 | 82 | |
89 | 83 | if ( isset( $args['filterout'] ) ) { |
Index: trunk/extensions/RSS/RSS.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @ingroup Extensions |
8 | | - * @version 1.90 |
| 8 | + * @version 1.93 |
9 | 9 | * @author mutante, Daniel Kinzler, Rdb, Mafs, Thomas Gries, Alxndr, Chris Reigrut, K001 |
10 | 10 | * @author Kellan Elliott-McCrea <kellan@protest.net> -- author of MagpieRSS |
11 | 11 | * @author Jeroen De Dauw |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | 'Rdb', 'Mafs', 'Alxndr', 'Thomas Gries', 'Chris Reigrut', |
28 | 28 | 'K001', 'Jack Phoenix', 'Jeroen De Dauw', 'Mark A. Hershberger' |
29 | 29 | ), |
30 | | - 'version' => '1.92 20120213', |
| 30 | + 'version' => '1.93 20120218', |
31 | 31 | 'url' => 'https://www.mediawiki.org/wiki/Extension:RSS', |
32 | 32 | 'descriptionmsg' => 'rss-desc', |
33 | 33 | ); |