Ignore:
Timestamp:
Jun 13, 2014, 9:22:20 PM (10 years ago)
Author:
mistic100
Message:

use new update pattern

Location:
extensions/AdminTools
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdminTools/admin.php

    r26061 r28692  
    99    'public_quick_edit' => isset($_POST['public_quick_edit']),
    1010    );
    11      
    12   conf_update_param('AdminTools', serialize($conf['AdminTools']));
     11
     12  conf_update_param('AdminTools', $conf['AdminTools']);
    1313  $page['infos'][] = l10n('Information data registered in database');
    1414}
  • extensions/AdminTools/include/MultiView.class.php

    r25979 r28692  
    246246  {
    247247    global $conf;
    248     conf_update_param('multiview_invalidate_cache', true);
    249     $conf['multiview_invalidate_cache'] = true;
     248    conf_update_param('multiview_invalidate_cache', true, true);
    250249  }
    251250
  • extensions/AdminTools/main.inc.php

    r26061 r28692  
    1111defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
    1212
    13 
    14 // +-----------------------------------------------------------------------+
    15 // | Plugin constants                                               |
    16 // +-----------------------------------------------------------------------+
    1713define('ADMINTOOLS_ID',       basename(dirname(__FILE__)));
    1814define('ADMINTOOLS_PATH' ,    PHPWG_PLUGINS_PATH . ADMINTOOLS_ID . '/');
    1915define('ADMINTOOLS_ADMIN',    get_root_url() . 'admin.php?page=plugin-' . ADMINTOOLS_ID);
    20 define('ADMINTOOLS_VERSION',  'auto');
    2116
    22 
    23 // +-----------------------------------------------------------------------+
    24 // | Event handlers                                                    |
    25 // +-----------------------------------------------------------------------+
    2617include_once(ADMINTOOLS_PATH . 'include/events.inc.php');
    2718include_once(ADMINTOOLS_PATH . 'include/MultiView.class.php');
     19
    2820
    2921global $MultiView;
     
    5143
    5244
    53 // +-----------------------------------------------------------------------+
    54 // | Plugin initialization                                                 |
    55 // +-----------------------------------------------------------------------+
    5645function admintools_init()
    5746{
    5847  global $conf;
    59 
    60   include_once(ADMINTOOLS_PATH . 'maintain.inc.php');
    61   $maintain = new AdminTools_maintain(ADMINTOOLS_ID);
    62   $maintain->autoUpdate(ADMINTOOLS_VERSION, 'install');
     48  $conf['AdminTools'] = safe_unserialize($conf['AdminTools']);
    6349
    6450  load_language('plugin.lang', ADMINTOOLS_PATH);
    65 
    66   $conf['AdminTools'] = unserialize($conf['AdminTools']);
    6751}
    6852
Note: See TracChangeset for help on using the changeset viewer.