X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;ds=sidebyside;f=inc%2Fclass.eq.inc.php;h=b3730dde2037d5e54e53b94646cc4d95fa1aab7a;hb=d0fe650e8a63864d8fd593aec3429abdec5eac95;hp=68bc93dc1ad16fb35cb890f64d0a5096a3025596;hpb=b74dbe53448ab77b7ff14bae31ea9a2b2e56ab38;p=eq%2F.git
diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php
index 68bc93d..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;
@@ -2727,7 +2728,9 @@ class eq
// Print the hometeaching interview stats
for($m=$num_months; $m >=0; $m--) {
$month = $current_month - $m;
+ if($month < 0) { $month = 12 + $month; } // Handle going backwards over a year boundary
$month_begins = $month % $this->monthly_hometeaching_interview_stats;
+ //print "$month % $this->monthly_hometeaching_interview_stats = $month_begins
";
if($this->monthly_hometeaching_interview_stats == 1) { $month_begins = 1; }
if(($month_begins) == 1) { $total = $ints[$m]; }
else { $total += $ints[$m]; }
@@ -2748,6 +2751,7 @@ class eq
$totals = "