From d00a25c33905d0582d85f5488b6d2a626366cb97 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 21 Dec 2010 17:41:05 +0000 Subject: [PATCH] Follow-up r78695: correct class name --- includes/SpecialPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index bfef19c24e..2f9e264206 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -749,7 +749,8 @@ class SpecialPage { $includable = isset( $a[5] ) ? $a[5] : false; $this->init( $name, $restriction, $listed, $function, $file, $includable ); } else { - throw new MWException( "Call to undefined method SpecialPage::$fName" ); + $className = get_class( $this ); + throw new MWException( "Call to undefined method $className::$fName" ); } } -- 2.20.1