X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=blobdiff_plain;f=includes%2FChangesList.php;h=f3dcf67b5f9115b1f51da28fabf06fe6964a9f48;hb=aaa0645cf60ef8b83dd7d4f431eea4b247de8dae;hp=ab851fa84efa97ccd007f35fc4e21c23c47f2e6c;hpb=17ff55004c2fa2eeac6b8c246edeacbfd412abb9;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(); }