diff options
-rw-r--r-- | classes/CinisisDb.php | 3 | ||||
-rw-r--r-- | index.php | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/classes/CinisisDb.php b/classes/CinisisDb.php index 60123ce..c0adeb9 100644 --- a/classes/CinisisDb.php +++ b/classes/CinisisDb.php @@ -114,8 +114,7 @@ class CinisisDb { * Return base folder. */ static function base() { - global $cinisis_basedir; - return $cinisis_basedir; + return dirname(__FILE__) .'/../'; } /** @@ -17,7 +17,4 @@ function cinisis_autoload($class) { // Register autoloader. spl_autoload_register("cinisis_autoload"); -// Reference to the base path. -$cinisis_basedir = dirname(__FILE__); - ?> |