From: dhawes Date: Sat, 29 Jan 2005 03:07:43 +0000 (+0000) Subject: added error output capture back X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=81574dc5b511286f04521852efeec39a8353d607;p=moodle.git added error output capture back --- diff --git a/blocks/rss_client/block_rss_client.php b/blocks/rss_client/block_rss_client.php index 196bf94fc8..de575c5ab1 100644 --- a/blocks/rss_client/block_rss_client.php +++ b/blocks/rss_client/block_rss_client.php @@ -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)) {