mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Merge pull request #1270 from Nexus633/patch-1
Change SELECT id to tranceID
This commit is contained in:
commit
fc16a75188
@ -108,7 +108,7 @@ $modullanguage = [
|
||||
];
|
||||
|
||||
if($modulesid != 0){
|
||||
$query6 = $sql->prepare("SELECT `id` FROM `translations` WHERE `type`='mo' AND `lang`=? And `transID`=? LIMIT 1");
|
||||
$query6 = $sql->prepare("SELECT `tranceID` FROM `translations` WHERE `type`='mo' AND `lang`=? And `transID`=? LIMIT 1");
|
||||
$query7 = $sql->prepare("INSERT INTO `translations` (`type`, `lang`, `transID`, `resellerID`, `text`) VALUES (?,?,?,?,?) ON DUPLICATE KEY UPDATE `text`=VALUES(`text`)");
|
||||
foreach ($modullanguage as $lang){
|
||||
$query6->execute(array($lang["lang"], $modulesid));
|
||||
@ -377,4 +377,4 @@ if ($ui->st('action', 'post') and !token(true)) {
|
||||
configureDateTables('-1', '1, "asc"', 'ajax.php?w=datatable&d=custommodule');
|
||||
|
||||
$template_file = 'admin_modules_list.tpl';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user