Added normalizeSubpageLink() to DummyLinker. __call doesn't handle static function...
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 30 Jun 2011 18:38:32 +0000 (18:38 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 30 Jun 2011 18:38:32 +0000 (18:38 +0000)
includes/Linker.php

index 5d88b32..7ced601 100644 (file)
@@ -1997,9 +1997,12 @@ class DummyLinker {
         * @param $fname String Name of called method
         * @param $args Array Arguments to the method
         */
-       function __call( $fname, $args ) {
+       public function __call( $fname, $args ) {
                return call_user_func_array( array( 'Linker', $fname ), $args );
        }
 
+       public static function normalizeSubpageLink( $contextTitle, $target, &$text ) {
+               return Linker::normalizeSubpageLink( $contextTitle, $target, $text );
+       }
 }