Fix broken link from year view to month view.

Fixes Bug #3109 - Year view problem
reported and investigated by "ws Skygge"
This commit is contained in:
Hans-Jürgen Tappe 2012-01-31 21:05:21 +00:00
parent 6f1c2eacac
commit 5a9c1f8120

View File

@ -448,7 +448,7 @@ class calendar_uiviews extends calendar_ui
} }
$content .= "\t\t\t\t".'<a href="'.$GLOBALS['egw']->link('/index.php', $content .= "\t\t\t\t".'<a href="'.$GLOBALS['egw']->link('/index.php',
array('menuaction'=>'calendar.calendar_uiviews.month', array('menuaction'=>'calendar.calendar_uiviews.month',
'date'=>$this->year.$month.'01')). 'date'=>$this->year.($month < 10 ? '0' : '').$month.'01')).
'" title="'.lang('Monthview').'">'.lang(adodb_date('F',strtotime("+1 week",$month_start))).'</a>'."\n"; '" title="'.lang('Monthview').'">'.lang(adodb_date('F',strtotime("+1 week",$month_start))).'</a>'."\n";
if ($month == self::YEARVIEW_COLS) if ($month == self::YEARVIEW_COLS)
{ {