From: Chuck Hagenbuch Date: Tue, 14 Apr 2009 20:55:12 +0000 (-0400) Subject: make the SHOW-only view much more legible by just reporting events as "busy". timing... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c50d3146ca4f15162b782e496e557db487218d8c;p=horde.git make the SHOW-only view much more legible by just reporting events as "busy". timing information is already present for these events --- diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index dab48c6f2..6af1cdfd3 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -1315,11 +1315,11 @@ abstract class Kronolith_Event // We explicitly allow admin access here for the alarms notifications. if (!Auth::isAdmin() && $this->isPrivate() && $this->getCreatorId() != $user) { - return sprintf(_("Private Event from %s to %s"), $start, $end); + return _("busy"); } elseif (Auth::isAdmin() || $this->hasPermission(PERMS_READ, $user)) { return strlen($this->title) ? $this->title : _("[Unnamed event]"); } else { - return sprintf(_("Event from %s to %s"), $start, $end); + return _("busy"); } }