Errors are broken.
git-svn-id: https://develop.svn.wordpress.org/trunk@2810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f5abedd751
commit
a1e2c715b7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user