new method isSyndicated() . Could be used in a child class when we dont want syndicat...
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 13 Nov 2004 20:33:37 +0000 (20:33 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 13 Nov 2004 20:33:37 +0000 (20:33 +0000)
includes/QueryPage.php

index 2a697fd..349540c 100644 (file)
@@ -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() ) {