// Fix #PSFV-452 (use spl_autoload_register())

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13063 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-07 10:15:28 +00:00
parent 1785529ea6
commit 576a9338c0
2 changed files with 3 additions and 10 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) {
if (!defined('SMARTY_SPL_AUTOLOAD')) {
define('SMARTY_SPL_AUTOLOAD', 0);
}
/* PrestaShop
if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false) {
$registeredAutoLoadFunctions = spl_autoload_functions();
if (!isset($registeredAutoLoadFunctions['spl_autoload'])) {
@@ -82,7 +82,7 @@ if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . PATH_SEPARATOR
} else {
spl_autoload_register('smartyAutoload');
}
END */
/**
* Load always needed external class files
*/