Changes some API things.

This commit is contained in:
Lars Jung 2012-10-09 14:16:57 +02:00
parent 811994423d
commit a60d5556af
13 changed files with 36 additions and 33 deletions

View file

@ -77,7 +77,7 @@ class Api {
}
else if ($action === "getthumbsrc") {
else if ($action === "getThumbHref") {
if (!$options["thumbnails"]["enabled"]) {
json_fail(1, "thumbnails disabled");
@ -100,7 +100,7 @@ class Api {
}
else if ($action === "archive") {
else if ($action === "createArchive") {
json_fail(1, "downloads disabled", !$options["download"]["enabled"]);
@ -120,7 +120,7 @@ class Api {
}
else if ($action === "getarchive") {
else if ($action === "getArchive") {
json_fail(1, "downloads disabled", !$options["download"]["enabled"]);
@ -222,11 +222,6 @@ class Api {
json_exit();
}
else {
json_fail(100, "unsupported action");
}
}
}