summaryrefslogtreecommitdiff
path: root/include/functions2.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions2.php')
-rw-r--r--include/functions2.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 9d6eb9330..e00a0ba13 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -1816,6 +1816,11 @@
if (db_num_rows($result) > 0) {
while ($line = db_fetch_assoc($result)) {
+
+ if (file_exists(CACHE_DIR . '/images/' . sha1($line["content_url"]))) {
+ $line["content_url"] = get_self_url_prefix() . '/public.php?op=cached_url&hash=' . sha1($line["content_url"]);
+ }
+
array_push($rv, $line);
}
}