Start outputting deprecation warnings when legacy linker methods are called on skins.
authorDaniel Friesen <daniel@nadir-seen-fire.com>
Thu, 28 Mar 2013 16:41:12 +0000 (09:41 -0700)
committerDaniel Friesen <daniel@nadir-seen-fire.com>
Thu, 28 Mar 2013 16:41:12 +0000 (09:41 -0700)
Change-Id: I97b046739428176540ddd80e72a80d5feefe3fc9

RELEASE-NOTES-1.21
includes/Skin.php

index efa534a..ecb37d5 100644 (file)
@@ -350,6 +350,7 @@ changes to languages because of Bugzilla reports.
    function, which is now deprecated).
 * BREAKING CHANGE: The Services_JSON class has been removed; if necessary,
   be sure to upgrade affected extensions at the same time (e.g. Collection).
+* Calling Linker methods using a skin will now output deprecation warnings.
 
 == Compatibility ==
 
index e5aedd9..a4cb9f4 100644 (file)
@@ -1559,6 +1559,7 @@ abstract class Skin extends ContextSource {
        function __call( $fname, $args ) {
                $realFunction = array( 'Linker', $fname );
                if ( is_callable( $realFunction ) ) {
+                       wfDeprecated( get_class( $this ) . '::' . $fname, '1.21' );
                        return call_user_func_array( $realFunction, $args );
                } else {
                        $className = get_class( $this );