API: Now returns a real 404 when a function isn't implemented

parse_url: Image handling improved
This commit is contained in:
Michael Vogel 2012-07-13 23:23:31 +02:00
parent 02a1fc9cd0
commit 5f400c4a97
3 changed files with 5 additions and 30 deletions

View file

@ -698,9 +698,10 @@ function get_atom_elements($feed,$item) {
call_hooks('parse_atom', $arr);
//if (($res["title"] != "") or (strpos($res["body"], "RT @") > 0)) {
// $debugfile = tempnam("/home/ike/log", "item-res2-");
// file_put_contents($debugfile, serialize($res));
//}
if (strpos($res["body"], "RT @") !== false) {
$debugfile = tempnam("/home/ike/log", "item-res2-");
file_put_contents($debugfile, serialize($arr));
}
return $res;
}