jsonp support (thankxs fabrixxm)
This commit is contained in:
parent
d4abc91d1f
commit
e1f88fd15d
@ -197,7 +197,10 @@ require_once('include/items.php');
|
||||
case "json":
|
||||
header ("Content-Type: application/json");
|
||||
foreach($r as $rr)
|
||||
return json_encode($rr);
|
||||
$json = json_encode($rr);
|
||||
if ($_GET['callback'])
|
||||
$json = $_GET['callback']."(".$json.")";
|
||||
return $json;
|
||||
break;
|
||||
case "rss":
|
||||
header ("Content-Type: application/rss+xml");
|
||||
|
@ -154,7 +154,7 @@ function tagadelic($uid, $count = 0, $authors = '', $flags = 0, $restrict = 0, $
|
||||
}
|
||||
|
||||
function tags_sort($a,$b) {
|
||||
if($a[0] == $b[0])
|
||||
if(strtolower($a[0]) == strtolower($b[0]))
|
||||
return 0;
|
||||
return((strtolower($a[0]) < strtolower($b[0])) ? -1 : 1);
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
2014-10-15.829
|
||||
2014-10-16.830
|
||||
|
Reference in New Issue
Block a user