From 5164d135f0f172ab3ace36849445e2ef858a4ec7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 30 Jun 2011 18:38:32 +0000 Subject: [PATCH] Added normalizeSubpageLink() to DummyLinker. __call doesn't handle static function call attempts, __callStatic__ is PHP >= 5.3, and both clobber references anyway. Just added a wrapper function instead. --- includes/Linker.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 5d88b32c08..7ced601d09 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 ); + } } -- 2.20.1