• Resolved Benny

    (@bvl)


    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://ww.wp.xz.cn/plugins/stardekk-cubilis-fastbooker/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor STARDEKK

    (@stardekk)

    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

    (@bvl)

    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.