Archived
1
0
Fork 0

Funktion getImgInfo() zu getImageInfo() und Key ''data'' im

Rückgabewert in ''label'' umbenannt (fixes #30)
This commit is contained in:
Jan Dittberner 2008-08-28 20:06:19 +00:00
parent e756510d21
commit 098528cb41
3 changed files with 6 additions and 8 deletions

View file

@ -37,7 +37,7 @@ if (isset($_GET["imagename"]) && isset($_GET["galleryname"]) &&
preg_match('/^[\w\d _-]+\.jp(e|)g$/', $_GET["imagename"]) &&
preg_match(GALLERY_RE, $_GET["galleryname"])) {
header("Content-Type: text/plain; charset=UTF-8");
if ($imageInfo = getImgInfo($_GET["galleryname"], $_GET["imagename"])) {
if ($imageInfo = getImageInfo($_GET["galleryname"], $_GET["imagename"])) {
print json_encode($imageInfo);
} else {
header("HTTP/1.0 404 Not Found");