Another fix.
[lhc/web/wiklou.git] / includes / AutoLoader.php
index 747e9ec..81a6859 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',
@@ -122,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,7 +159,6 @@ function __autoload($className) {
                'IPBlockForm' => 'includes/SpecialBlockip.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',
@@ -171,7 +171,6 @@ function __autoload($className) {
                'ImportStreamSource' => 'includes/SpecialImport.php',
                'IPUnblockForm' => 'includes/SpecialIpblocklist.php',
                'ListredirectsPage' => 'includes/SpecialListredirects.php',
-               'ListUsersPage' => 'includes/SpecialListusers.php',
                'DBLockForm' => 'includes/SpecialLockdb.php',
                'LogReader' => 'includes/SpecialLog.php',
                'LogViewer' => 'includes/SpecialLog.php',
@@ -313,10 +312,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 );
                }
        }