Changeset 28841 for extensions/GuestBook/main.inc.php
- Timestamp:
- Jun 29, 2014, 4:21:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/main.inc.php
r26065 r28841 14 14 global $prefixeTable; 15 15 16 17 16 define('GUESTBOOK_ID', basename(dirname(__FILE__))); 18 17 define('GUESTBOOK_PATH' , PHPWG_PLUGINS_PATH . GUESTBOOK_ID . '/'); … … 20 19 define('GUESTBOOK_ADMIN', get_root_url().'admin.php?page=plugin-' . GUESTBOOK_ID); 21 20 define('GUESTBOOK_URL', get_absolute_root_url() . make_index_url(array('section' => 'guestbook'))); 22 define('GUESTBOOK_VERSION', 'auto');23 24 21 25 22 include_once(GUESTBOOK_PATH . 'include/events.inc.php'); 23 26 24 27 25 add_event_handler('init', 'guestbook_init'); … … 41 39 { 42 40 global $conf; 43 44 include_once(GUESTBOOK_PATH . 'maintain.inc.php'); 45 $maintain = new GuestBook_maintain(GUESTBOOK_ID); 46 $maintain->autoUpdate(GUESTBOOK_VERSION, 'install'); 41 $conf['guestbook'] = safe_unserialize($conf['guestbook']); 47 42 48 43 load_language('plugin.lang', GUESTBOOK_PATH); 49 50 $conf['guestbook'] = unserialize($conf['guestbook']);51 44 }
Note: See TracChangeset
for help on using the changeset viewer.