From: Jan Schneider Date: Thu, 6 Jan 2011 16:45:18 +0000 (+0100) Subject: Pass complete identity to views. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fd7686d3d1d0ac4dbacaa541c12def0992e3a9c1;p=horde.git Pass complete identity to views. --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 403f91233..303fa2daf 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -1705,7 +1705,7 @@ class Kronolith $image = self::getImagePart('big_share.png'); $view = new Horde_View(array('templatePath' => KRONOLITH_TEMPLATES . '/share')); new Horde_View_Helper_Text($view); - $view->user = $identity->getName(); + $view->identity = $identity; $view->calendar = $share->get('name'); $view->imageId = $image->getContentId(); } @@ -2206,6 +2206,7 @@ class Kronolith $share = $GLOBALS['kronolith_shares']->getShare($event->calendar); $view = new Horde_View(array('templatePath' => KRONOLITH_TEMPLATES . '/itip')); new Horde_View_Helper_Text($view); + $view->identity = $ident; $view->event = $event; $view->imageId = $image->getContentId(); diff --git a/kronolith/templates/share/notification.html.php b/kronolith/templates/share/notification.html.php index 19b53cf0f..821dbc391 100644 --- a/kronolith/templates/share/notification.html.php +++ b/kronolith/templates/share/notification.html.php @@ -1,4 +1,4 @@ -

h($this->user), $this->h($this->calendar)) ?>

+

h($this->identity->getName()), $this->h($this->calendar)) ?>

@@ -10,9 +10,9 @@ ownerChange): ?> - ' . $this->h($this->user) . '', '' . $this->h($this->calendar) . '') ?> + ' . $this->h($this->identity->getName()) . '', '' . $this->h($this->calendar) . '') ?> - ' . $this->h($this->user) . '', '' . $this->h($this->calendar) . '') ?> + ' . $this->h($this->identity->getName()) . '', '' . $this->h($this->calendar) . '') ?> subscribe): ?>

diff --git a/kronolith/templates/share/notification.plain.php b/kronolith/templates/share/notification.plain.php index 6aaf4350f..cebc3724f 100644 --- a/kronolith/templates/share/notification.plain.php +++ b/kronolith/templates/share/notification.plain.php @@ -1,10 +1,10 @@ -user, $this->calendar) ?> +identity->getName(), $this->calendar) ?> ownerChange): ?> -user, $this->calendar) ?> +identity->getName(), $this->calendar) ?> -user, $this->calendar) ?> +identity->getName(), $this->calendar) ?> subscribe): ?>