Changeset 30457
- Timestamp:
- Nov 12, 2014, 1:48:50 PM (9 years ago)
- Location:
- extensions/stripped
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/admin/upgrade.inc.php
r20443 r30457 50 50 'maxThumb' => 15, 51 51 ); 52 53 $query = "54 INSERT INTO " . CONFIG_TABLE . " (param,value,comment)55 VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');";56 52 57 pwg_query($query); 58 53 conf_update_param('stripped', $config, true); 59 54 } else { 60 55 … … 83 78 $config['hdSize']='xxlarge'; 84 79 85 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config)));80 conf_update_param('stripped', $config, true); 86 81 87 82 } else { … … 99 94 $config['forceLightboxOn']=false; 100 95 101 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config)));96 conf_update_param('stripped', $config, true); 102 97 103 98 } else { … … 112 107 $config['HDlightbox']=true; 113 108 $config['forceLightboxOn']=false; 114 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config)));109 conf_update_param('stripped', $config, true); 115 110 } 116 111 … … 120 115 $config['HDlightbox']=true; 121 116 $config['forceLightboxOn']=false; 122 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config)));117 conf_update_param('stripped', $config, true); 123 118 } 124 119 -
extensions/stripped/themeconf.inc.php
r29391 r30457 15 15 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 16 16 17 $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped ); 17 $conf['stripped'] = safe_unserialize($conf['stripped']); 18 19 $stripped = array_merge($conf['stripped'], (array)$stripped ); 18 20 19 21 // Need upgrade from v1.x? 20 22 if (!isset($stripped['themeStyle'])) { 21 23 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 22 $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped );24 $stripped = array_merge($conf['stripped'], (array)$stripped ); 23 25 } 24 26 … … 26 28 if (!isset($stripped['paramVersion'])) { 27 29 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 28 $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped );30 $stripped = array_merge($conf['stripped'], (array)$stripped ); 29 31 } 30 32 … … 32 34 if ((isset($stripped['paramVersion'])) && ($stripped['paramVersion'] != '2.3')) { 33 35 include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); 34 $stripped = array_merge( unserialize( $conf['stripped'] ), (array)$stripped );36 $stripped = array_merge($conf['stripped'], (array)$stripped ); 35 37 } 36 38
Note: See TracChangeset
for help on using the changeset viewer.