Skip to content

Commit 916dd74

Browse files
author
Sebastian Pfahl
committed
Aplit alt and title objects parameter
1 parent 28166c7 commit 916dd74

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/Tmdb/Helper/ImageHelper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ public function getImageConfiguration()
5757
* @param string $size
5858
* @param int|null $width
5959
* @param int|null $height
60+
* @param string $alt
6061
* @param string $title
6162
* @return string
6263
*/
63-
public function getHtml($image, $size = 'original', $width = null, $height = null, $title = '')
64+
public function getHtml($image, $size = 'original', $width = null, $height = null, $alt = '', $title = '')
6465
{
6566
if ($image instanceof Image) {
6667
if (null == $image->getFilePath()) {
@@ -92,7 +93,7 @@ public function getHtml($image, $size = 'original', $width = null, $height = nul
9293
$width,
9394
$height,
9495
$title,
95-
$title
96+
$alt
9697
);
9798
}
9899

0 commit comments

Comments
 (0)