Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -748,6 +748,8 @@ |
749 | 749 | $file = isset( $a[4] ) ? $a[4] : 'default'; |
750 | 750 | $includable = isset( $a[5] ) ? $a[5] : false; |
751 | 751 | $this->init( $name, $restriction, $listed, $function, $file, $includable ); |
| 752 | + } else { |
| 753 | + throw new MWException( "Call to undefined method SpecialPage::$fName" ); |
752 | 754 | } |
753 | 755 | } |
754 | 756 | |