From 3c021ffcd7ff69450e763ee73cea1ca72f2629b3 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 27 Aug 2005 18:31:42 +0000 Subject: [PATCH] Errors are broken. git-svn-id: http://svn.automattic.com/wordpress/trunk@2810 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rss-functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/rss-functions.php b/wp-includes/rss-functions.php index 960c273d2..ccf741cb1 100644 --- a/wp-includes/rss-functions.php +++ b/wp-includes/rss-functions.php @@ -40,7 +40,7 @@ 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. " . + die( "Failed to load PHP's XML Extension. " . "http://www.php.net/manual/en/ref.xml.php", E_USER_ERROR ); } @@ -49,7 +49,7 @@ class MagpieRSS { if (!is_resource($parser)) { - $this->error( "Failed to create an instance of PHP's XML parser. " . + die( "Failed to create an instance of PHP's XML parser. " . "http://www.php.net/manual/en/ref.xml.php", E_USER_ERROR ); } @@ -374,7 +374,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 +386,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 +489,7 @@ function fetch_rss ($url) { } // else we totally failed - error( $errormsg ); + // error( $errormsg ); return false; @@ -545,7 +545,7 @@ function _response_to_rss ($resp) { if ($rss) { $errormsg .= " (" . $rss->ERROR . ")"; } - error($errormsg); + // error($errormsg); return false; } // end if ($rss and !$rss->error)