function _removeLanguage($aLanguage, $aLangInfo) { $oDb = new BxDolModuleDb(); if (!($iLangKey = getLangIdByName($aLangInfo['Name']))) { // language doesn't exists, so it is already removed somehow return true; } if (!$oDb->res("DELETE FROM `sys_localization_languages` WHERE ID = {$iLangKey}")) { return false; } $oDb->res("DELETE FROM `sys_localization_strings` WHERE `IDLanguage` = {$iLangKey}"); return true; }