]> git.wh0rd.org Git - tt-rss.git/commitdiff
only show cache images option in feed editor when SIMPLEPIE_CACHE_IMAGES is enabled
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Jan 2011 08:38:07 +0000 (11:38 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 26 Jan 2011 08:38:07 +0000 (11:38 +0300)
modules/pref-feeds.php

index 36957b236d019592cb0b4bdf3f7adc91f3797e38..cd7269989d0c9585c887d539826c2f4004759e92 100644 (file)
                                $checked = "";
                        }
 
-                       print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"cache_images\" 
+                       if (SIMPLEPIE_CACHE_IMAGES) {
+                               print "<hr/><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"cache_images\" 
                                name=\"cache_images\"
                                $checked>&nbsp;<label for=\"cache_images\">".
                                __('Cache images locally (SimplePie only)')."</label>";
-
+                       }
 
 #                      print "</div>";
                        print "</div>";
 
                        print "&nbsp;"; batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l");
 
-                       print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"cache_images\" 
-                               name=\"cache_images\" 
-                               dojoType=\"dijit.form.CheckBox\">&nbsp;<label class='insensitive' id=\"cache_images_l\" 
+                       if (SIMPLEPIE_CACHE_IMAGES) {
+                               print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"cache_images\" 
+                                       name=\"cache_images\" 
+                                       dojoType=\"dijit.form.CheckBox\">&nbsp;<label class='insensitive' id=\"cache_images_l\" 
                                        for=\"cache_images\">".
                                __('Cache images locally')."</label>";
+                       
 
-
-                       print "&nbsp;"; batch_edit_cbox("cache_images", "cache_images_l");
+                               print "&nbsp;"; batch_edit_cbox("cache_images", "cache_images_l");
+                       }
 
                        print "</div>";