Ticket #59548: 59548.patch
File 59548.patch, 1.2 KB (added by , 17 months ago) |
---|
-
rss.php
498 498 } 499 499 } 500 500 else { 501 $errormsg = "Failed to fetch $url. ";501 //$errormsg = "Failed to fetch $url. "; 502 502 if ( $resp->error ) { 503 503 # compensate for Snoopy's annoying habit to tacking 504 504 # on '\n' 505 $http_error = substr($resp->error, 0, -2);506 $errormsg .= "(HTTP Error: $http_error)";505 //$http_error = substr($resp->error, 0, -2); 506 //$errormsg .= "(HTTP Error: $http_error)"; 507 507 } 508 508 else { 509 $errormsg .= "(HTTP Response: " . $resp->response_code .')';509 //$errormsg .= "(HTTP Response: " . $resp->response_code .')'; 510 510 } 511 511 } 512 512 } 513 513 else { 514 $errormsg = "Unable to retrieve RSS file for unknown reasons.";514 //$errormsg = "Unable to retrieve RSS file for unknown reasons."; 515 515 } 516 516 517 517 // else fetch failed … … 616 616 return $rss; 617 617 } // else construct error message 618 618 else { 619 $errormsg = "Failed to parse RSS file.";619 // $errormsg = "Failed to parse RSS file."; 620 620 621 if ($rss) {622 $errormsg .= " (" . $rss->ERROR . ")";623 }621 // if ($rss) { 622 // $errormsg .= " (" . $rss->ERROR . ")"; 623 // } 624 624 // error($errormsg); 625 625 626 626 return false;