Ignore:
Timestamp:
06/29/14 16:21:59 (5 years ago)
Author:
mistic100
Message:

use new maintain class

File:
1 edited

Legend:

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

    r26065 r28841  
    1414global $prefixeTable; 
    1515 
    16  
    1716define('GUESTBOOK_ID',      basename(dirname(__FILE__))); 
    1817define('GUESTBOOK_PATH' ,   PHPWG_PLUGINS_PATH . GUESTBOOK_ID . '/'); 
     
    2019define('GUESTBOOK_ADMIN',   get_root_url().'admin.php?page=plugin-' . GUESTBOOK_ID); 
    2120define('GUESTBOOK_URL',     get_absolute_root_url() . make_index_url(array('section' => 'guestbook'))); 
    22 define('GUESTBOOK_VERSION', 'auto'); 
    23  
    2421 
    2522include_once(GUESTBOOK_PATH . 'include/events.inc.php'); 
     23 
    2624 
    2725add_event_handler('init', 'guestbook_init'); 
     
    4139{ 
    4240  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']); 
    4742   
    4843  load_language('plugin.lang', GUESTBOOK_PATH); 
    49    
    50   $conf['guestbook'] = unserialize($conf['guestbook']); 
    5144} 
Note: See TracChangeset for help on using the changeset viewer.