Code

Updated dashboard
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Sep 2010 09:41:24 +0000 (09:41 +0000)
committerhickert <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

gosa-core/plugins/generic/dashBoard/class_rssReader.inc
gosa-core/plugins/generic/dashBoard/dbInformation/class_dbInformation.inc

index 9869d52fdcb7ca7f0b454690958dc9d3e5638ae0..4e3d0976dfe49aae785c9687b7ce48a306254b25 100644 (file)
@@ -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{
index 48b60b6f43b1a0b03a176247401f5aa693c70030..218eb0eb6923e0820a9d5e205e7751f6c7ae01ec 100644 (file)
@@ -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.