From 2f584f68a95a9a0aa8d035cb45c6fc9840ef9e61 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 8 Dec 2008 00:35:59 +0000 Subject: [PATCH] *Skip autoloading of skin, always does inefficient strtolower() stuff and fails (returns false) anyway *Add wfDebug() call on class load failure --- includes/AutoLoader.php | 1 + includes/Skin.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.20.1