Index: trunk/extensions/RSS/RSSParser.php |
— | — | @@ -80,7 +80,7 @@ |
81 | 81 | case ( isset( $args['item-max-length'] ) ): |
82 | 82 | $this->ItemMaxLength = $args['item-max-length']; |
83 | 83 | break; |
84 | | - case ( isset( $wgRSSItemMaxLength ) ): |
| 84 | + case ( isset( $wgRSSItemMaxLength ) && is_numeric( $wgRSSItemMaxLength ) ): |
85 | 85 | $this->ItemMaxLength = $wgRSSItemMaxLength; |
86 | 86 | break; |
87 | 87 | } |
Index: trunk/extensions/RSS/RSS.php |
— | — | @@ -71,4 +71,5 @@ |
72 | 72 | |
73 | 73 | // limit the number of characters in the item description |
74 | 74 | // or set to false for unlimited length. |
| 75 | +// $wgRSSItemMaxLength = false; |
75 | 76 | // $wgRSSItemMaxLength = 100; |