Skip to content

Commit

Permalink
added error output capture back
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawes committed Jan 29, 2005
1 parent 445e8c8 commit 81574dc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions blocks/rss_client/block_rss_client.php
Expand Up @@ -143,12 +143,10 @@ function get_rss_by_id($rssid, $display_description, $shownumentries, $showtitle
// By capturing the output from fetch_rss this way // By capturing the output from fetch_rss this way
// error messages do not display and clutter up the moodle interface // error messages do not display and clutter up the moodle interface
// however, we do lose out on seeing helpful messages like "cache hit", etc. // however, we do lose out on seeing helpful messages like "cache hit", etc.

ob_start();
error_reporting(E_USER_NOTICE);
//ob_start();
$rss = fetch_rss($rss_record->url); $rss = fetch_rss($rss_record->url);
//$rsserror = ob_get_contents(); $rsserror = ob_get_contents();
//ob_end_clean(); ob_end_clean();


if ($rss === false) { if ($rss === false) {
if ($CFG->debug && !empty($rsserror)) { if ($CFG->debug && !empty($rsserror)) {
Expand Down

0 comments on commit 81574dc

Please sign in to comment.