From b31d0d19d47013449d2cfead1cecbfa5b2258d6e Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 26 Aug 2005 13:04:40 +0000 Subject: Fixed error reporting in rss functions. Should stop blank pages in dashboard git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@240 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-includes/rss-functions.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'wp-inst/wp-includes/rss-functions.php') diff --git a/wp-inst/wp-includes/rss-functions.php b/wp-inst/wp-includes/rss-functions.php index ee57ef0..fac1e02 100644 --- a/wp-inst/wp-includes/rss-functions.php +++ b/wp-inst/wp-includes/rss-functions.php @@ -40,18 +40,16 @@ class MagpieRSS { # if PHP xml isn't compiled in, die # if (!function_exists('xml_parser_create')) { - $this->error( "Failed to load PHP's XML Extension. " . - "http://www.php.net/manual/en/ref.xml.php", - E_USER_ERROR ); + die( "Failed to load PHP's XML Extension. " . + "http://www.php.net/manual/en/ref.xml.php" ); } $parser = @xml_parser_create(); if (!is_resource($parser)) { - $this->error( "Failed to create an instance of PHP's XML parser. " . - "http://www.php.net/manual/en/ref.xml.php", - E_USER_ERROR ); + die( "Failed to create an instance of PHP's XML parser. " . + "http://www.php.net/manual/en/ref.xml.php" ); } @@ -374,7 +372,7 @@ function fetch_rss ($url) { init(); if ( !isset($url) ) { - error("fetch_rss called without a url"); + #error("fetch_rss called without a url"); return false; } @@ -386,7 +384,7 @@ function fetch_rss ($url) { return _response_to_rss( $resp ); } else { - error("Failed to fetch $url and cache is off"); + #error("Failed to fetch $url and cache is off"); return false; } } @@ -489,7 +487,7 @@ function fetch_rss ($url) { } // else we totally failed - error( $errormsg ); + $cache->error( $errormsg ); return false; -- cgit