PatchFeeder: use title also for description
This commit is contained in:
parent
52d5074d1c
commit
896eb26b58
1 changed files with 7 additions and 5 deletions
|
|
@ -21,19 +21,21 @@ $db->sort();
|
||||||
<link>https://www.patchbot.de/</link>
|
<link>https://www.patchbot.de/</link>
|
||||||
<description>Providing you the latest update notifications.</description>
|
<description>Providing you the latest update notifications.</description>
|
||||||
<copyright>© 2019-<?php echo date('y'); ?> Steffen Lange</copyright>
|
<copyright>© 2019-<?php echo date('y'); ?> Steffen Lange</copyright>
|
||||||
<pubDate><?php echo date(DATE_RSS); ?></pubDate>
|
<lastBuildDate><?php echo date(DATE_RSS); ?></lastBuildDate>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
for ($i = 0; $i < $db->count(); $i++) {
|
for ($i = 0; $i < $db->count(); $i++) {
|
||||||
$patch = $db->get($i);
|
$patch = $db->get($i);
|
||||||
echo '<item>';
|
echo '<item>';
|
||||||
echo '<title>' . htmlspecialchars($patch->getVendor()) . ' released ' . htmlspecialchars($patch->getProduct());
|
$s = htmlspecialchars($patch->getVendor()) . ' released ' . htmlspecialchars($patch->getProduct());
|
||||||
if (!empty($patch->getBranch()))
|
if (!empty($patch->getBranch()))
|
||||||
echo ' ' . htmlspecialchars($patch->getBranch());
|
$s .= ' ' . htmlspecialchars($patch->getBranch());
|
||||||
echo ' version ' . htmlspecialchars($patch->getVersion()) . '.</title>';
|
$s .= ' version ' . htmlspecialchars($patch->getVersion()) . '.';
|
||||||
|
echo '<title>' . $s . '</title>';
|
||||||
|
echo '<description>' . $s . '</description>';
|
||||||
echo '<link>' . htmlspecialchars($patch->getURL()) . '</link>';
|
echo '<link>' . htmlspecialchars($patch->getURL()) . '</link>';
|
||||||
echo '<pubDate>' . date(DATE_RSS, $patch->getTimestamp()) . '</pubDate>';
|
echo '<pubDate>' . date(DATE_RSS, $patch->getTimestamp()) . '</pubDate>';
|
||||||
echo '<guid isPermaLink="false">' . hash('sha256', $patch) . '</guid>';
|
echo '<guid isPermaLink="false">' . substr(hash('sha256', $patch), 0, 10) . '</guid>';
|
||||||
echo '</item>' . "\n";
|
echo '</item>' . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue