Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -57,8 +57,7 @@ class _Upgrade
|
||||
|
||||
$settings['filestorage__core_Imageproxycache'] = $settings['filestorage__core_Attachment'];
|
||||
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => json_encode( $settings ) ), array( 'conf_key=?', 'upload_settings' ) );
|
||||
unset( \IPS\Data\Store::i()->settings );
|
||||
\IPS\Settings::i()->changeValues( array( 'upload_settings' => json_encode( $settings ) ) );
|
||||
|
||||
/* That's all ... easy peasy */
|
||||
return TRUE;
|
||||
@@ -96,24 +95,21 @@ class _Upgrade
|
||||
|
||||
if ( mb_strpos( \IPS\Settings::i()->ipseo_ga, 'i,s,o,g,r,a,m' ) !== FALSE )
|
||||
{
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => 'ga' ), array( 'conf_key=?', 'ipbseo_ga_provider' ) );
|
||||
\IPS\Settings::i()->changeValues( array( 'ipbseo_ga_provider' => 'ga' ) );
|
||||
}
|
||||
else if ( mb_strpos( \IPS\Settings::i()->ipseo_ga, 'piwik.js' ) !== FALSE )
|
||||
{
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => 'piwik' ), array( 'conf_key=?', 'ipbseo_ga_provider' ) );
|
||||
\IPS\Settings::i()->changeValues( array( 'ipbseo_ga_provider' => 'piwik' ) );
|
||||
}
|
||||
else if ( \IPS\Settings::i()->ipseo_ga )
|
||||
{
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => 'custom' ), array( 'conf_key=?', 'ipbseo_ga_provider' ) );
|
||||
\IPS\Settings::i()->changeValues( array( 'ipbseo_ga_provider' => 'custom' ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => 'none' ), array( 'conf_key=?', 'ipbseo_ga_provider' ) );
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => '0' ), array( 'conf_key=?', 'ipbseo_ga_enabled' ) );
|
||||
\IPS\Settings::i()->changeValues( array( 'ipbseo_ga_provider' => 'none', 'ipbseo_ga_enabled' => '0' ) );
|
||||
}
|
||||
|
||||
unset( \IPS\Data\Store::i()->settings );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -158,8 +154,7 @@ class _Upgrade
|
||||
{
|
||||
if ( \IPS\Settings::i()->mail_method == 'mail' )
|
||||
{
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => 'php' ), array( 'conf_key=?', 'mail_method' ) );
|
||||
unset( \IPS\Data\Store::i()->settings );
|
||||
\IPS\Settings::i()->changeValues( array( 'mail_method' => 'php' ) );
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user