diff --git a/imagecache.module b/imagecache.module index 5b05924..ed7bffb 100644 --- a/imagecache.module +++ b/imagecache.module @@ -399,8 +399,8 @@ function imagecache_create_url($presetname, $filepath, $bypass_browser_cache = F */ function imagecache_style_path_token($presetname, $path) { // Drupal 6 may not yet have drupal_get_hash_salt(). - global $db_query; - $salt = sha1(serialize($db_query)); + global $db_url; + $salt = sha1(serialize($db_url)); // Return the first eight characters. return substr(_imagecache_hmac_base64($presetname . ':' . $path, drupal_get_private_key() . $salt), 0, 8); }