Changeset 17518
- Timestamp:
- Aug 9, 2012, 10:46:10 PM (12 years ago)
- Location:
- extensions/ContactForm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/include/functions.inc.php
r17491 r17518 9 9 global $tokens, $page, $conf; 10 10 11 if (!defined('CONTACT_FORM_PUBLIC')) define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact')) . '/');12 13 11 if ($tokens[0] == 'contact') 14 12 { … … 41 39 if ( !is_classic_user() and !$conf['ContactForm']['cf_allow_guest'] ) return; 42 40 if ( !count(get_contact_emails()) ) return; 43 44 if (!defined('CONTACT_FORM_PUBLIC')) define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact')) . '/');45 41 46 42 $menu = &$menu_ref_arr[0]; -
extensions/ContactForm/main.inc.php
r17491 r17518 11 11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 12 12 13 define('CONTACT_FORM_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 14 define('CONTACT_FORM_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__))); 13 define('CONTACT_FORM_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 14 define('CONTACT_FORM_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__))); 15 define('CONTACT_FORM_PUBLIC', get_absolute_root_url() . make_index_url(array('section' => 'contact')) . '/'); 15 16 16 17 … … 22 23 { 23 24 add_event_handler('get_admin_plugin_menu_links', 'contact_form_admin_menu'); 24 define('CONTACT_FORM_PUBLIC', make_index_url(array('section' => 'contact')) . '/');25 25 } 26 26
Note: See TracChangeset
for help on using the changeset viewer.