|
|
@@ -42,7 +42,7 @@ class Events
|
|
|
{
|
|
|
if (empty(self::$db)) {
|
|
|
$mds = DIRECTORY_SEPARATOR;
|
|
|
- if (strtolower(subtr(PHP_OS, 0, 3)) == 'win') {
|
|
|
+ if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
|
|
|
$dbcfg = realpath(dirname(__FILE__) . $mds . '..' . $mds . '..' . $mds . '..' . $mds . '..') . $mds . 'application' . $mds . 'database.php';
|
|
|
} else {
|
|
|
$dbcfg = realpath(dirname(__FILE__) . $mds . '..' . $mds . '..' . $mds . '..' . $mds . '..' . $mds . '..') . $mds . 'application' . $mds . 'database.php';
|