// Fix #PSFV-452 (use spl_autoload_register())
This commit is contained in:
+1
-8
@@ -29,11 +29,4 @@
|
||||
require_once(dirname(__FILE__).'/alias.php');
|
||||
require_once(dirname(__FILE__).'/../classes/Autoload.php');
|
||||
|
||||
function __autoload($classname)
|
||||
{
|
||||
if (function_exists('smartyAutoload') AND smartyAutoload($classname))
|
||||
return true;
|
||||
|
||||
Autoload::getInstance()->load($classname);
|
||||
}
|
||||
|
||||
spl_autoload_register(array(Autoload::getInstance(), 'load'));
|
||||
|
||||
Reference in New Issue
Block a user