summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-02-27 14:51:26 +0300
committerAndrew Dolgov <[email protected]>2015-02-27 14:51:26 +0300
commit0c6f7b314ae663f1f9fc8ade53b9914f46e02954 (patch)
tree6df75ba10d0646590ee2ef4937a8aed91ccfcd5e /include
parent95ebe737bd9db0f3062f15bc79e37abe3f6faae5 (diff)
remove image.php; put cached image endpoint to public.php
Diffstat (limited to 'include')
-rw-r--r--include/functions2.php2
-rw-r--r--include/rssfuncs.php8
2 files changed, 1 insertions, 9 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 17d8acb3e..6d02d01e0 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -900,7 +900,7 @@
$cached_filename = CACHE_DIR . '/images/' . sha1($src) . '.png';
if (file_exists($cached_filename)) {
- $src = SELF_URL_PATH . '/image.php?hash=' . sha1($src);
+ $src = SELF_URL_PATH . '/public.php?op=cached_image&hash=' . sha1($src);
}
$entry->setAttribute('src', $src);
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index f80bcbb2b..b285f74c0 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -1155,16 +1155,8 @@
file_put_contents($local_filename, $file_content);
}
}
-
- /* if (file_exists($local_filename)) {
- $entry->setAttribute('src', SELF_URL_PATH . '/image.php?url=' .
- base64_encode($src));
- } */
}
}
-
- //$node = $doc->getElementsByTagName('body')->item(0);
- //return $doc->saveXML($node);
}
function expire_error_log($debug) {