diff options
author | Andrew Dolgov <[email protected]> | 2011-12-12 00:13:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-12 00:13:14 +0400 |
commit | 4a0500fbc881bf6327a77eaa7298db4fd76c9d08 (patch) | |
tree | 4eb326a3847ca0d688801bc1e51ec4796d1c112d | |
parent | a469bc7e095bb0eb51b5e8be4c017ade3d4b6d80 (diff) |
fix API includes
-rw-r--r-- | api/index.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/api/index.php b/api/index.php index 8aa4c1907..3099ae7e2 100644 --- a/api/index.php +++ b/api/index.php @@ -3,9 +3,14 @@ require_once "../config.php"; - require_once "../db.php"; - require_once "../db-prefs.php"; - require_once "../functions.php"; + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . PATH_SEPARATOR . + dirname(dirname(__FILE__)) . PATH_SEPARATOR . + dirname(dirname(__FILE__)) . "/include" ); + + require_once "db.php"; + require_once "db-prefs.php"; + require_once "functions.php"; define('API_LEVEL', 1); |