From: Andrew Dolgov Date: Sun, 11 Dec 2011 20:13:14 +0000 (+0400) Subject: fix API includes X-Git-Tag: 1.5.8~27 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4a0500fbc881bf6327a77eaa7298db4fd76c9d08;p=tt-rss.git fix API includes --- diff --git a/api/index.php b/api/index.php index 8aa4c190..3099ae7e 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);