Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php |
— | — | @@ -89,11 +89,10 @@ |
90 | 90 | and ( method_exists( $wgOut, 'addFeedlink' ) ) // remove this line after MW 1.5 is no longer supported by SMW |
91 | 91 | and ( array_key_exists( 'rss', $wgFeedClasses ) ) ) { |
92 | 92 | $res = $this->uiCore->getResultObject(); |
93 | | - $href = $res->getQueryLink(); |
94 | | - $href->setParameter( 'rss', 'format' ); |
95 | | - $href->setParameter( $this->uiCore->getLimit(), 'limit' ); |
96 | | - $href = $href->getURl(); |
97 | | - $wgOut->addFeedLink( 'rss', $href ); |
| 93 | + $link = $res->getQueryLink(); |
| 94 | + $link->setParameter( 'rss', 'format' ); |
| 95 | + $link->setParameter( $this->uiCore->getLimit(), 'limit' ); |
| 96 | + $wgOut->addFeedLink( 'rss', $link->getURl()); |
98 | 97 | } |
99 | 98 | |
100 | 99 | $this->makePage( $p ); |