Skip to content

Commit

Permalink
FIX: Images Name if no Legends
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Apr 10, 2024
1 parent 5e1397b commit cf24157
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ parameters:
# For Building Splash Module
mod-src: '/modules/splashsync'
mod-target: 'splashsync/'
mod-file: "splashsync.2.8.7"
mod-file: "splashsync.2.8.8"

# For Building Splash Manifest
yml-enable: false
Expand Down
2 changes: 1 addition & 1 deletion modules/splashsync/splashsync.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function __construct()
// Init Module Main Information Fields
$this->name = 'splashsync';
$this->tab = 'administration';
$this->version = '2.8.7';
$this->version = '2.8.8';
$this->author = 'SplashSync';
$this->need_instance = 0;
$this->ps_versions_compliancy = array('min' => '1.7', 'max' => '8.99.99');
Expand Down
2 changes: 1 addition & 1 deletion modules/splashsync/src/Objects/Product/ImagesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ protected function buildInfo($imageId): ArrayObject
//====================================================================//
// Encode Image in Splash Format
$splashImage = self::images()->encode(
$defaultLegend,
$defaultLegend ?: $filename,
$objectImage->id.".".$objectImage->image_format,
_PS_PROD_IMG_DIR_.$objectImage->getImgFolder(),
$publicUrl->getImageLink($imageName, (string) $imageId)
Expand Down

0 comments on commit cf24157

Please sign in to comment.