// Routes for dispatcher (part 4) + some fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7830 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-08-01 13:28:02 +00:00
parent 6eebc96bd0
commit ab5fc723b4
21 changed files with 298 additions and 264 deletions
+11
View File
@@ -662,4 +662,15 @@ class LanguageCore extends ObjectModel
self::$countActiveLanguages = Db::getInstance()->getValue('SELECT COUNT(*) FROM `'._DB_PREFIX_.'lang` WHERE `active` = 1');
return self::$countActiveLanguages;
}
/**
* Check if more on than one language is activated
*
* @since 1.5.0
* @return bool
*/
public static function isMultiLanguageActivated()
{
return (Language::countActiveLanguages() > 1);
}
}