This commit is contained in:
marijus 2014-10-16 22:53:04 +02:00
commit f290c4b1e4
3 changed files with 6 additions and 3 deletions

View file

@ -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");

View file

@ -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);
}

View file

@ -1 +1 @@
2014-10-15.829
2014-10-16.830