X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FChangesList.php;h=f3dcf67b5f9115b1f51da28fabf06fe6964a9f48;hb=e6fb2a2c556379197dd63943f91f8fc9997c9632;hp=ab851fa84efa97ccd007f35fc4e21c23c47f2e6c;hpb=5cfec935722d8f4015dc24cda1de8bfc7f330537;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ChangesList.php b/includes/ChangesList.php index ab851fa84e..f3dcf67b5f 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -362,8 +362,6 @@ class ChangesList extends ContextSource { * @param $watched */ public function insertArticleLink( &$s, &$rc, $unpatrolled, $watched ) { - global $wgUseRCPatrol; - $params = array(); $articlelink = Linker::linkKnown( @@ -456,10 +454,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(); }