Remove all include/require parts from classes and use autoload function
Any include or require call is removed and now we use only _spl_autoload in any class external file include call. There are three new _DIR vars: LIBDIR, SMARTYDIR, TABLEARRAYDIR that are based on the __DIR__ and not current working directory.
This commit is contained in:
@@ -259,7 +259,7 @@
|
||||
$this->l = new l10n($lang);
|
||||
// load config array
|
||||
// get table array definitions for current page name
|
||||
include(TABLE_ARRAYS."array_".$this->my_page_name.".inc");
|
||||
_spl_autoload('array_'.$this->my_page_name.'.inc');
|
||||
|
||||
$config_array = ${$this->my_page_name};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user