$dayname = $day->strftime($GLOBALS['prefs']->getValue('date_format'));
}
$url = Horde::applicationUrl('day.php', true)
+ ->setRaw(false)
->add('date', $day->dateString());
if (isset($this->_params['calendar']) &&
$this->_params['calendar'] != '__all') {
if ($event_active) {
$html .= '<strong>';
}
- $html .= ' ' . $event->getLink(null, true, null, true);
+ $html .= ' ' . $event->getLink(null, true, null, true, true);
if ($event_active) {
$html .= '</strong>';
}
*
* @return Horde_Url
*/
- public function getViewUrl($params = array(), $full = false)
+ public function getViewUrl($params = array(), $full = false, $encoded = true)
{
$params['eventID'] = $this->id;
$params['calendar'] = $this->calendar;
$params['type'] = $this->calendarType;
- return Horde::applicationUrl('event.php', $full)->add($params);
+ return Horde::applicationUrl('event.php', $full)->setRaw(!$encoded)->add($params);
}
/**
}
public function getLink($datetime = null, $icons = true, $from_url = null,
- $full = false)
+ $full = false, $encoded = true)
{
global $prefs, $registry;
}
$event_title = $this->getTitle();
- $view_url = $this->getViewUrl(array('datetime' => $datetime->strftime('%Y%m%d%H%M%S'), 'url' => $from_url), $full);
+ $view_url = $this->getViewUrl(array('datetime' => $datetime->strftime('%Y%m%d%H%M%S'), 'url' => $from_url), $full, $encoded);
$read_permission = $this->hasPermission(Horde_Perms::READ);
$link = '<span' . $this->getCSSColors() . '>';
*
* @return Horde_Url
*/
- public function getViewUrl($params = array(), $full = false)
+ public function getViewUrl($params = array(), $full = false, $encoded = true)
{
if (empty($this->_link)) {
return null;
}
$url = clone $this->_link;
- return $url->setRaw($full);
+ return $url->setRaw(!$encoded);
}
/**
*
* @return Horde_Url
*/
- public function getViewUrl($params = array(), $full = false)
+ public function getViewUrl($params = array(), $full = false, $encoded = true)
{
if ($this->url) {
- return new Horde_Url($this->url, $full);
+ return new Horde_Url($this->url, !$encoded);
}
- return parent::getViewUrl($params, $full);
+ return parent::getViewUrl($params, $full, $encoded);
}
}