diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-26 13:04:40 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-26 13:04:40 +0000 |
| commit | b31d0d19d47013449d2cfead1cecbfa5b2258d6e (patch) | |
| tree | b5c89f13b7c1f83280a91e9e11f9ac5d8c99d55c | |
| parent | 7be11e05191aeaf871b1d14d7bede4d8f6d55535 (diff) | |
| download | wordpress-mu-b31d0d19d47013449d2cfead1cecbfa5b2258d6e.tar.gz wordpress-mu-b31d0d19d47013449d2cfead1cecbfa5b2258d6e.tar.xz wordpress-mu-b31d0d19d47013449d2cfead1cecbfa5b2258d6e.zip | |
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
| -rw-r--r-- | wp-inst/wp-includes/rss-functions.php | 16 |
1 files changed, 7 insertions, 9 deletions
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; |
