Skip to content

Commit 27d79b8

Browse files
committed
fix for image_tag method
1 parent a1af68a commit 27d79b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Models/HessamPostTranslation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function image_tag($size = 'medium', $auto_link = true, $img_class = null
126126
$url = e($this->image_url($size));
127127
$alt = e($this->title);
128128
$img = "<img src='$url' alt='$alt' class='" . e($img_class) . "' >";
129-
return $auto_link ? "<a class='" . e($anchor_class) . "' href='" . e($this->url()) . "'>$img</a>" : $img;
129+
return $auto_link ? "<a class='" . e($anchor_class) . "' href='" . e($this->url( app()->getLocale() )) . "'>$img</a>" : $img;
130130

131131
}
132132

src/Views/hessamcms_admin/layouts/admin_layout.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<small><a href='https://github.com/vhessam/laravel-blogger'>Hessam CMS</a></small>
9393

9494
<small>
95-
Version 9.0.x
95+
Version 9.1.x
9696
</small>
9797
</div>
9898
</div>

0 commit comments

Comments
 (0)