Skip to content

Commit 7d236c8

Browse files
authored
Merge pull request #16 from DoubleYo/2.0
Add size parameter to Twig extention function getUrl()
2 parents 215d945 + c1ceaec commit 7d236c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Twig/TmdbExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function getHtml($image, $size = 'original', $width = null, $height = nul
3636
return $this->getHelper()->getHtml($image, $size, $width, $height);
3737
}
3838

39-
public function getUrl($image)
39+
public function getUrl($image, $size = 'original')
4040
{
41-
return $this->getHelper()->getUrl($image);
41+
return $this->getHelper()->getUrl($image, $size);
4242
}
4343

4444
public function getName()

0 commit comments

Comments
 (0)