AutoLoad ImagePage and CategoryPage
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 6 Jun 2006 10:23:27 +0000 (10:23 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 6 Jun 2006 10:23:27 +0000 (10:23 +0000)
includes/CategoryPage.php
includes/Wiki.php

index d574dda..400b2d1 100644 (file)
@@ -9,11 +9,6 @@
 if( !defined( 'MEDIAWIKI' ) )
        die( -1 );
 
-global $wgCategoryMagicGallery;
-if( $wgCategoryMagicGallery )
-       /** */
-       require_once('ImageGallery.php');
-
 /**
  * @package MediaWiki
  */
index 187dc06..e81e8bc 100644 (file)
@@ -176,10 +176,8 @@ class MediaWiki {
        
                switch( $title->getNamespace() ) {
                case NS_IMAGE:
-                       require_once( 'includes/ImagePage.php' );
                        return new ImagePage( $title );
                case NS_CATEGORY:
-                       require_once( 'includes/CategoryPage.php' );
                        return new CategoryPage( $title );
                default:
                        return new Article( $title );