Title: Code errors due to misspelled variable
Last modified: August 31, 2016

---

# Code errors due to misspelled variable

 *  Resolved [Benny](https://wordpress.org/support/users/bvl/)
 * (@bvl)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/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.
 * [https://wordpress.org/plugins/stardekk-cubilis-fastbooker/](https://wordpress.org/plugins/stardekk-cubilis-fastbooker/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [STARDEKK](https://wordpress.org/support/users/stardekk/)
 * (@stardekk)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/code-errors-due-to-misspelled-variable/#post-7165247)
 * Thanks Benny for noticing the minor bugs.
    We will update the code asap (I think
   at the beginning of next week – 21 March 2016).
 * Thanks for your patience and support.
 *  Thread Starter [Benny](https://wordpress.org/support/users/bvl/)
 * (@bvl)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/code-errors-due-to-misspelled-variable/#post-7165308)
 * I confirm that this bug was fixed in v1.0.6

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code errors due to misspelled variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stardekk-cubilis-fastbooker.svg)
 * [Cubilis Fastbooker - Wordpress plugin](https://wordpress.org/plugins/stardekk-cubilis-fastbooker/)
 * [Support Threads](https://wordpress.org/support/plugin/stardekk-cubilis-fastbooker/)
 * [Active Topics](https://wordpress.org/support/plugin/stardekk-cubilis-fastbooker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stardekk-cubilis-fastbooker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stardekk-cubilis-fastbooker/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Benny](https://wordpress.org/support/users/bvl/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/code-errors-due-to-misspelled-variable/#post-7165308)
 * Status: resolved