mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-07 18:14:38 -04:00
Refactor PHP.
This commit is contained in:
parent
6e54ba2f73
commit
d2031d57d2
3 changed files with 30 additions and 29 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue