From: Jan Schneider Date: Fri, 18 Dec 2009 12:48:17 +0000 (+0100) Subject: Make these separate table cells again, so they can wrap. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8605b759ebfec5942383636d68cc844b07244704;p=horde.git Make these separate table cells again, so they can wrap. --- diff --git a/kronolith/lib/Block/summary.php b/kronolith/lib/Block/summary.php index 6d342888d..5cd1f4fe1 100644 --- a/kronolith/lib/Block/summary.php +++ b/kronolith/lib/Block/summary.php @@ -79,10 +79,6 @@ class Horde_Block_Kronolith_summary extends Horde_Block { */ function _content() { - global $registry, $prefs; - - // @TODO Remove this hack when maintenance is refactored. - $no_maint = true; require_once dirname(__FILE__) . '/../base.php'; Horde::addScriptFile('tooltips.js', 'horde'); @@ -161,7 +157,7 @@ class Horde_Block_Kronolith_summary extends Horde_Block { } elseif ($day->diff() < 7) { $dayname = $day->strftime('%A'); } else { - $dayname = $day->strftime($prefs->getValue('date_format')); + $dayname = $day->strftime($GLOBALS['prefs']->getValue('date_format')); } $url = Horde::applicationUrl('day.php', true) ->add('date', $day->dateString()); @@ -178,23 +174,19 @@ class Horde_Block_Kronolith_summary extends Horde_Block { if ($event_active) { $html .= ''; } - if ($event->isAllDay()) { $time = _("All day"); } else { - $time = $event->start->format($prefs->getValue('twentyFour') ? 'H:i' : 'h:ia') - . '-' . $event->end->format($prefs->getValue('twentyFour') ? 'H:i' : 'h:ia'); - } - - $text = $event->getTitle(); - if ($event->location) { - $text .= ' (' . $event->location . ')'; + $time = $event->start->format($GLOBALS['prefs']->getValue('twentyFour') ? 'H:i' : 'h:ia') + . '-' . $event->end->format($GLOBALS['prefs']->getValue('twentyFour') ? 'H:i' : 'h:ia'); } $html .= $time; if ($event_active) { $html .= ''; } + $html .= ' '; + $html .= ''; if ($event_active) { $html .= ''; }