app/maguttiCms/Tools/Tool.class.php
/**
	* return init  the  website language
	* @param  string $defaultLang
	*
	* @return string $lang
	*/
return init  the  website language
@param  string $defaultLang

@return string $lang
return init the website language @param string $defaultLang @return string $lang
public static function comefrom( $defaultLang) {
		$lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
		if (substr($lang, 0, 2) == 'en'){
			$lang='en';
		}
		else if (substr($lang, 0, 2) == 'it'){
			$lang='it';
		}
		else $lang=$defaultLang;
	    return $lang;
	}
public static function comefrom ( $ defaultLang ) { $ lang = $ _SERVER [ 'HTTP_ACCEPT_LANGUAGE' ] ; if ( substr ( $ lang , 0 , 2 ) == 'en' ) { $ lang = 'en' ; } else if ( substr ( $ lang , 0 , 2 ) == 'it' ) { $ lang = 'it' ; } else $ lang = $ defaultLang ; return $ lang ; }
return init  the  website language
 @param  string $defaultLang
return init the website language @param string $defaultLang