summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/rss-functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-includes/rss-functions.php')
-rw-r--r--wp-inst/wp-includes/rss-functions.php16
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;