deprecate ChangesList::usePatrol
authoraude <aude.wiki@gmail.com>
Tue, 2 Jul 2013 09:29:12 +0000 (09:29 +0000)
committeraude <aude.wiki@gmail.com>
Tue, 2 Jul 2013 15:15:24 +0000 (15:15 +0000)
not used anywhere in core, not used in wmf-enabled extensions,
and used little or not at all elsewhere.

Change-Id: I9957696f025190d863a472e4512eb214b9cb5ada

includes/ChangesList.php

index ab851fa..dee8bf7 100644 (file)
@@ -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();
        }