From 00ab76a6b686e98a914afc1975812d2b1aaa7016 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 28 Jul 2010 10:05:59 +0200 Subject: update to MediaWiki 1.15.5 --- includes/api/ApiQueryRecentChanges.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'includes/api/ApiQueryRecentChanges.php') diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 191eec28..b5a56864 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -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 +} -- cgit v1.2.3-54-g00ecf