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
1 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ class MagpieRSS {
# if PHP xml isn't compiled in, die # if PHP xml isn't compiled in, die
# #
if (!function_exists('xml_parser_create')) { 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", "http://www.php.net/manual/en/ref.xml.php",
E_USER_ERROR ); E_USER_ERROR );
} }
@ -49,7 +49,7 @@ class MagpieRSS {
if (!is_resource($parser)) 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", "http://www.php.net/manual/en/ref.xml.php",
E_USER_ERROR ); E_USER_ERROR );
} }
@ -374,7 +374,7 @@ function fetch_rss ($url) {
init(); init();
if ( !isset($url) ) { if ( !isset($url) ) {
error("fetch_rss called without a url"); // error("fetch_rss called without a url");
return false; return false;
} }
@ -386,7 +386,7 @@ function fetch_rss ($url) {
return _response_to_rss( $resp ); return _response_to_rss( $resp );
} }
else { else {
error("Failed to fetch $url and cache is off"); // error("Failed to fetch $url and cache is off");
return false; return false;
} }
} }
@ -489,7 +489,7 @@ function fetch_rss ($url) {
} }
// else we totally failed // else we totally failed
error( $errormsg ); // error( $errormsg );
return false; return false;
@ -545,7 +545,7 @@ function _response_to_rss ($resp) {
if ($rss) { if ($rss) {
$errormsg .= " (" . $rss->ERROR . ")"; $errormsg .= " (" . $rss->ERROR . ")";
} }
error($errormsg); // error($errormsg);
return false; return false;
} // end if ($rss and !$rss->error) } // end if ($rss and !$rss->error)