Changeset 28882 for extensions/ContactForm/main.inc.php
- Timestamp:
- Jul 1, 2014, 11:09:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/main.inc.php
r28839 r28882 15 15 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 16 16 17 global $ prefixeTable;17 global $conf, $prefixeTable; 18 18 19 19 define('CONTACT_FORM_ID', basename(dirname(__FILE__))); … … 22 22 define('CONTACT_FORM_PUBLIC', get_absolute_root_url() . make_index_url(array('section' => 'contact')) . '/'); 23 23 define('CONTACT_FORM_TABLE', $prefixeTable .'contact_form'); 24 25 $conf['ContactForm'] = safe_unserialize($conf['ContactForm']); 24 26 25 27 include(CONTACT_FORM_PATH . 'include/functions.inc.php'); … … 38 40 } 39 41 40 add_event_handler('blockmanager_apply', 'contact_form_applymenu', EVENT_HANDLER_PRIORITY_NEUTRAL+10); 41 add_event_handler('before_parse_mail_template', 'contact_form_mail_template', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 42 if ($conf['ContactForm']['cf_menu_link']) 43 { 44 add_event_handler('blockmanager_apply', 'contact_form_applymenu', EVENT_HANDLER_PRIORITY_NEUTRAL+10); 45 } 46 47 add_event_handler('before_parse_mail_template', 'contact_form_mail_template'); 42 48 43 49 … … 49 55 global $conf, $template; 50 56 51 $conf['ContactForm'] = safe_unserialize($conf['ContactForm']);52 53 57 load_language('plugin.lang', CONTACT_FORM_PATH); 54 58 load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true));
Note: See TracChangeset
for help on using the changeset viewer.