]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/api/ApiQueryRecentChanges.php
MediaWiki 1.15.5
[autoinstalls/mediawiki.git] / includes / api / ApiQueryRecentChanges.php
index 191eec28249e3f3247bd2a094c808578a92a8571..b5a568640dff31fd0c8f814e76c7794935b6740d 100644 (file)
@@ -353,6 +353,20 @@ class ApiQueryRecentChanges extends ApiQueryBase {
                        }
        }
 
+       public function getCacheMode( $params ) {
+               if ( isset( $params['show'] ) ) {
+                       foreach ( $params['show'] as $show ) {
+                               if ( $show === 'patrolled' || $show === '!patrolled' ) {
+                                       return 'private';
+                               }
+                       }
+               }
+               if ( isset( $params['token'] ) ) {
+                       return 'private';
+               }
+               return 'public';
+       }
+
        public function getAllowedParams() {
                return array (
                        'start' => array (
@@ -453,6 +467,6 @@ class ApiQueryRecentChanges extends ApiQueryBase {
        }
 
        public function getVersion() {
-               return __CLASS__ . ': $Id: ApiQueryRecentChanges.php 50094 2009-05-01 06:24:09Z tstarling $';
+               return __CLASS__ . ': $Id: ApiQueryRecentChanges.php 69986 2010-07-27 03:57:39Z tstarling $';
        }
-}
\ No newline at end of file
+}