summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-01-26 11:38:07 +0300
committerAndrew Dolgov <[email protected]>2011-01-26 11:38:07 +0300
commit0900727a8b0790aee1f4b119fccbab0254657094 (patch)
tree64530455af1b68ddd5c7da2a9f0ed16ca2892580 /modules
parentce72cb956d4ec1000cb04757ed1c99278bd055a2 (diff)
only show cache images option in feed editor when SIMPLEPIE_CACHE_IMAGES is enabled
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-feeds.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index 36957b236..cd7269989 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -443,11 +443,12 @@
$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>";
@@ -609,14 +610,16 @@
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>";