From ec4881d50357c33d0abacce0d48dd9e10dbc63c5 Mon Sep 17 00:00:00 2001 From: "stephen@sbillard.org" Date: Fri, 2 Nov 2018 13:24:54 -0700 Subject: [PATCH] RSS fixes --- zp-core/zp-extensions/rss.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zp-core/zp-extensions/rss.php b/zp-core/zp-extensions/rss.php index 36d0952e1e..609b035601 100644 --- a/zp-core/zp-extensions/rss.php +++ b/zp-core/zp-extensions/rss.php @@ -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'] = '' . $thumburl . '' . $item->getDesc($this->locale) . '
' . sprintf(gettext("Date: %s"), zpFormattedDate(DATE_FORMAT, $item->get('mtime'))); } @@ -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'); ?> + /rss/rss.css" ?> <![CDATA[<?php echo $this->channel_title; ?>]]>