[Tickets #11523] Re: Add universal link() method to Horde_Feed

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Jan 7 06:34:13 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11523
------------------------------------------------------------------------------
  Ticket             | 11523
  Updated By         | mazet at softndesign.org
  Summary            | Add universal link() method to Horde_Feed
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Enhancement
  State              | Accepted
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


mazet at softndesign.org (2013-01-07 06:34) wrote:

Hi

please find a short/uggly workaround. It avoid that link refers to  
horde site but instead force all link to  atom/rss site.

--- horde4/lib/Block/Feed.php.old       2013-01-07 07:28:11.000000000 +0100
+++ horde4/lib/Block/Feed.php   2013-01-07 07:29:03.000000000 +0100
@@ -69,7 +69,7 @@
                  if (++$count > $this->_params['limit']) {
                      break;
                  }
-               $html .= '<a href="' . $entry->link . '"';
+               $html .= '<a href="' . (strlen($entry->link) ?  
$entry->link : $this->_params['uri']) . '"';
                  if (empty($this->_params['details'])) {
                      $html .= ' title="' .  
htmlspecialchars(strip_tags($entry->description())) . '"';
                  }





More information about the bugs mailing list