From ed323cfe7bb12d0e5a2583ad1caf2a25b457c04c Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 14 Jan 2014 23:56:52 +0200 Subject: [PATCH] Blog Plugin as a part of Monstra CMS #188 --- rss.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss.php b/rss.php index 12acba9..69a435f 100644 --- a/rss.php +++ b/rss.php @@ -8,7 +8,7 @@ define('MONSTRA_ACCESS', true); require_once(ROOT . DS . 'engine' . DS . '_init.php'); // Get all posts for blog parent page/post -$posts = Pages::$pages->select('[parent="blog" and status="published"]', 5, 0, array('slug', 'title', 'author', 'date'), 'date', 'DESC'); +$posts = Pages::$pages->select('[parent="'.Blog::$parent_page_name.'" and status="published"]', 5, 0, array('slug', 'title', 'author', 'date'), 'date', 'DESC'); // Date now $now = date("D, d M Y H:i:s T");