From a1f9be2a8b5fbafffb27bcc23de59c9dd66e45e0 Mon Sep 17 00:00:00 2001 From: wakie87 Date: Wed, 10 Aug 2016 07:07:15 +0800 Subject: [PATCH] remove legacy includes dir --- includes/config.php | 11 ----------- interface/billing/get_claim_file.php | 2 +- library/classes/OFX.class.php | 2 +- library/classes/WSClaim.class.php | 2 +- library/classes/WSProvider.class.php | 2 +- library/freeb/process_bills.php | 2 +- library/freeb/xmlrpc_server.php | 2 +- 7 files changed, 6 insertions(+), 17 deletions(-) delete mode 100644 includes/config.php diff --git a/includes/config.php b/includes/config.php deleted file mode 100644 index 9ed07c29d..000000000 --- a/includes/config.php +++ /dev/null @@ -1,11 +0,0 @@ - -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. - -// $GLOBALS['OE_SITE_DIR'] is set in globals.php. -require_once $GLOBALS['OE_SITE_DIR'] . "/config.php"; -?> diff --git a/interface/billing/get_claim_file.php b/interface/billing/get_claim_file.php index 53a62c257..b2fea9f5a 100644 --- a/interface/billing/get_claim_file.php +++ b/interface/billing/get_claim_file.php @@ -5,7 +5,7 @@ // of the License, or (at your option) any later version. require_once(dirname(__FILE__) . "/../globals.php"); -require_once(dirname(__FILE__) . "/../../includes/config.php"); +require_once $GLOBALS['OE_SITE_DIR'] . "/config.php"; $fconfig = $GLOBALS['oer_config']['freeb']; $content_type = "text/plain"; diff --git a/library/classes/OFX.class.php b/library/classes/OFX.class.php index 18470f5e3..eb0d6a2cf 100644 --- a/library/classes/OFX.class.php +++ b/library/classes/OFX.class.php @@ -1,6 +1,6 @@