source: trunk/themes/smartpocket/admin/upgrade.inc.php @ 30460

Last change on this file since 30460 was 30460, checked in by plg, 9 years ago

bug 3174 fixed: avoid using load_conf_from_db, use 3rd parameter updateGlobal instead

File size: 608 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $prefixeTable, $conf;
6
7if (!isset($conf['smartpocket']))
8{
9  $config = array(
10    'loop' => true,//true - false
11    'autohide' => 5000,//5000 - 0
12  );
13
14  conf_update_param('smartpocket', $config, true);
15}
16elseif (count(safe_unserialize($conf['smartpocket'])) != 2)
17{
18  $conff = safe_unserialize($conf['smartpocket']);
19  $config = array(
20    'loop' => (!empty($conff['loop'])) ? $conff['loop'] :true,
21    'autohide' => (!empty($conff['autohide'])) ? $conff['autohide'] :5000,
22  );
23  conf_update_param('smartpocket', $config, true);
24}
25?>
Note: See TracBrowser for help on using the repository browser.