Changeset 28854


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

use new maintain class

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

Legend:

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

    r25678 r28854  
    99    );
    1010
    11   conf_update_param('user_collections', serialize($conf['user_collections']));
     11  conf_update_param('user_collections', $conf['user_collections']);
    1212}
    1313
  • extensions/UserCollections/main.inc.php

    r26055 r28854  
    2020define('USER_COLLEC_ADMIN',       get_root_url() . 'admin.php?page=plugin-' . USER_COLLEC_ID);
    2121define('USER_COLLEC_PUBLIC',      get_absolute_root_url() . make_index_url(array('section' => 'collections')) . '/');
    22 define('USER_COLLEC_VERSION',    'auto');
    2322
    2423add_event_handler('init', 'user_collections_init');
     
    3029function user_collections_init()
    3130{
    32   include_once(USER_COLLEC_PATH . 'maintain.inc.php');
    33   $maintain = new UserCollections_maintain(USER_COLLEC_ID);
    34   $maintain->autoUpdate(USER_COLLEC_VERSION, 'install');
    35  
    3631  if (mobile_theme())
    3732  {
     
    4237
    4338  global $conf;
    44   $conf['user_collections'] = unserialize($conf['user_collections']);
     39  $conf['user_collections'] = safe_unserialize($conf['user_collections']);
    4540 
    4641  require_once(USER_COLLEC_PATH . 'include/ws_functions.inc.php');
Note: See TracChangeset for help on using the changeset viewer.