* Some enhancements to live preview
[lhc/web/wiklou.git] / includes / AutoLoader.php
index e72dcbc..1365be9 100644 (file)
@@ -11,6 +11,7 @@ function __autoload($className) {
                'AjaxDispatcher' => 'includes/AjaxDispatcher.php',
                'AjaxCachePolicy' => 'includes/AjaxFunctions.php',
                'AjaxResponse' => 'includes/AjaxResponse.php',
+               'AlphabeticPager' => 'includes/Pager.php',
                'Article' => 'includes/Article.php',
                'AuthPlugin' => 'includes/AuthPlugin.php',
                'BagOStuff' => 'includes/BagOStuff.php',
@@ -39,8 +40,6 @@ function __autoload($className) {
                'Database' => 'includes/Database.php',
                'DatabaseMysql' => 'includes/Database.php',
                'ResultWrapper' => 'includes/Database.php',
-               'OracleBlob' => 'includes/DatabaseOracle.php',
-               'DatabaseOracle' => 'includes/DatabaseOracle.php',
                'DatabasePostgres' => 'includes/DatabasePostgres.php',
                'DateFormatter' => 'includes/DateFormatter.php',
                'DifferenceEngine' => 'includes/DifferenceEngine.php',
@@ -124,8 +123,8 @@ function __autoload($className) {
                'ReverseChronologicalPager' => 'includes/Pager.php',
                'TablePager' => 'includes/Pager.php',
                'Parser' => 'includes/Parser.php',
-               'ParserOutput' => 'includes/Parser.php',
-               'ParserOptions' => 'includes/Parser.php',
+               'ParserOutput' => 'includes/ParserOutput.php',
+               'ParserOptions' => 'includes/ParserOptions.php',
                'ParserCache' => 'includes/ParserCache.php',
                'ProfilerSimple' => 'includes/ProfilerSimple.php',
                'ProfilerSimpleUDP' => 'includes/ProfilerSimpleUDP.php',
@@ -158,9 +157,8 @@ function __autoload($className) {
                'SpecialAllpages' => 'includes/SpecialAllpages.php',
                'AncientPagesPage' => 'includes/SpecialAncientpages.php',
                'IPBlockForm' => 'includes/SpecialBlockip.php',
-               'BookSourceList' => 'includes/SpecialBooksources.php',
+               'SpecialBookSources' => 'includes/SpecialBooksources.php',
                'BrokenRedirectsPage' => 'includes/SpecialBrokenRedirects.php',
-               'CategoriesPage' => 'includes/SpecialCategories.php',
                'EmailConfirmation' => 'includes/SpecialConfirmemail.php',
                'ContributionsPage' => 'includes/SpecialContributions.php',
                'DeadendPagesPage' => 'includes/SpecialDeadendpages.php',
@@ -186,6 +184,7 @@ function __autoload($className) {
                'MostlinkedCategoriesPage' => 'includes/SpecialMostlinkedcategories.php',
                'MostrevisionsPage' => 'includes/SpecialMostrevisions.php',
                'MovePageForm' => 'includes/SpecialMovepage.php',
+               'NewbieContributionsPage' => 'includes/SpecialNewbieContributions.php',
                'NewPagesPage' => 'includes/SpecialNewpages.php',
                'SpecialPage' => 'includes/SpecialPage.php',
                'UnlistedSpecialPage' => 'includes/SpecialPage.php',
@@ -240,6 +239,8 @@ function __autoload($className) {
                'UsercreateTemplate' => 'includes/templates/Userlogin.php',
                'UserloginTemplate' => 'includes/templates/Userlogin.php',
                'Language' => 'languages/Language.php',
+               'PasswordResetForm' => 'includes/SpecialResetpass.php',
+               'PatrolLog' => 'includes/PatrolLog.php',
 
                // API classes
                'ApiBase' => 'includes/api/ApiBase.php',
@@ -272,6 +273,7 @@ function __autoload($className) {
                'ApiResult' => 'includes/api/ApiResult.php',
        );
        
+       wfProfileIn( __METHOD__ );
        if ( isset( $localClasses[$className] ) ) {
                $filename = $localClasses[$className];
        } elseif ( isset( $wgAutoloadClasses[$className] ) ) {
@@ -288,6 +290,7 @@ function __autoload($className) {
                }
                if ( !$filename ) {
                        # Give up
+                       wfProfileOut( __METHOD__ );
                        return;
                }
        }
@@ -298,6 +301,7 @@ function __autoload($className) {
                $filename = "$IP/$filename";
        }
        require( $filename );
+       wfProfileOut( __METHOD__ );
 }
 
 function wfLoadAllExtensions() {
@@ -309,10 +313,10 @@ function wfLoadAllExtensions() {
        # guaranteed by entering special pages via SpecialPage members such as 
        # executePath(), but here we have to take a more explicit measure.
        
-       require_once( 'SpecialPage.php' );
+       require_once( dirname(__FILE__) . '/SpecialPage.php' );
        
        foreach( $wgAutoloadClasses as $class => $file ) {
-               if ( ! class_exists( $class ) ) {
+               if( !( class_exists( $class ) || interface_exists( $class ) ) ) {
                        require( $file );
                }
        }