Code errors due to misspelled variable
-
In cubilis_fastbooker_widget.php in function getCubilisLongLang the parameter is $shortLocale but in the code you use $shorLocale (missing t):
private function getCubilisLongLang($shortLocale) { //nl-NL, fr-FR, en-GB, de-DE $longLocale = strtr (get_locale(), array ('_' => '-')); if ($shortLocale !== null && !empty($shortLocale)) { if ($shortLocale == 'nl') { $longLocale = "nl-NL"; } elseif ($shortLocale == 'fr') { $longLocale = "fr-FR"; } elseif (<strong>$shorLocale</strong> == 'en') { $longLocale = "en-GB"; } elseif (<strong>$shorLocale</strong> == 'de') { $longLocale = "de-DE"; } else { $longLocale = "en-GB"; } } return $longLocale; }Could you please correct the code and release a new version.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Code errors due to misspelled variable’ is closed to new replies.