From f174e30565f5f21eb0686d753f4d91164d3cee7f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 13 Nov 2004 20:33:37 +0000 Subject: [PATCH] new method isSyndicated() . Could be used in a child class when we dont want syndication to be available (rss / atom) --- includes/QueryPage.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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() ) { -- 2.20.1