From: Tim Starling Date: Sun, 29 Jun 2008 20:02:42 +0000 (+0000) Subject: Remove hack for old APC bug that's fixed now. Was causing problems for DumpHTML ... X-Git-Tag: 1.31.0-rc.0~46848 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=e74343ee4fae8ee3005cf00070bce46c4990e633;p=lhc%2Fweb%2Fwiklou.git Remove hack for old APC bug that's fixed now. Was causing problems for DumpHTML (and probably other command line scripts) because $IP was not the same as dirname(__FILE__), causing double-inclusion. --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index ba31ce652f..35e56a5a94 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -500,14 +500,6 @@ class AutoLoader { static function loadAllExtensions() { global $wgAutoloadClasses; - # It is crucial that SpecialPage.php is included before any special page - # extensions are loaded. Otherwise the parent class will not be available - # when APC loads the early-bound extension class. Normally this is - # guaranteed by entering special pages via SpecialPage members such as - # executePath(), but here we have to take a more explicit measure. - - require_once( dirname(__FILE__) . '/SpecialPage.php' ); - foreach( $wgAutoloadClasses as $class => $file ) { if( !( class_exists( $class ) || interface_exists( $class ) ) ) { require( $file );