summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
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 /classes/rssutils.php
parent8e79f1717d5270558ffd30c20cc75840b0ecc955 (diff)
diskcache: unify naming
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index cd6f90859..751cae58e 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -1281,7 +1281,7 @@ class RSSUtils {
static function cache_enclosures($enclosures, $site_url) {
$cache = new DiskCache("images");
- if ($cache->isWritable()) {
+ if ($cache->is_writable()) {
foreach ($enclosures as $enc) {
if (preg_match("/(image|audio|video)/", $enc[1])) {
@@ -1335,7 +1335,7 @@ class RSSUtils {
} else {
Debug::log("cache_media: failed with $fetch_last_error_code: $fetch_last_error");
}
- } else if ($cache->isWritable($local_filename)) {
+ } else if ($cache->is_writable($local_filename)) {
$cache->touch($local_filename);
}
}
@@ -1344,7 +1344,7 @@ class RSSUtils {
static function cache_media($html, $site_url) {
$cache = new DiskCache("images");
- if ($html && $cache->isWritable()) {
+ if ($html && $cache->is_writable()) {
$doc = new DOMDocument();
if (@$doc->loadHTML($html)) {
$xpath = new DOMXPath($doc);