Changeset 7197 for extensions/ContactForm/include
- Timestamp:
- Oct 15, 2010, 4:20:39 PM (14 years ago)
- Location:
- extensions/ContactForm/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/include/cf_common.inc.php
r7136 r7197 37 37 define('CF_DEFAULT_PREFIX', 'Piwigo ContactForm'); 38 38 define('CF_REDIRECT_DELAY', 5); 39 define('CF_DEFAULT_LINKNAME', 'ContactFormLink');40 39 define('CF_LANG_DEFAULT', 'default'); 41 40 // Config keys … … 56 55 define('CF_CFG_NAME_MANDATORY', 'cf_mandatory_name'); 57 56 define('CF_CFG_REDIRECT_DELAY', 'cf_redirect_delay'); 58 define('CF_CFG_DEFINE_LINK', 'cf_define_link');59 define('CF_CFG_CONTACT_LINK', 'cf_link');60 57 define('CF_CFG_ADMIN_MAILS', 'cf_admin_mails'); 61 58 … … 86 83 $cf_config_default[CF_CFG_NAME_MANDATORY] = true; 87 84 $cf_config_default[CF_CFG_REDIRECT_DELAY] = CF_REDIRECT_DELAY; 88 $cf_config_default[CF_CFG_DEFINE_LINK] = true;89 $cf_config_default[CF_CFG_CONTACT_LINK] = CF_DEFAULT_LINKNAME;90 85 $cf_config_default[CF_CFG_ADMIN_MAILS] = cf_get_admins_contacts(); 91 86 $cf_config_default[CF_CFG_ADMIN_MAILS] = array(); -
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.