diff options
author | Andrew Dolgov <[email protected]> | 2021-02-15 19:14:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-15 19:14:36 +0300 |
commit | d292140233a239c02f68e9a02cfa0c205092095e (patch) | |
tree | e4e4ce47ef1701bb8e961d864163fec7d31f57e6 | |
parent | 0757b0ec8b95b4a9f91b2dd40ec774af9a3d4a0b (diff) |
fixes for tt-rss changes
-rw-r--r-- | init.php | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -127,22 +127,22 @@ class Api_Resize_Media extends Plugin { if ($this->cache->exists($local_filename)) { if ($this->cache->exists($resized_filename)) { - header("Location: " . $this->cache->getUrl($resized_filename)); + header("Location: " . $this->cache->get_url($resized_filename)); return; } else { $this->make_thumbnail( - $this->cache->getFullPath($local_filename), - $this->cache->getFullPath($resized_filename), + $this->cache->get_full_path($local_filename), + $this->cache->get_full_path($resized_filename), $width, $width, - $this->cache->getMimeType($local_filename), + $this->cache->get_mime_type($local_filename), $force_stamp); if ($this->cache->exists($resized_filename)) { - header("Location: " . $this->cache->getUrl($resized_filename)); + header("Location: " . $this->cache->get_url($resized_filename)); return; } else { - header("Location: " . $this->cache->getUrl($local_filename)); + header("Location: " . $this->cache->get_url($local_filename)); return; } } @@ -153,23 +153,23 @@ class Api_Resize_Media extends Plugin { if ($data) { if ($this->cache->put($local_filename, $data)) { if ($this->cache->exists($resized_filename)) { - header("Location: " . $this->cache->getUrl($resized_filename)); + header("Location: " . $this->cache->get_url($resized_filename)); return; } else { $this->make_thumbnail( - $this->cache->getFullPath($local_filename), - $this->cache->getFullPath($resized_filename), + $this->cache->get_full_path($local_filename), + $this->cache->get_full_path($resized_filename), $width, $width, - $this->cache->getMimeType($local_filename), + $this->cache->get_mime_type($local_filename), $force_stamp); if ($this->cache->exists($resized_filename)) { - header("Location: " . $this->cache->getUrl($resized_filename)); + header("Location: " . $this->cache->get_url($resized_filename)); return; } else { - header("Location: " . $this->cache->getUrl($local_filename)); + header("Location: " . $this->cache->get_url($local_filename)); return; } } @@ -214,7 +214,7 @@ class Api_Resize_Media extends Plugin { $local_filename = sha1($url) . "-$width"; if ($this->cache->exists($local_filename)) { - return $this->cache->getUrl($local_filename); + return $this->cache->get_url($local_filename); } else { if ($this->cache->touch(sha1($url) . ".flag")) { return $this->host->get_public_method_url($this, "api_resize", |