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:
@@ -353,7 +353,7 @@
|
||||
$this->db_debug = $GLOBALS['DB_DEBUG'];
|
||||
|
||||
// includes sub class for db type
|
||||
include_once(LIBS.$this->db_type.'.inc');
|
||||
_spl_autoload($this->db_type.'.inc');
|
||||
$this->db_functions = new $this->db_type();
|
||||
|
||||
// connect to DB
|
||||
|
||||
Reference in New Issue
Block a user