Skip to content

Commit

Permalink
RSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillard committed Nov 2, 2018
1 parent 1a1cd9e commit ec4881d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zp-core/zp-extensions/rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ protected function getItemGallery($item) {
} else {
if ($totalimages != 0) {
$imagenumber = sprintf(ngettext('%s (%u image)', '%s (%u images)', $totalimages), $title, $totalimages);
} else {
$imagenumber = $title;
}
$feeditem['desc'] = '<a title="' . html_encode($title) . '" href="' . PROTOCOL . '://' . $itemlink . '">' . $thumburl . '</a>' . $item->getDesc($this->locale) . '<br />' . sprintf(gettext("Date: %s"), zpFormattedDate(DATE_FORMAT, $item->get('mtime')));
}
Expand Down Expand Up @@ -678,8 +680,8 @@ public function printFeed($feeditems = NULL) {
header('Content-Type: application/xml');
$this->hitcounter();
$this->startCache(SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/rss/rss.css');
scriptLoader(SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/rss/rss.css');
?>
<?xml-stylesheet type="text/css" href="<?php echo WEBPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER; ?>/rss/rss.css" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title><![CDATA[<?php echo $this->channel_title; ?>]]></title>
Expand Down

0 comments on commit ec4881d

Please sign in to comment.