diff options
author | Silvio <silvio@devlet.com.br> | 2010-06-07 17:38:08 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-06-07 17:38:08 -0300 |
commit | b3b87bf51fddd21130bf8975036ee82f66ad042b (patch) | |
tree | d8ec3a541426d3417aad6982428f568d723487aa | |
parent | 929db1efba3c3c87ad0f38d298b8847c2cabac04 (diff) | |
download | cinisis-b3b87bf51fddd21130bf8975036ee82f66ad042b.tar.gz cinisis-b3b87bf51fddd21130bf8975036ee82f66ad042b.tar.bz2 |
Changing CinisisDb::base()
-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__); - ?> |