From 7e600822045fdb72fdc09b2ce3c884f55378f008 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Jun 2010 14:43:25 +0000 Subject: [PATCH] Updated dashBoard git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18888 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/generic/dashBoard/class_rssReader.inc | 2 +- .../plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/generic/dashBoard/class_rssReader.inc b/gosa-core/plugins/generic/dashBoard/class_rssReader.inc index 770789449..9869d52fd 100644 --- a/gosa-core/plugins/generic/dashBoard/class_rssReader.inc +++ b/gosa-core/plugins/generic/dashBoard/class_rssReader.inc @@ -29,7 +29,7 @@ class rssReader{ if(!is_array($sources)) $urls = array($sources); foreach($sources as $source){ $doc = new DOMDocument(); - $res = $doc->loadHTML($source); + $res = $doc->loadXML($source); if(!$res){ trigger_error("Failed to load feed '{$source}'!"); }else{ diff --git a/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc b/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc index 461363fe8..e96680572 100644 --- a/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc +++ b/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc @@ -18,7 +18,8 @@ class dbAdvices extends plugin function execute() { // Get logs as RSS feed. - $source = file_get_contents('http://10.3.65.162/gosa/gosa-all/gosa/html/index.html'); + $rsyslog = new rsyslog($this->config); + $source = $rsyslog->logToRss(); // Read Feeds and sort the results $feeds = rssReader::parseFeedFromSource(array($source)); -- 2.30.2