- register only smartyAutoload

This commit is contained in:
Uwe.Tews
2009-11-06 16:51:46 +00:00
parent 3386b94e15
commit b7876e55ec

View File

@@ -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
*/