Deprecated 3 methods in DummyLinker
authoraddshore <addshorewiki@gmail.com>
Wed, 20 Apr 2016 08:08:25 +0000 (09:08 +0100)
committeraddshore <addshorewiki@gmail.com>
Wed, 20 Apr 2016 08:08:25 +0000 (09:08 +0100)
These methods are already deprecated in
Linker but they should also warn with the
method in DummyLinker

Change-Id: I41f0ee5b37f8a92711d1396b8b40d5235b643238

includes/DummyLinker.php

index 150808b..45535ce 100644 (file)
@@ -5,7 +5,11 @@
  */
 class DummyLinker {
 
+       /**
+        * @deprecated since 1.27
+        */
        public function getInterwikiLinkAttributes( $title, $unused = null, $class = 'external' ) {
+               wfDeprecated( __METHOD__, '1.27' );
                return Linker::getInterwikiLinkAttributes(
                        $title,
                        $unused,
@@ -13,7 +17,11 @@ class DummyLinker {
                );
        }
 
+       /**
+        * @deprecated since 1.27
+        */
        public function getInternalLinkAttributes( $title, $unused = null, $class = '' ) {
+               wfDeprecated( __METHOD__, '1.27' );
                return Linker::getInternalLinkAttributes(
                        $title,
                        $unused,
@@ -21,12 +29,16 @@ class DummyLinker {
                );
        }
 
+       /**
+        * @deprecated since 1.27
+        */
        public function getInternalLinkAttributesObj(
                $nt,
                $unused = null,
                $class = '',
                $title = false
        ) {
+               wfDeprecated( __METHOD__, '1.27' );
                return Linker::getInternalLinkAttributesObj(
                        $nt,
                        $unused,