Funktion getImgInfo() zu getImageInfo() und Key ''data'' im
Rückgabewert in ''label'' umbenannt (fixes #30)
This commit is contained in:
parent
e756510d21
commit
098528cb41
3 changed files with 6 additions and 8 deletions
|
@ -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");
|
||||
|
|
Reference in a new issue