diff options
author | Andrew Dolgov <[email protected]> | 2011-01-26 12:29:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-01-26 12:29:45 +0300 |
commit | 9fcbc76fda1a97d887da6c41e6f96d96b3f6efb1 (patch) | |
tree | faa4afa91eecc4dd48e60dd0be8952ecbc1cad95 /functions.php | |
parent | 0900727a8b0790aee1f4b119fccbab0254657094 (diff) |
update image caching handler code (refs #300)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 0bbefd581..83cdca3f7 100644 --- a/functions.php +++ b/functions.php @@ -652,11 +652,14 @@ $rss->set_output_encoding('UTF-8'); if (SIMPLEPIE_CACHE_IMAGES && $cache_images) { + + $image_handler = get_self_url_prefix() . '/image.php'; + if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { - _debug("enabling image cache"); + _debug("enabling image cache: $image_handler"); } - - $rss->set_image_handler(get_self_url_prefix() . '/image.php', 'i'); + + $rss->set_image_handler($image_handler, 'i'); } if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) { |