summaryrefslogtreecommitdiff
path: root/inc/media.php
diff options
context:
space:
mode:
authorKlap-in <klapinklapin@gmail.com>2013-08-01 23:06:03 +0200
committerKlap-in <klapinklapin@gmail.com>2013-08-01 23:06:03 +0200
commitcc036f74ff14c387f24d72f5a52f2f158208846e (patch)
treede0101ebce96622162dd8544f001783b395b9353 /inc/media.php
parent4002c084d5e2ffc82739870cb9f107644d9787ff (diff)
downloadrpg-cc036f74ff14c387f24d72f5a52f2f158208846e.tar.gz
rpg-cc036f74ff14c387f24d72f5a52f2f158208846e.tar.bz2
remove hash for external images, but use token url parameter instead
Diffstat (limited to 'inc/media.php')
-rw-r--r--inc/media.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/media.php b/inc/media.php
index fbe1363ec..c0e3e9f82 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -1900,7 +1900,7 @@ function media_crop_image($file, $ext, $w, $h=0){
*/
function media_get_token($id,$w,$h){
// token is only required for modified images
- if ($w || $h) {
+ if ($w || $h || media_isexternal($id)) {
$token = $id;
if ($w) $token .= '.'.$w;
if ($h) $token .= '.'.$h;