From: Alex Monk Date: Fri, 15 Jan 2016 01:08:30 +0000 (+0000) Subject: Also select rc_log_type if the patrolled flag is set in ApiQueryRecentChanges X-Git-Tag: 1.31.0-rc.0~8330 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=a97c97a2950cf3cec3e5c1e880db69b16583b922;p=lhc%2Fweb%2Fwiklou.git Also select rc_log_type if the patrolled flag is set in ApiQueryRecentChanges See If6507121 Bug: T123542 Change-Id: Ida954386facc1699537bb1f3ff24e6bf1f3ecf8d --- diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 5426fb81fe..49d4c8c05c 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -289,7 +289,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { $this->addFieldsIf( 'rc_user_text', $this->fld_user ); $this->addFieldsIf( array( 'rc_minor', 'rc_type', 'rc_bot' ), $this->fld_flags ); $this->addFieldsIf( array( 'rc_old_len', 'rc_new_len' ), $this->fld_sizes ); - $this->addFieldsIf( 'rc_patrolled', $this->fld_patrolled ); + $this->addFieldsIf( array( 'rc_patrolled', 'rc_log_type' ), $this->fld_patrolled ); $this->addFieldsIf( array( 'rc_logid', 'rc_log_type', 'rc_log_action', 'rc_params' ), $this->fld_loginfo