]> git.wh0rd.org - tt-rss.git/commitdiff
update image caching handler code (refs #300)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Jan 2011 09:29:45 +0000 (12:29 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Jan 2011 09:29:45 +0000 (12:29 +0300)
functions.php

index 0bbefd58149a94094582675f1f6b08a3d7019fb5..83cdca3f71385d1bffe912aabc7e3135063dec97 100644 (file)
                                $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']) {