From: Antoine Musso Date: Sat, 13 Nov 2004 20:33:37 +0000 (+0000) Subject: new method isSyndicated() . Could be used in a child class when we dont want syndicat... X-Git-Tag: 1.5.0alpha1~1350 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=f174e30565f5f21eb0686d753f4d91164d3cee7f;p=lhc%2Fweb%2Fwiklou.git new method isSyndicated() . Could be used in a child class when we dont want syndication to be available (rss / atom) --- diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 2a697fdc93..349540cb6f 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -68,6 +68,13 @@ class QueryPage { return $wgDisableQueryPages; } + /** + * Sometime we dont want to build rss / atom feeds. + */ + function isSyndicated() { + return true; + } + /** * Formats the results of the query for display. The skin is the current * skin; you can use it for making links. The result is a single row of @@ -102,7 +109,7 @@ class QueryPage { $dbw =& wfGetDB( DB_MASTER ); $querycache = $dbr->tableName( 'querycache' ); - $wgOut->setSyndicated( true ); + $wgOut->setSyndicated( $this->isSyndicated() ); $res = false; if ( $this->isExpensive() ) {