Ignore:
Timestamp:
Jun 29, 2014, 4:21:25 PM (10 years ago)
Author:
mistic100
Message:

use new maintain class

File:
1 edited

Legend:

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

    r28592 r28840  
    2020define('EASYCAPTCHA_PATH' ,   PHPWG_PLUGINS_PATH . EASYCAPTCHA_ID . '/');
    2121define('EASYCAPTCHA_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . EASYCAPTCHA_ID);
    22 define('EASYCAPTCHA_VERSION', 'auto');
    2322
    2423
     
    3938function easycaptcha_init()
    4039{
    41   global $conf, $pwg_loaded_plugins;
    42 
    43   include_once(EASYCAPTCHA_PATH . 'maintain.inc.php');
    44   $maintain = new EasyCaptcha_maintain(EASYCAPTCHA_ID);
    45   $maintain->autoUpdate(EASYCAPTCHA_VERSION, 'install');
     40  global $conf;
     41  $conf['EasyCaptcha'] = safe_unserialize($conf['EasyCaptcha']);
    4642
    4743  load_language('plugin.lang', EASYCAPTCHA_PATH);
    48   $conf['EasyCaptcha'] = unserialize($conf['EasyCaptcha']);
    4944}
    5045
Note: See TracChangeset for help on using the changeset viewer.