aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-06-07 17:38:08 -0300
committerSilvio <silvio@devlet.com.br>2010-06-07 17:38:08 -0300
commitb3b87bf51fddd21130bf8975036ee82f66ad042b (patch)
treed8ec3a541426d3417aad6982428f568d723487aa
parent929db1efba3c3c87ad0f38d298b8847c2cabac04 (diff)
downloadcinisis-b3b87bf51fddd21130bf8975036ee82f66ad042b.tar.gz
cinisis-b3b87bf51fddd21130bf8975036ee82f66ad042b.tar.bz2
Changing CinisisDb::base()
-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__);
-
?>