Skip to content
Browse files

added error output capture back

  • Loading branch information...
1 parent 445e8c8 commit 81574dc5b511286f04521852efeec39a8353d607 dhawes committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 blocks/rss_client/block_rss_client.php
View
8 blocks/rss_client/block_rss_client.php
@@ -143,12 +143,10 @@ function get_rss_by_id($rssid, $display_description, $shownumentries, $showtitle
// 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)) {

0 comments on commit 81574dc

Please sign in to comment.
Something went wrong with that request. Please try again.