changing autoload function callback parameter from:

spl_autoload_register(array(Bootstrap, 'autoloadClass'));
to
spl_autoload_register(array('Bootstrap', 'autoloadClass'));
cause make appear NOTICE message.
This commit is contained in:
ralph
2012-11-22 10:26:50 -04:00
parent a0029e9432
commit 0a6174738b

View File

@@ -400,7 +400,7 @@ if (defined( 'PATH_DATA' ) && file_exists( PATH_DATA )) {
Bootstrap::LoadThirdParty( 'smarty/libs', 'Smarty.class' );
//testing the autoloader feature
spl_autoload_register(array(Bootstrap, 'autoloadClass'));
spl_autoload_register(array('Bootstrap', 'autoloadClass'));
Bootstrap::registerClass('headPublisher', PATH_GULLIVER . "class.headPublisher.php");
Bootstrap::registerClass('G', PATH_GULLIVER . "class.g.php");
Bootstrap::registerClass('publisher', PATH_GULLIVER . "class.publisher.php");