Changeset 28840


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

use new maintain class

Location:
extensions/EasyCaptcha
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/EasyCaptcha/admin.php

    r28345 r28840  
    5353    ); 
    5454 
    55   conf_update_param('EasyCaptcha', serialize($conf['EasyCaptcha'])); 
     55  conf_update_param('EasyCaptcha', $conf['EasyCaptcha']); 
    5656  $page['infos'][] = l10n('Information data registered in database'); 
    5757} 
  • 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.