From: hickert Date: Wed, 30 Jun 2010 14:43:25 +0000 (+0000) Subject: Updated dashBoard X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7e600822045fdb72fdc09b2ce3c884f55378f008;p=gosa.git Updated dashBoard git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18888 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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));