Changeset 28692 for extensions/AdminTools
- Timestamp:
- Jun 13, 2014, 9:22:20 PM (10 years ago)
- Location:
- extensions/AdminTools
- Files:
-
- 1 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/admin.php
r26061 r28692 9 9 'public_quick_edit' => isset($_POST['public_quick_edit']), 10 10 ); 11 12 conf_update_param('AdminTools', serialize($conf['AdminTools']));11 12 conf_update_param('AdminTools', $conf['AdminTools']); 13 13 $page['infos'][] = l10n('Information data registered in database'); 14 14 } -
extensions/AdminTools/include/MultiView.class.php
r25979 r28692 246 246 { 247 247 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); 250 249 } 251 250 -
extensions/AdminTools/main.inc.php
r26061 r28692 11 11 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 12 12 13 14 // +-----------------------------------------------------------------------+15 // | Plugin constants |16 // +-----------------------------------------------------------------------+17 13 define('ADMINTOOLS_ID', basename(dirname(__FILE__))); 18 14 define('ADMINTOOLS_PATH' , PHPWG_PLUGINS_PATH . ADMINTOOLS_ID . '/'); 19 15 define('ADMINTOOLS_ADMIN', get_root_url() . 'admin.php?page=plugin-' . ADMINTOOLS_ID); 20 define('ADMINTOOLS_VERSION', 'auto');21 16 22 23 // +-----------------------------------------------------------------------+24 // | Event handlers |25 // +-----------------------------------------------------------------------+26 17 include_once(ADMINTOOLS_PATH . 'include/events.inc.php'); 27 18 include_once(ADMINTOOLS_PATH . 'include/MultiView.class.php'); 19 28 20 29 21 global $MultiView; … … 51 43 52 44 53 // +-----------------------------------------------------------------------+54 // | Plugin initialization |55 // +-----------------------------------------------------------------------+56 45 function admintools_init() 57 46 { 58 47 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']); 63 49 64 50 load_language('plugin.lang', ADMINTOOLS_PATH); 65 66 $conf['AdminTools'] = unserialize($conf['AdminTools']);67 51 } 68 52
Note: See TracChangeset
for help on using the changeset viewer.