Changed include syntax to be a full path instead of a relative path.
[eq/.git] / inc / class.eq.inc.php
index e8b0fa453058fea8954f6bdce2783b4ca5c0a44e..b3730dde2037d5e54e53b94646cc4d95fa1aab7a 100644 (file)
@@ -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;