summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-12 00:13:14 +0400
committerAndrew Dolgov <[email protected]>2011-12-12 00:13:14 +0400
commit4a0500fbc881bf6327a77eaa7298db4fd76c9d08 (patch)
tree4eb326a3847ca0d688801bc1e51ec4796d1c112d /api
parenta469bc7e095bb0eb51b5e8be4c017ade3d4b6d80 (diff)
fix API includes
Diffstat (limited to 'api')
-rw-r--r--api/index.php11
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);