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:
Clemens Schwaighofer
2015-11-11 11:08:41 +09:00
parent aa73634d95
commit 5a1c9f87c2
10 changed files with 84 additions and 7 deletions

View File

@@ -240,7 +240,13 @@
* 23.11.2000: erster Test
*********************************************************************/
require_once(LIBS.'Class.Basic.inc');
// try to include file from LIBS path, or from normal path
$include_file = 'Class.Basic.inc';
foreach (array('', LIBS, __DIR__.'/') as $folder)
{
if (file_exists($folder.$include_file))
require_once($folder.$include_file);
}
class db_io extends basic
{