]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix API includes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 11 Dec 2011 20:13:14 +0000 (00:13 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 11 Dec 2011 20:13:14 +0000 (00:13 +0400)
api/index.php

index 8aa4c1907e519de6b83eef1ccb22a564e135b1bf..3099ae7e291b0ad1445b0303080e8c1a161ed3a0 100644 (file)
@@ -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);