mirror of
https://github.com/godotengine/godot-website.git
synced 2026-01-07 18:09:59 +03:00
Update sobored/rss plugin to 1.1.0
This commit is contained in:
@@ -12,6 +12,10 @@ use SoBoRed\Rss\Models\Settings;
|
||||
|
||||
class Plugin extends PluginBase
|
||||
{
|
||||
/**
|
||||
* @var array Plugin dependencies
|
||||
*/
|
||||
public $require = ['RainLab.Blog'];
|
||||
|
||||
public function pluginDetails()
|
||||
{
|
||||
@@ -80,7 +84,7 @@ class Plugin extends PluginBase
|
||||
$description = Markdown::parse(trim($description));
|
||||
|
||||
$fileContents .= "\t\t<item>\n" .
|
||||
"\t\t\t<title>" . $post->title . "</title>\n" .
|
||||
"\t\t\t<title>" . htmlspecialchars($post->title, ENT_QUOTES, 'UTF-8') . "</title>\n" .
|
||||
"\t\t\t<link>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</link>\n" .
|
||||
"\t\t\t<guid>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</guid>\n" .
|
||||
"\t\t\t<pubDate>" . $published->format(DateTime::RFC2822) . "</pubDate>\n" .
|
||||
|
||||
@@ -12,3 +12,4 @@
|
||||
- Changed having to where to help database type compatibility
|
||||
- Updated the output to parse markdown
|
||||
1.0.9: Update to work with new RC version of October.
|
||||
1.1.0: Properly escape post title
|
||||
|
||||
Reference in New Issue
Block a user