From: hickert Date: Mon, 20 Sep 2010 09:41:24 +0000 (+0000) Subject: Updated dashboard X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=106f2a6a218243c9285a446ec321beb5c62a8228;p=gosa.git Updated dashboard -Replaced rrs example with heise.de, its faster. -Avoid sending errors while parsing the source file git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19767 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 9869d52fd..4e3d0976d 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->loadXML($source); + $res = @$doc->loadXML($source); if(!$res){ trigger_error("Failed to load feed '{$source}'!"); }else{ diff --git a/gosa-core/plugins/generic/dashBoard/dbInformation/class_dbInformation.inc b/gosa-core/plugins/generic/dashBoard/dbInformation/class_dbInformation.inc index 48b60b6f4..218eb0eb6 100644 --- a/gosa-core/plugins/generic/dashBoard/dbInformation/class_dbInformation.inc +++ b/gosa-core/plugins/generic/dashBoard/dbInformation/class_dbInformation.inc @@ -31,7 +31,7 @@ class dbInformation extends plugin } // Read Feeds and sort the results - $feeds = rssReader::parseFeedFromUrl(array('http://www.uweschwanz.com/de/rss/')); + $feeds = rssReader::parseFeedFromUrl(array('http://www.heise.de/newsticker/heise.rdf')); $feeds = rssReader::sortFeedResultBy($feeds, 'timestamp'); // Append the results to the list.