From: Domas Mituzas Date: Tue, 6 Jun 2006 10:23:27 +0000 (+0000) Subject: AutoLoad ImagePage and CategoryPage X-Git-Tag: 1.31.0-rc.0~56883 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=df5ad143c6977579134ff136437ecf2bff250fa9;p=lhc%2Fweb%2Fwiklou.git AutoLoad ImagePage and CategoryPage --- diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index d574ddade2..400b2d1538 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -9,11 +9,6 @@ if( !defined( 'MEDIAWIKI' ) ) die( -1 ); -global $wgCategoryMagicGallery; -if( $wgCategoryMagicGallery ) - /** */ - require_once('ImageGallery.php'); - /** * @package MediaWiki */ diff --git a/includes/Wiki.php b/includes/Wiki.php index 187dc06f92..e81e8bc46d 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -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 );