Index: trunk/extensions/RSS/RSSHooks.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | class RSSHooks { |
5 | 5 | /** |
6 | 6 | * Tell the parser how to handle <rss> elements |
7 | | - * @param Parser Object |
| 7 | + * @param $parser Parser Object |
8 | 8 | */ |
9 | 9 | static function parserInit( $parser ) { |
10 | 10 | # Install parser hook for <rss> tags |
— | — | @@ -16,6 +16,7 @@ |
17 | 17 | * @param $input String: text inside the tags. |
18 | 18 | * @param $args Array: value associative list of the element attributes and |
19 | 19 | * their values. |
| 20 | + * @param $parser Parser |
20 | 21 | * @param $frame Frame parser context |
21 | 22 | */ |
22 | 23 | static function renderRss( $input, $args, $parser, $frame ) { |
Index: trunk/extensions/RSS/RSSParser.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | * If there is an HTTP error while fetching an RSS object, the cached version |
86 | 86 | * will be returned, if it exists. |
87 | 87 | * |
88 | | - * @return boolean Status object |
| 88 | + * @return Status object |
89 | 89 | */ |
90 | 90 | function fetch() { |
91 | 91 | if ( !isset( $this->url ) ) { |
— | — | @@ -238,7 +238,7 @@ |
239 | 239 | * |
240 | 240 | * @param $item Array: an array produced by RSSData where keys are the |
241 | 241 | * names of the RSS elements |
242 | | - * @param $parser the parser param to pass to recursiveTagParse() |
| 242 | + * @param $parser Parser the parser param to pass to recursiveTagParse() |
243 | 243 | * @param $frame the frame param to pass to recursiveTagParse() |
244 | 244 | */ |
245 | 245 | protected function renderItem( $item, $parser, $frame ) { |
— | — | @@ -296,14 +296,13 @@ |
297 | 297 | * invocation. |
298 | 298 | */ |
299 | 299 | protected function escapeTemplateParameter( $text ) { |
300 | | - $text = str_replace( |
| 300 | + return str_replace( |
301 | 301 | array( '[', '|', ']', '\'', 'ISBN ', |
302 | 302 | 'RFC ', '://', "\n=", '{{', '}}' ), |
303 | 303 | array( '[', '|', ']', ''', 'ISBN ', |
304 | 304 | 'RFC ', '://', "\n=", '{{', '}}' ), |
305 | 305 | htmlspecialchars( $text ) |
306 | 306 | ); |
307 | | - return $text; |
308 | 307 | } |
309 | 308 | |
310 | 309 | /** |