Refactor PHP.

This commit is contained in:
Lars Jung 2015-05-02 18:01:03 +02:00
parent 6e54ba2f73
commit d2031d57d2
3 changed files with 30 additions and 29 deletions

View file

@ -77,7 +77,7 @@ class Api {
private function on_getThumbHref() {
Util::json_fail(Util::RC_DISABLED, "thumbnails disabled", !$this->app->get_option("thumbnails.enabled", false));
Util::json_fail(Util::RC_UNSUPPORTED, "thumbnails not supported", !HAS_PHP_JPG);
Util::json_fail(Util::RC_UNSUPPORTED, "thumbnails not supported", !HAS_PHP_JPEG);
$type = Util::get_request_param("type");
$src_url = Util::get_request_param("href");