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

use new maintain class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.