[kronolith] [PATCH] Monthly view: only 5 weeks displayed

Jan Schneider jan at horde.org
Tue May 31 07:09:39 PDT 2005


Zitat von Christoph Gysin <cgysin at gmx.ch>:

> If a month starts with a Sunday and a user configures Monday to be the first
> weekday, not the whole months gets displayed.

Works fine here with the current code from CVS, both, HEAD and 
FRAMEWORK_3 branches.

> Examples: May 2005, February 2004.
>
> Proposed patch:
>
> --- horde/kronolith/month.php.orig      2005-05-31 15:45:34.000000000 +0200
> +++ horde/kronolith/month.php   2005-05-31 15:45:04.000000000 +0200
> @@ -67,6 +67,7 @@
>     }
> } else {
>     if ($startday == HORDE_DATE_SUNDAY) {
> +        $daysInView += 7;
>         $startOfView = -5;
>     } else {
>         $startOfView = 2 - $startday;
>
> Christoph Gysin
> --
> echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org at fr33z3
> --
> Kronolith mailing list - Join the hunt: http://horde.org/bounties/#kronolith
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
>
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the kronolith mailing list