Changeset - abec0b8feee5
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-03-29 22:05:06
ohnobinki@ohnopublishing.net
Backed out changeset 76ece8b74a2e, completely broke section processing/display.
1 file changed with 3 insertions and 10 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -263,14 +263,7 @@ class Schedule
 
  function writeoutTables(array $schedule_store = NULL)
 
  {
 
    $filled = false;
 
    $time = array(700 => 700, 730 => 730, 800 => 800, 830 => 830,
 
		  900 => 900, 930 => 930,1000 =>1000,1030 =>1030,
 
		  1100 => 1100, 1130 => 1130, 1200 => 1200, 1230 => 1230,
 
		  1300 => 1300, 1330 => 1330, 1400 => 1400, 1430 => 1430,
 
		  1500 => 1500, 1530 => 1530, 1600 => 1600, 1630 => 1630,
 
		  1700 => 1700, 1730 => 1730, 1800 => 1800, 1830 => 1830,
 
		  1900 => 1900, 1930 => 1930, 2000 => 2000, 2030 => 2030,
 
		  2100 => 2100, 2130 => 2130, 2200 => 2200);
 
    $time = array(700,730,800,830,900,930,1000,1030,1100,1130,1200,1230,1300,1330,1400,1430,1500,1530,1600,1630,1700,1730,1800,1830,1900,1930,2000,2030,2100,2130, 2200);
 

	
 
    define('SP_PERMUTATIONS_PER_PAGE', 64); /** @TODO: Define this in config.inc */
 

	
 
@@ -401,14 +394,14 @@ class Schedule
 
		      $max_time = sprintf("%04d", $max_time + 30);
 
		      while (substr($max_time, -2) >= 60)
 
			$max_time = sprintf("%02d%02d", substr($max_time, 0, 2) + 1, substr($max_time, -2) - 60);
 
		      $time[(int)$max_time] = $max_time;
 
		      $time[] = $max_time;
 
		    }
 
		  while ($meeting->getStartTime() < $min_time)
 
		    {
 
		      if (substr($min_time, -2) < 30)
 
			$min_time = sprintf("%02d%02d", substr($min_time, 0, 2) - 1, substr($min_time, -2) + 60);
 
		      $min_time = sprintf("%04d", $min_time - 30);
 
		      $time[(int)$min_time] = (int)$min_time;
 
		      $time[] = $min_time;
 
		      $sort_time = TRUE;
 
		    }
 
		}
0 comments (0 inline, 0 general)