Changeset 28851


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

use new maintain class

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

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/admin/config.php

    r26140 r28851  
    99    ); 
    1010 
    11   conf_update_param('Subscribe_to_Comments', serialize($conf['Subscribe_to_Comments'])); 
     11  conf_update_param('Subscribe_to_Comments', $conf['Subscribe_to_Comments']); 
    1212  $page['infos'][] = l10n('Information data registered in database'); 
    1313} 
  • extensions/Subscribe_to_comments/main.inc.php

    r26144 r28851  
    1717define('SUBSCRIBE_TO_TABLE',   $prefixeTable . 'subscribe_to_comments'); 
    1818define('SUBSCRIBE_TO_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . SUBSCRIBE_TO_ID); 
    19 define('SUBSCRIBE_TO_VERSION', 'auto'); 
    2019 
    2120 
     
    3332  } 
    3433 
    35   include_once(SUBSCRIBE_TO_PATH . 'maintain.inc.php'); 
    36   $maintain = new Subscribe_to_Comments_maintain(SUBSCRIBE_TO_ID); 
    37   $maintain->autoUpdate(SUBSCRIBE_TO_VERSION, 'install'); 
    38  
    39  
    4034  load_language('plugin.lang', SUBSCRIBE_TO_PATH); 
    41   $conf['Subscribe_to_Comments'] = unserialize($conf['Subscribe_to_Comments']); 
    42  
     35  $conf['Subscribe_to_Comments'] = safe_unserialize($conf['Subscribe_to_Comments']); 
    4336 
    4437  include_once(SUBSCRIBE_TO_PATH.'include/functions.inc.php'); 
Note: See TracChangeset for help on using the changeset viewer.