Version 4.2.0
This commit is contained in:
1 parent
0dc2aee5ed
commit
96997ddd8e
2074 files changed
+125454
-55780
No files matched your search
@@ -1,13 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 4.0.0 Upgrade Code
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @subpackage Gallery
|
||||
* @since 04 Mar 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
namespace IPS\gallery\setup\upg_60000;
|
||||
@@ -185,7 +184,7 @@ class _Upgrade
|
||||
$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'] ) )
|
||||
if( file_exists( $settings['gallery_images_path'] . '/' . $prefix . 'sml_' . $row['image_masked_file_name'] ) )
|
||||
{
|
||||
$hasSmall = TRUE;
|
||||
}
|
||||
@@ -240,10 +239,10 @@ class _Upgrade
|
||||
}
|
||||
|
||||
/* Simply rebuild the image size values */
|
||||
$large = @getimagesize( str_replace( $prefix, $config->configuration['dir'] . '/' . $row['image_directory'] . '/', $imageUpdate['image_masked_file_name'] ) );
|
||||
$medium = @getimagesize( str_replace( $prefix, $config->configuration['dir'] . '/' . $row['image_directory'] . '/', $imageUpdate['image_medium_file_name'] ) );
|
||||
$small = @getimagesize( str_replace( $prefix, $config->configuration['dir'] . '/' . $row['image_directory'] . '/', $imageUpdate['image_small_file_name'] ) );
|
||||
$thumb = @getimagesize( str_replace( $prefix, $config->configuration['dir'] . '/' . $row['image_directory'] . '/', $imageUpdate['image_thumb_file_name'] ) );
|
||||
$large = @getimagesize( $config->configuration['dir'] . $imageUpdate['image_masked_file_name'] );
|
||||
$medium = @getimagesize( $config->configuration['dir'] . $imageUpdate['image_medium_file_name'] );
|
||||
$small = @getimagesize( $config->configuration['dir'] . $imageUpdate['image_small_file_name'] );
|
||||
$thumb = @getimagesize( $config->configuration['dir'] . $imageUpdate['image_thumb_file_name'] );
|
||||
|
||||
$imageUpdate['image_data'] = json_encode( array(
|
||||
'large' => array( (int) $large[0], (int) $large[1] ),
|
||||
|
||||
Reference in new issue
Block a user