mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- new SMARTY_SPL_AUTOLOAD constant to control the autoloader option
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
11/09/2009
|
11/09/2009
|
||||||
- lexer/parser bugfix
|
- lexer/parser bugfix
|
||||||
|
- new SMARTY_SPL_AUTOLOAD constant to control the autoloader option
|
||||||
|
|
||||||
11/08/2009
|
11/08/2009
|
||||||
- fixed alphanumeric array index
|
- fixed alphanumeric array index
|
||||||
|
@@ -87,8 +87,18 @@ define('SMARTY_PHP_ALLOW', 3); //-> escape tags as entities
|
|||||||
/**
|
/**
|
||||||
* register the class autoloader
|
* register the class autoloader
|
||||||
*/
|
*/
|
||||||
spl_autoload_register('smartyAutoload');
|
if (!defined('SMARTY_SPL_AUTOLOAD')) {
|
||||||
|
define('SMARTY_SPL_AUTOLOAD',0);
|
||||||
|
}
|
||||||
|
|
||||||
|
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'])) {
|
||||||
|
spl_autoload_register();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
spl_autoload_register('smartyAutoload');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the main Smarty class
|
* This is the main Smarty class
|
||||||
|
Reference in New Issue
Block a user