From 88e8fb3a7132d1321ab65b66a19a67df890c402d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Dec 2012 13:41:22 +0400 Subject: [PATCH] modify include path order (closes #514) --- api/index.php | 6 +++--- backend.php | 4 ++-- db-updater.php | 4 ++-- digest.php | 4 ++-- errors.php | 4 ++-- image.php | 4 ++-- index.php | 4 ++-- localized_js.php | 4 ++-- mobile/image.php | 6 +++--- mobile/mobile-functions.php | 6 +++--- opml.php | 4 ++-- prefs.php | 4 ++-- public.php | 4 ++-- register.php | 4 ++-- update.php | 4 ++-- update_daemon2.php | 7 ++----- 16 files changed, 35 insertions(+), 38 deletions(-) diff --git a/api/index.php b/api/index.php index b74ea3c5..9b92dcad 100644 --- a/api/index.php +++ b/api/index.php @@ -3,10 +3,10 @@ require_once "../config.php"; - set_include_path(get_include_path() . PATH_SEPARATOR . - dirname(__FILE__) . PATH_SEPARATOR . + set_include_path(dirname(__FILE__) . PATH_SEPARATOR . dirname(dirname(__FILE__)) . PATH_SEPARATOR . - dirname(dirname(__FILE__)) . "/include" ); + dirname(dirname(__FILE__)) . "/include" . PATH_SEPARATOR . + get_include_path()); chdir(".."); diff --git a/backend.php b/backend.php index bf87b55d..511bb355 100644 --- a/backend.php +++ b/backend.php @@ -1,6 +1,6 @@