// Allow to force routes #PSCFV-2592

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15711 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-05-28 13:41:00 +00:00
parent 2c3b45ff44
commit cc179c3a49
4 changed files with 46 additions and 12 deletions
+1 -1
View File
@@ -736,7 +736,7 @@ class LanguageCore extends ObjectModel
{
if (!self::$countActiveLanguages)
self::$countActiveLanguages = Db::getInstance()->getValue('
SELECT COUNT(*) FROM `'._DB_PREFIX_.'lang` l
SELECT COUNT(DISTINCT l.id_lang) FROM `'._DB_PREFIX_.'lang` l
'.Shop::addSqlAssociation('lang', 'l').'
WHERE l.`active` = 1
');