Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -304,11 +304,11 @@ class _Upgrade
|
||||
{
|
||||
$url = \IPS\File::create( 'gallery_Images', $fileName, file_get_contents( $settings['gallery_watermark_path'] ), NULL, TRUE, NULL, FALSE );
|
||||
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $url ), array( 'conf_key=?', 'gallery_watermark_path' ) );
|
||||
\IPS\Settings::i()->changeValues( array( 'gallery_watermark_path' => $url ) );
|
||||
}
|
||||
catch( \Exception $e )
|
||||
{
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => '' ), array( 'conf_key=?', 'gallery_watermark_path' ) );
|
||||
\IPS\Settings::i()->changeValues( array( 'gallery_watermark_path' => '' ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -316,7 +316,8 @@ class _Upgrade
|
||||
|
||||
\IPS\Db::i()->delete( 'core_sys_conf_settings', "conf_key IN ( 'gallery_watermark_opacity', 'gallery_images_url', 'gallery_images_path' )" );
|
||||
|
||||
unset( \IPS\Data\Store::i()->settings, $_SESSION['_step3Count'] );
|
||||
unset( $_SESSION['_step3Count'] );
|
||||
\IPS\Settings::i()->clearCache();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user