From d0fe650e8a63864d8fd593aec3429abdec5eac95 Mon Sep 17 00:00:00 2001 From: "Alan J. Pippin" Date: Sun, 17 Feb 2008 21:07:43 -0700 Subject: [PATCH] Changed include syntax to be a full path instead of a relative path. Renamed db upgrade command to better fit the naming convention I want to follow long term. --- ...rge_eq_ppi_eq_interview_tables => upgrade_1_0_to_2_0} | 0 inc/class.eq.inc.php | 9 +++++---- 2 files changed, 5 insertions(+), 4 deletions(-) rename bin/{merge_eq_ppi_eq_interview_tables => upgrade_1_0_to_2_0} (100%) diff --git a/bin/merge_eq_ppi_eq_interview_tables b/bin/upgrade_1_0_to_2_0 similarity index 100% rename from bin/merge_eq_ppi_eq_interview_tables rename to bin/upgrade_1_0_to_2_0 diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index e8b0fa4..b3730dd 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -68,12 +68,13 @@ class eq function eq() { - if(file_exists('setup/eq_config.local')) { - include('setup/eq_config.local'); + $base_path = $_SERVER['DOCUMENT_ROOT']; + if(file_exists("$base_path/eq/setup/eq_config.local")) { + include("$base_path/eq/setup/eq_config.local"); } else { - include('setup/eq_config'); + include("$base_path/eq/setup/eq_config"); } - + $this->script_path = "$this->application_path"."/bin"; $this->max_presidency_members = 99; $this->max_appointments = 32768; -- 2.34.1