summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-22 23:23:03 +0300
committerAndrew Dolgov <[email protected]>2021-02-22 23:23:03 +0300
commitf999a5df1c85678ce70c5c7c9f82565aade52229 (patch)
treeb6504758911780f1fd77c6869499ac4eba0c911a
parent31674f94a73b13823547542a5d44efc647f392ba (diff)
updates for config::
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index e768bc3..07d44f3 100644
--- a/init.php
+++ b/init.php
@@ -147,7 +147,7 @@ class Api_Resize_Media extends Plugin {
}
} else {
- $data = fetch_file_contents(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
+ $data = fetch_file_contents(["url" => $url, "max_size" => Config::get(Config::MAX_CACHE_FILE_SIZE)]);
if ($data) {
if ($this->cache->put($local_filename, $data)) {