Update core class include style and smarty test page
All libs/classes have an loop to find the needed previous class file. Smarty test page included.
This commit is contained in:
@@ -38,7 +38,13 @@
|
||||
// as it actually has nothing to do with this one here ? (or at least
|
||||
// put into separete function in this class)
|
||||
|
||||
require_once(LIBS."Class.DB.IO.inc");
|
||||
// try to include file from LIBS path, or from normal path
|
||||
$include_file = 'Class.DB.IO.inc';
|
||||
foreach (array('', LIBS, __DIR__.'/') as $folder)
|
||||
{
|
||||
if (file_exists($folder.$include_file))
|
||||
require_once($folder.$include_file);
|
||||
}
|
||||
|
||||
// subclass for one array handling
|
||||
class db_array_io extends db_io
|
||||
|
||||
Reference in New Issue
Block a user