Changeset 7197 for extensions/ContactForm/include/cf_functions.inc.php
- Timestamp:
- Oct 15, 2010, 4:20:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/include/cf_functions.inc.php
r6547 r7197 140 140 } 141 141 } 142 143 function contactForm_prefilter($content, &$smarty) { 144 $search = '#{if\s+isset\s*\(\s*\$CONTACT_MAIL\s*\)\s*}.*?{/if}#s'; 145 $replacement = '{if isset($ContactFormLink)}{$ContactFormLink}{/if}'; 146 147 return preg_replace($search, $replacement, $content); 148 } 142 149 143 150 function cf_clean_obsolete_files($obsolete_file_list) {
Note: See TracChangeset
for help on using the changeset viewer.