]> git.mjollnir.org Git - moodle.git/commitdiff
added error output capture back
authordhawes <dhawes>
Sat, 29 Jan 2005 03:07:43 +0000 (03:07 +0000)
committerdhawes <dhawes>
Sat, 29 Jan 2005 03:07:43 +0000 (03:07 +0000)
blocks/rss_client/block_rss_client.php

index 196bf94fc87b96e99bc5ca954f9b197d17898a42..de575c5ab13a88c896555d041ab9b0ead4b44791 100644 (file)
@@ -143,12 +143,10 @@ class block_rss_client extends block_base {
             // By capturing the output from fetch_rss this way
             // error messages do not display and clutter up the moodle interface
             // however, we do lose out on seeing helpful messages like "cache hit", etc.
-            
-            error_reporting(E_USER_NOTICE);            
-            //ob_start();
+            ob_start();
             $rss = fetch_rss($rss_record->url);
-            //$rsserror = ob_get_contents();
-            //ob_end_clean();
+            $rsserror = ob_get_contents();
+            ob_end_clean();
             
             if ($rss === false) {
                 if ($CFG->debug && !empty($rsserror)) {