From 8c2d418b8c7868a064460c73e82f7b218fbe5b75 Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 20 Nov 2013 11:50:34 +0530 Subject: [PATCH] parameterise getFeed method to accept blog url to be displayed in news section --- CRM/Dashlet/Page/Blog.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Dashlet/Page/Blog.php b/CRM/Dashlet/Page/Blog.php index 8489ddf256..40e355f9df 100644 --- a/CRM/Dashlet/Page/Blog.php +++ b/CRM/Dashlet/Page/Blog.php @@ -89,11 +89,11 @@ class CRM_Dashlet_Page_Blog extends CRM_Core_Page { * * @return array|NULL array of blog items; or NULL if not available * - * @access private + * @access public */ - private function _getFeed() { + public function _getFeed( $url = self::BLOG_URL) { $httpClient = new CRM_Utils_HttpClient(self::CHECK_TIMEOUT); - list ($status, $rawFeed) = $httpClient->get(self::BLOG_URL); + list ($status, $rawFeed) = $httpClient->get($url); if ($status !== CRM_Utils_HttpClient::STATUS_OK) { return NULL; } -- 2.25.1