mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:15:56 +00:00
migrate the rest into Config::
This commit is contained in:
@@ -68,7 +68,7 @@ class Af_Proxy_Http extends Plugin {
|
||||
header("Location: " . $this->cache->get_url($local_filename));
|
||||
return;
|
||||
} else {
|
||||
$data = UrlHelper::fetch(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
|
||||
$data = UrlHelper::fetch(["url" => $url, "max_size" => Config::get(Config::MAX_CACHE_FILE_SIZE)]);
|
||||
|
||||
if ($data) {
|
||||
if ($this->cache->put($local_filename, $data)) {
|
||||
|
||||
@@ -136,7 +136,7 @@ class Cache_Starred_Images extends Plugin {
|
||||
if (!$this->cache->exists($local_filename)) {
|
||||
Debug::log("cache_images: downloading: $url to $local_filename", Debug::$LOG_VERBOSE);
|
||||
|
||||
$data = UrlHelper::fetch(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
|
||||
$data = UrlHelper::fetch(["url" => $url, "max_size" => Config::get(Config::MAX_CACHE_FILE_SIZE)]);
|
||||
|
||||
if ($data)
|
||||
return $this->cache->put($local_filename, $data);;
|
||||
|
||||
Reference in New Issue
Block a user