Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* @brief 4.0.0 Upgrade Code
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @package IPS Community Suite
|
||||
* @subpackage Gallery
|
||||
* @since 04 Mar 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
@@ -107,12 +107,12 @@ class _Upgrade
|
||||
*/
|
||||
public function step2()
|
||||
{
|
||||
\IPS\Db::i()->insert( 'core_ratings',
|
||||
\IPS\Db::i()->select( "NULL, 'IPS\\gallery\\Image', rate_type_id, rate_member_id, rate_rate, ''", 'gallery_ratings', array( 'rate_type=?', 'image' ), NULL, NULL, array( 'rate_type', 'rate_type_id', 'rate_member_id' ) )
|
||||
\IPS\Db::i()->replace( 'core_ratings',
|
||||
\IPS\Db::i()->select( "NULL, 'IPS\\gallery\\Image', rate_type_id, rate_member_id, rate_rate, ''", 'gallery_ratings', array( 'rate_type=?', 'image' ) )
|
||||
);
|
||||
|
||||
\IPS\Db::i()->insert( 'core_ratings',
|
||||
\IPS\Db::i()->select( "NULL, 'IPS\\gallery\\Album', rate_type_id, rate_member_id, rate_rate, ''", 'gallery_ratings', array( 'rate_type=?', 'album' ), NULL, NULL, array( 'rate_type', 'rate_type_id', 'rate_member_id' ) )
|
||||
\IPS\Db::i()->replace( 'core_ratings',
|
||||
\IPS\Db::i()->select( "NULL, 'IPS\\gallery\\Album', rate_type_id, rate_member_id, rate_rate, ''", 'gallery_ratings', array( 'rate_type=?', 'album' ) )
|
||||
);
|
||||
|
||||
\IPS\Db::i()->dropTable( 'gallery_ratings', TRUE );
|
||||
@@ -182,7 +182,7 @@ class _Upgrade
|
||||
$config = \IPS\File::getClass( 'gallery_Images' );
|
||||
$url = $config->configuration['url'];
|
||||
|
||||
$prefix = $row['image_directory'] . '/';
|
||||
$prefix = $row['image_directory'] ? $row['image_directory'] . '/' : '';
|
||||
$hasSmall = FALSE;
|
||||
|
||||
if( file_exists( $settings['gallery_images_path'] . '/' . $row['image_directory'] . '/' . 'sml_' . $row['image_masked_file_name'] ) )
|
||||
@@ -236,7 +236,7 @@ class _Upgrade
|
||||
|
||||
if( $row['image_metadata'] )
|
||||
{
|
||||
$imageUpdate['image_metadata'] = json_encode( unserialize( $row['image_metadata'] ) );
|
||||
$imageUpdate['image_metadata'] = json_encode( array_map( 'trim', unserialize( $row['image_metadata'] ) ) );
|
||||
}
|
||||
|
||||
/* Simply rebuild the image size values */
|
||||
@@ -278,7 +278,7 @@ class _Upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$imageUpdate['image_metadata'] = json_encode( $notes );
|
||||
$imageUpdate['image_notes'] = json_encode( $notes );
|
||||
}
|
||||
|
||||
\IPS\Db::i()->update( 'gallery_images', $imageUpdate, array( 'image_id=?', $row['image_id'] ) );
|
||||
@@ -449,10 +449,10 @@ class _Upgrade
|
||||
|
||||
if ( count( $toRun ) )
|
||||
{
|
||||
$mr = \IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'gallery', 'extra' => array( '_upgradeStep' => 6 ) ) );
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'gallery', 'extra' => array( '_upgradeStep' => 6 ) ) );
|
||||
|
||||
/* Queries to run manually */
|
||||
return array( 'html' => \IPS\Theme::i()->getTemplate( 'forms' )->queries( $toRun, \IPS\Http\Url::internal( 'controller=upgrade' )->setQueryString( array( 'key' => $_SESSION['uniqueKey'], 'mr_continue' => 1, 'mr' => $mr ) ) ) );
|
||||
return array( 'html' => \IPS\Theme::i()->getTemplate( 'forms' )->queries( $toRun, \IPS\Http\Url::internal( 'controller=upgrade' )->setQueryString( array( 'key' => $_SESSION['uniqueKey'], 'mr_continue' => 1, 'mr' => \IPS\Request::i()->mr ) ) ) );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in new issue
Block a user