From 4a0500fbc881bf6327a77eaa7298db4fd76c9d08 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 12 Dec 2011 00:13:14 +0400 Subject: [PATCH] fix API includes --- api/index.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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); -- 2.39.5