From: Roan Kattouw Date: Tue, 21 Dec 2010 17:15:25 +0000 (+0000) Subject: Followup r78192: rather than silently ignoring calls to undefined SpecialPage methods... X-Git-Tag: 1.31.0-rc.0~33218 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=d175a20faa13050433b15a5497caf0c9abd0a6aa;p=lhc%2Fweb%2Fwiklou.git Followup r78192: rather than silently ignoring calls to undefined SpecialPage methods, throw an exception --- 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" ); } }