From d175a20faa13050433b15a5497caf0c9abd0a6aa Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 21 Dec 2010 17:15:25 +0000 Subject: [PATCH] Followup r78192: rather than silently ignoring calls to undefined SpecialPage methods, throw an exception --- includes/SpecialPage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 88d11afd59..bfef19c24e 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -748,6 +748,8 @@ class SpecialPage { $file = isset( $a[4] ) ? $a[4] : 'default'; $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" ); } } -- 2.20.1