Just throw an exception, rather than calling wfDie()
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 22 May 2011 17:57:29 +0000 (17:57 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 22 May 2011 17:57:29 +0000 (17:57 +0000)
languages/LanguageConverter.php

index 1264d1e..1332ae7 100644 (file)
@@ -794,7 +794,7 @@ class LanguageConverter {
         */
        function loadDefaultTables() {
                $name = get_class( $this );
-               wfDie( "Must implement loadDefaultTables() method in class $name" );
+               throw new MWException( "Must implement loadDefaultTables() method in class $name" );
        }
 
        /**