Changeset 28883 for extensions/GuestBook/main.inc.php
- Timestamp:
- Jul 1, 2014, 11:23:45 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/main.inc.php
r28841 r28883 12 12 13 13 // TODO akismet 14 global $ prefixeTable;14 global $conf, $prefixeTable; 15 15 16 16 define('GUESTBOOK_ID', basename(dirname(__FILE__))); … … 19 19 define('GUESTBOOK_ADMIN', get_root_url().'admin.php?page=plugin-' . GUESTBOOK_ID); 20 20 define('GUESTBOOK_URL', get_absolute_root_url() . make_index_url(array('section' => 'guestbook'))); 21 22 $conf['guestbook'] = safe_unserialize($conf['guestbook']); 21 23 22 24 include_once(GUESTBOOK_PATH . 'include/events.inc.php'); … … 29 31 add_event_handler('get_admin_plugin_menu_links', 'gb_admin_menu'); 30 32 } 33 else 34 { 35 add_event_handler('loc_end_section_init', 'gb_section_init'); 36 add_event_handler('loc_end_index', 'gb_index'); 37 } 31 38 32 add_event_handler('blockmanager_apply', 'gb_menubar_apply', EVENT_HANDLER_PRIORITY_NEUTRAL+10); 33 34 add_event_handler('loc_end_section_init', 'gb_section_init');35 add_event_handler('loc_end_index', 'gb_index'); 39 if ($conf['guestbook']['menu_link']) 40 { 41 add_event_handler('blockmanager_apply', 'gb_menubar_apply', EVENT_HANDLER_PRIORITY_NEUTRAL+10); 42 } 36 43 37 44 38 45 function guestbook_init() 39 46 { 40 global $conf;41 $conf['guestbook'] = safe_unserialize($conf['guestbook']);42 43 47 load_language('plugin.lang', GUESTBOOK_PATH); 44 48 }
Note: See TracChangeset
for help on using the changeset viewer.