Followup r78192: rather than silently ignoring calls to undefined SpecialPage methods...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 21 Dec 2010 17:15:25 +0000 (17:15 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 21 Dec 2010 17:15:25 +0000 (17:15 +0000)
includes/SpecialPage.php

index 88d11af..bfef19c 100644 (file)
@@ -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" );
                }
        }