From ebe3addddd6415b282e4ce7e527635fb318b72a8 Mon Sep 17 00:00:00 2001 From: aFolletete Date: Mon, 21 May 2012 15:18:59 +0000 Subject: [PATCH] // little optimization in autoloader, we exclude smarty classes of treatement --- classes/Autoload.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/Autoload.php b/classes/Autoload.php index 61f373ee7..6abda9465 100644 --- a/classes/Autoload.php +++ b/classes/Autoload.php @@ -77,6 +77,10 @@ class Autoload */ public function load($classname) { + // Smarty uses its own autoloader, so we exclude all Smarty classes + if (strpos(strtolower($classname), 'smarty_') === 0) + return; + // regenerate the class index if the requested class is not found in the index or if the requested file doesn't exists if (!isset($this->index[$classname]) || ($this->index[$classname] && !is_file($this->root_dir.$this->index[$classname]))