# HG changeset patch # User Matti Hamalainen # Date 1351042236 -10800 # Node ID 0329105ddedc3ef67c053e7660de4ccfb984adac # Parent 8109809f67cb263f1b4b1fa96e51b26b29b26f0a Fix grouped + active state display. diff -r 8109809f67cb -r 0329105ddedc index.php --- a/index.php Wed Oct 24 04:28:25 2012 +0300 +++ b/index.php Wed Oct 24 04:30:36 2012 +0300 @@ -352,7 +352,7 @@ { global $classInfo, $classHourDefs, $classHourTimes; -// $currStamp = time() + 9 * 60 * 60 + 18 * 60; +// $currStamp = time() + ((3 * 60) + 45) * 60; $currStamp = time(); $currTime = $currStamp - mktime(0, 0, 0); $currDay = lukGetWeekdayFromTimestamp($currStamp); @@ -392,7 +392,7 @@ $currTime < $classHourTimes[$class["start"] + $class["hours"] - 1]["end"]; $out .= " ". + "\" class=\"".($isActive ? "clactive " : "").($class["grouped"] ? "clgrouped" : "clnormal")."\">". lukGetClassInfo($isSplit, $class["data"]). "
".$class["hours"]."h
\n"; }