From: stronk7 Date: Thu, 27 Nov 2003 23:50:46 +0000 (+0000) Subject: Small change to save scheduled days always in X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d31a78675babe35986864ae37d3789f4f42bb335;p=moodle.git Small change to save scheduled days always in 0=Sunday....6=Saturday format, independent from the visual display of the week. :-) It uses the "firstdayofweek" string in every languaje pack (defaults to 0-Sunday) --- diff --git a/backup/config.html b/backup/config.html index 91dc89e4fb..683ccde894 100644 --- a/backup/config.html +++ b/backup/config.html @@ -127,7 +127,10 @@ } else { $strchecked = ""; } - $check_names[] = ""; + //Calculate standard day of week (0=Sunday......6=Saturday) + //to store info in that exact order in DB + $stddayofweek = ($i+$firstdayofweek) % 7; + $check_names[] = ""; $i++; } $table->align = array("center","center","center","center","center","center","center");