diff options
author | Andrew Dolgov <[email protected]> | 2011-01-26 11:38:07 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-01-26 11:38:07 +0300 |
commit | 0900727a8b0790aee1f4b119fccbab0254657094 (patch) | |
tree | 64530455af1b68ddd5c7da2a9f0ed16ca2892580 /modules/pref-feeds.php | |
parent | ce72cb956d4ec1000cb04757ed1c99278bd055a2 (diff) |
only show cache images option in feed editor when SIMPLEPIE_CACHE_IMAGES is enabled
Diffstat (limited to 'modules/pref-feeds.php')
-rw-r--r-- | modules/pref-feeds.php | 17 |
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> <label for=\"cache_images\">". __('Cache images locally (SimplePie only)')."</label>"; - + } # print "</div>"; print "</div>"; @@ -609,14 +610,16 @@ print " "; 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\"> <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\"> <label class='insensitive' id=\"cache_images_l\" for=\"cache_images\">". __('Cache images locally')."</label>"; + - - print " "; batch_edit_cbox("cache_images", "cache_images_l"); + print " "; batch_edit_cbox("cache_images", "cache_images_l"); + } print "</div>"; |