Changeset:
68201685dd13
https://sourceforge.net/p/mrbs/hg-code/ci/68201685dd135c7cedc469fead84e3c5e69288ff
Author:
Campbell Morrison <[email protected]>
Date:
Sat Aug 27 15:22:34 2016 +0100
Log message:
Simplified code
diffstat:
web/month.php | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (20 lines):
diff -r cb7e5ae0640d -r 68201685dd13 web/month.php
--- a/web/month.php Sat Aug 27 15:17:01 2016 +0100
+++ b/web/month.php Sat Aug 27 15:22:34 2016 +0100
@@ -231,14 +231,8 @@
// Skip days in week before start of month:
for ($weekcol = 0; $weekcol < $weekday_start; $weekcol++)
{
- if (is_hidden_day(($weekcol + $weekstarts) % 7))
- {
- $html .= "<td class=\"hidden_day\"><div
class=\"cell_container\"> </div></td>\n";
- }
- else
- {
- $html .= "<td class=\"invalid\"><div
class=\"cell_container\"> </div></td>\n";
- }
+ $td_class = (is_hidden_day(($weekcol + $weekstarts) % 7)) ? 'hidden_day' :
'invalid';
+ $html .= "<td class=\"$td_class\"><div
class=\"cell_container\"> </div></td>\n";
}
// Draw the days of the month:
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits