Skip to content

Commit 76f5d1f

Browse files
1.2.7
1 parent b69d704 commit 76f5d1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/color"
3-
,"version": "1.2.6"
3+
,"version": "1.2.7"
44
,"description": "A product image color categorization module for Magento 2"
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro/c/extensions/color"
@@ -15,7 +15,7 @@
1515
"google/cloud-vision": "<1.3",
1616
"google/common-protos": "<4",
1717
"google/longrunning": "<0.2",
18-
"mage2pro/core": ">=9.9.8"
18+
"mage2pro/core": ">=11.1.5"
1919
}
2020
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Color\\": ""}}
2121
,"keywords": [

view/frontend/templates/index.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
use Dfe\Color\Image as I;
33
$folder = 'mage2pro';
4-
$dir = df_media_path_absolute($folder);
4+
$dir = df_media_path_abs($folder);
55
echo df_tag('div', 'dfe-color', implode(df_map(array_slice(scandir($dir), 2), function(string $c) use($folder):string {
66
$url = df_media_path2url("$folder/$c"); /** @var string $url */
7-
$i = new I(df_media_path_absolute("$folder/$c"));
7+
$i = new I(df_media_path_abs("$folder/$c"));
88
return df_tag('div', [], [
99
df_tag('a', ['title' => $c, 'url' => $url], df_tag('img', ['src' => $url]))
1010
,df_tag('ol', [], implode(df_map_k($i->labels(), function(string $l, float $v):string {return df_tag('li', [], [

0 commit comments

Comments
 (0)