Changeset 28848


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

use new maintain class

Location:
extensions/SmartAlbums
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/admin/cat_list.php

    r28631 r28848  
    55{
    66  $conf['SmartAlbums']['show_list_messages'] = false;
    7   conf_update_param('SmartAlbums', serialize($conf['SmartAlbums']));
     7  conf_update_param('SmartAlbums', $conf['SmartAlbums']);
    88}
    99
  • extensions/SmartAlbums/admin/config.php

    r26442 r28848  
    1919    );
    2020
    21   conf_update_param('SmartAlbums', serialize($conf['SmartAlbums']));
     21  conf_update_param('SmartAlbums', $conf['SmartAlbums']);
    2222  $page['infos'][] = l10n('Information data registered in database');
    2323}
  • extensions/SmartAlbums/include/events.inc.php

    r26442 r28848  
    2525
    2626  $conf['SmartAlbums']['last_update'] = time();
    27   conf_update_param('SmartAlbums', serialize($conf['SmartAlbums']));
     27  conf_update_param('SmartAlbums', $conf['SmartAlbums']);
    2828
    2929  // get categories with smart filters
  • extensions/SmartAlbums/main.inc.php

    r26442 r28848  
    1717define('CATEGORY_FILTERS_TABLE', $prefixeTable . 'category_filters');
    1818define('SMART_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . SMART_ID);
    19 define('SMART_VERSION', 'auto');
    2019// define('SMART_DEBUG',   true);
    2120
     
    4443  global $conf;
    4544
    46   include_once(SMART_PATH . 'maintain.inc.php');
    47   $maintain = new SmartAlbums_maintain(SMART_ID);
    48   $maintain->autoUpdate(SMART_VERSION, 'install');
    49 
    5045  if (defined('IN_ADMIN'))
    5146  {
    5247    load_language('plugin.lang', SMART_PATH);
    5348  }
    54   $conf['SmartAlbums'] = unserialize($conf['SmartAlbums']);
     49  $conf['SmartAlbums'] = safe_unserialize($conf['SmartAlbums']);
    5550
    5651  if (script_basename() == 'index' and $conf['SmartAlbums']['smart_is_forbidden'])
Note: See TracChangeset for help on using the changeset viewer.