summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47d2161)
raw | patch | inline | side by side (parent: 47d2161)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Sep 2010 09:41:24 +0000 (09:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Sep 2010 09:41:24 +0000 (09:41 +0000) |
-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
-Avoid sending errors while parsing the source file
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19767 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/generic/dashBoard/class_rssReader.inc | patch | blob | history | |
gosa-core/plugins/generic/dashBoard/dbInformation/class_dbInformation.inc | patch | blob | history |
diff --git a/gosa-core/plugins/generic/dashBoard/class_rssReader.inc b/gosa-core/plugins/generic/dashBoard/class_rssReader.inc
index 9869d52fdcb7ca7f0b454690958dc9d3e5638ae0..4e3d0976dfe49aae785c9687b7ce48a306254b25 100644 (file)
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 48b60b6f43b1a0b03a176247401f5aa693c70030..218eb0eb6923e0820a9d5e205e7751f6c7ae01ec 100644 (file)
}
// 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.