Errors are broken.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-27 18:31:42 +00:00
parent 0102ed5569
commit 3c021ffcd7

View File

@ -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)