r93814 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93813‎ | r93814 | r93815 >
Date:11:21, 3 August 2011
Author:devayon
Status:deferred
Tags:
Comment:
Follow up: r92530
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php
@@ -89,7 +89,10 @@
9090 and ( method_exists( $wgOut, 'addFeedlink' ) ) // remove this line after MW 1.5 is no longer supported by SMW
9191 and ( array_key_exists( 'rss', $wgFeedClasses ) ) ) {
9292 $res = $this->uiCore->getResultObject();
93 - $href = $res->getQueryLink()->getURl() . '/format%3Drss/limit%3D' . $this->uiCore->getLimit();
 93+ $href = $res->getQueryLink();
 94+ $href->setParameter( 'rss', 'format' );
 95+ $href->setParameter( $this->uiCore->getLimit(), 'limit' );
 96+ $href = $href->getURl();
9497 $wgOut->addFeedLink( 'rss', $href );
9598 }
9699

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92530Adding syndication to the head of resultsdevayon13:16, 19 July 2011