From: Aaron Schulz Date: Mon, 8 Dec 2008 00:35:59 +0000 (+0000) Subject: *Skip autoloading of skin, always does inefficient strtolower() stuff and fails ... X-Git-Tag: 1.31.0-rc.0~44101 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=2f584f68a95a9a0aa8d035cb45c6fc9840ef9e61;p=lhc%2Fweb%2Fwiklou.git *Skip autoloading of skin, always does inefficient strtolower() stuff and fails (returns false) anyway *Add wfDebug() call on class load failure --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 90e9a535ab..2e6e81af8c 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -554,6 +554,7 @@ class AutoLoader { } } if ( !$filename ) { + wfDebug( "Class {$className} not found; skipped loading" ); # Give up wfProfileOut( __METHOD__ ); return false; diff --git a/includes/Skin.php b/includes/Skin.php index b6c623dbb7..a17261b840 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -132,7 +132,7 @@ class Skin extends Linker { $className = 'Skin'.ucfirst($key); # Grab the skin class and initialise it. - if ( !class_exists( $className ) ) { + if ( !class_exists( $className, false ) ) { // Preload base classes to work around APC/PHP5 bug $deps = "{$wgStyleDirectory}/{$skinName}.deps.php"; if( file_exists( $deps ) ) include_once( $deps );