impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
501 stars 175 forks source link

bug in ipFormatDateTime() #781

Closed arsiesis closed 8 years ago

arsiesis commented 8 years ago

When i use ipFormatDateTime()

https://www.impresspages.org/docs/ipformatdatetime

if i give a string for $languageCode

<?php echo esc(ipFormatDateTime(strtotime($order['createdAt']), 'PayPal','fr_FR')) ?>

i have a error because $code does'nt exist

in file : ImpressPages/Ip/Internal/FormatHelper.php >>> 227

i have add this :

`` $code = $languageCode;

for debug... and now all work fine.

bye

maskas commented 8 years ago

Thanks. Will include the fix.