From: aude Date: Tue, 2 Jul 2013 09:29:12 +0000 (+0000) Subject: deprecate ChangesList::usePatrol X-Git-Tag: 1.31.0-rc.0~19288^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=90503e146a6feb9690d2b1f05db3882aacefe522;p=lhc%2Fweb%2Fwiklou.git deprecate ChangesList::usePatrol not used anywhere in core, not used in wmf-enabled extensions, and used little or not at all elsewhere. Change-Id: I9957696f025190d863a472e4512eb214b9cb5ada --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index ab851fa84e..dee8bf7947 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -456,10 +456,15 @@ class ChangesList extends ContextSource { /** * Check whether to enable recent changes patrol features + * + * @deprecated since 1.22 * @return Boolean */ public static function usePatrol() { global $wgUser; + + wfDeprecated( __METHOD__, '1.22' ); + return $wgUser->useRCPatrol(); }