terminal42 / contao-pageimage

MIT License
12 stars 14 forks source link

findOne vs getOne in replaceTags #18

Closed fritzmg closed 9 years ago

fritzmg commented 9 years ago

In the PageImage.php at line 42 (https://github.com/terminal42/contao-pageimage/blob/develop/PageImage.php#L42) there is a static call to the method "findOne". However, the Class PageImage does not have a function called "findOne", it does have a function called "getOne" though.

I am guessing this is a small error? It seems to break the insert tags: https://community.contao.org/de/showthread.php?53896-pageimage-Bild-im-Meta-Tag&p=347639&viewfull=1#post347639 (haven't tested myself).

aschempp commented 9 years ago

Thanks for the bug report, I've fixed it and released a new version in the extension repository.