Ignore:
Timestamp:
Jul 1, 2014, 11:09:38 AM (10 years ago)
Author:
mistic100
Message:

block menu link sooner, add identifier for menu link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/main.inc.php

    r28839 r28882  
    1515defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
    1616
    17 global $prefixeTable;
     17global $conf, $prefixeTable;
    1818
    1919define('CONTACT_FORM_ID',     basename(dirname(__FILE__)));
     
    2222define('CONTACT_FORM_PUBLIC', get_absolute_root_url() . make_index_url(array('section' => 'contact')) . '/');
    2323define('CONTACT_FORM_TABLE',  $prefixeTable .'contact_form');
     24
     25$conf['ContactForm'] = safe_unserialize($conf['ContactForm']);
    2426
    2527include(CONTACT_FORM_PATH . 'include/functions.inc.php');
     
    3840}
    3941
    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);
     42if ($conf['ContactForm']['cf_menu_link'])
     43{
     44  add_event_handler('blockmanager_apply', 'contact_form_applymenu', EVENT_HANDLER_PRIORITY_NEUTRAL+10);
     45}
     46
     47add_event_handler('before_parse_mail_template', 'contact_form_mail_template');
    4248
    4349
     
    4955  global $conf, $template;
    5056
    51   $conf['ContactForm'] = safe_unserialize($conf['ContactForm']);
    52  
    5357  load_language('plugin.lang', CONTACT_FORM_PATH);
    5458  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.