aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/CinisisDb.php3
-rw-r--r--index.php3
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__) .'/../';
}
/**
diff --git a/index.php b/index.php
index 4f12c8f..2a551fb 100644
--- a/index.php
+++ b/index.php
@@ -17,7 +17,4 @@ function cinisis_autoload($class) {
// Register autoloader.
spl_autoload_register("cinisis_autoload");
-// Reference to the base path.
-$cinisis_basedir = dirname(__FILE__);
-
?>