Skip to content
Snippets Groups Projects
Commit c06e7483 authored by Satish's avatar Satish
Browse files

install button is showing after installation of language pack in extension store

parent dde09ceb
No related branches found
No related tags found
No related merge requests found
......@@ -136,9 +136,9 @@ class Settings_ExtensionStore_Extension_Model extends Vtiger_Base_Model {
}
public static function getLanguageInstance($lang) {
$sql = 'SELECT id,name,prefix FROM vtiger_language WHERE name = ?';
$sql = 'SELECT id,name,prefix FROM vtiger_language WHERE name = ? OR prefix = ?';
$db = PearDatabase::getInstance();
$result = $db->pquery($sql, array($lang));
$result = $db->pquery($sql, array($lang, $lang));
if ($db->num_rows($result) > 0) {
$instance = new self();
$row = $db->query_result_rowdata($result, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment