summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew morton2009-08-19 18:12:41 (GMT)
committer andrew morton2009-08-19 18:12:41 (GMT)
commit4cf8549f161376ceae1b1673a23760ced5d2444a (patch)
tree86dc3202869fe160bc8027c7cc1dd97086af1357
parentaf3bfebf198be27d1a1fe6d4175b8a32a6f5a06f (diff)
#461104 by recidive: Trailing '?' in image urls
-rw-r--r--imagecache.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/imagecache.module b/imagecache.module
index 3932d7a..803ec44 100644
--- a/imagecache.module
+++ b/imagecache.module
@@ -217,7 +217,7 @@ function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = F
if (module_exists('transliteration')) {
$path = transliteration_get($path);
}
- $query = $bypass_browser_cache ? time() : $bypass_browser_cache;
+ $query = empty($bypass_browser_cache) ? NULL : time();
switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) {
case FILE_DOWNLOADS_PUBLIC:
return url($GLOBALS['base_url'] . '/' . file_directory_path() .'/imagecache/'. $presetname .'/'. $path, $query, NULL, TRUE);