Skip to content

Commit cb4be99

Browse files
committed
Bug fix for getThumbUrl() method in Mediafile model
1 parent 0bd9212 commit cb4be99

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ Addition module description you can see in my [Personal site](https://pack-devel
3939

4040
Via composer:
4141

42-
```composer require itstructure/yii2-multi-format-uploader ~2.2.0```
42+
```composer require itstructure/yii2-multi-format-uploader ~2.2.1```
4343

4444
or in section **require** of composer.json file set the following:
4545
```
4646
"require": {
47-
"itstructure/yii2-multi-format-uploader": "~2.2.0"
47+
"itstructure/yii2-multi-format-uploader": "~2.2.1"
4848
}
4949
```
5050
and command ```composer install```, if you install yii2 project extensions first,

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### CHANGE LOG:
22

3+
**2.2.1 June 20, 2020:**
4+
- Bug fix for **getThumbUrl()** method in ```Mediafile``` model.
5+
36
**2.2.0 June 15, 2020:**
47
- Change saving local file **url** to DB.
58
- Add **publicBaseUrl** param to Module for full local files url.

src/models/Mediafile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public function getThumbs(): array
448448
public function getThumbUrl(string $alias): string
449449
{
450450
if ($alias === Module::THUMB_ALIAS_ORIGINAL) {
451-
$url = $this->getViewUrl();
451+
return $this->getViewUrl();
452452

453453
} else {
454454
$thumbs = $this->getThumbs();

0 commit comments

Comments
 (0)