From 7afee0e277d82cba2da2eeb4146cce98640665c7 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Thu, 4 Aug 2016 21:56:11 +0200 Subject: [PATCH] [WordPress] Fix site name on bridge content --- bridges/WordPressBridge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php index 0ba1851..35ef3bf 100644 --- a/bridges/WordPressBridge.php +++ b/bridges/WordPressBridge.php @@ -4,6 +4,7 @@ define('WORDPRESS_TYPE_RSS', 2); // Content is of type RSS class WordPressBridge extends BridgeAbstract { private $url; + public $sitename; // Name of the site public function loadMetadatas() { @@ -74,7 +75,7 @@ class WordPressBridge extends BridgeAbstract { $posts = $html->find('entry'); if(!empty($posts) ) { - $this->name = $html->find('title', 0)->plaintext; + $this->sitename = $html->find('title', 0)->plaintext; $i=0; foreach ($posts as $article) { @@ -132,7 +133,7 @@ class WordPressBridge extends BridgeAbstract { } public function getName() { - return "{$this->name} - Wordpress Bridge"; + return "{$this->sitename} - Wordpress Bridge"; } public function getURI() {