Skip to content

Commit

Permalink
Missing media url decode
Browse files Browse the repository at this point in the history
  • Loading branch information
keshikashviligio authored Nov 10, 2017
1 parent a65e775 commit 95db39a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion widgets/DbText.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace centigen\i18ncontent\widgets;

use centigen\i18ncontent\helpers\Html;
use centigen\i18ncontent\models\WidgetText;
use yii\base\Widget;
use Yii;
Expand Down Expand Up @@ -32,7 +33,7 @@ class DbText extends Widget
*/
public function run()
{
return $this->getModel() ? $this->getModel()->{$this->attribute} : "";
return $this->getModel() ? Html::decodeMediaItemUrls($this->getModel()->{$this->attribute}) : "";
}

public function getTitle()
Expand Down

0 comments on commit 95db39a

Please sign in to comment.