From b7876e55ec79a42fec132f7081e76de797830777 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Fri, 6 Nov 2009 16:51:46 +0000 Subject: [PATCH] - register only smartyAutoload --- libs/Smarty.class.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index ade4c455..4cfdaaa7 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -87,16 +87,9 @@ define('SMARTY_PHP_ALLOW', 3); //-> escape tags as entities /** * register the class autoloader */ -spl_autoload_extensions('.php,.inc'); -if (set_include_path(SMARTY_SYSPLUGINS_DIR . PATH_SEPARATOR . get_include_path()) !== false) { - $spl_funcs = spl_autoload_functions(); - if ($spl_funcs === false) - spl_autoload_register(); - elseif (!in_array('spl_autoload', $spl_funcs)) - spl_autoload_register('spl_autoload'); -} else { - spl_autoload_register('smartyAutoload'); -} +spl_autoload_register('smartyAutoload'); + + /** * This is the main Smarty class */