summaryrefslogtreecommitdiff
path: root/plugins/af_proxy_http
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-15 16:11:30 +0300
committerAndrew Dolgov <[email protected]>2021-02-15 16:11:30 +0300
commit166f2d46666bb872a1f30a5ab23b113f2f481640 (patch)
treeaba3be014a77a930e067864ce36b72e962100e3a /plugins/af_proxy_http
parent8e79f1717d5270558ffd30c20cc75840b0ecc955 (diff)
diskcache: unify naming
Diffstat (limited to 'plugins/af_proxy_http')
-rw-r--r--plugins/af_proxy_http/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_proxy_http/init.php b/plugins/af_proxy_http/init.php
index 3bde08fdb..3f26ca900 100644
--- a/plugins/af_proxy_http/init.php
+++ b/plugins/af_proxy_http/init.php
@@ -59,14 +59,14 @@ class Af_Proxy_Http extends Plugin {
$local_filename = sha1($url);
if ($this->cache->exists($local_filename)) {
- header("Location: " . $this->cache->getUrl($local_filename));
+ header("Location: " . $this->cache->get_url($local_filename));
return;
} else {
$data = UrlHelper::fetch(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
if ($data) {
if ($this->cache->put($local_filename, $data)) {
- header("Location: " . $this->cache->getUrl($local_filename));
+ header("Location: " . $this->cache->get_url($local_filename));
return;
}
} else {