fix modules id vs name

master
Jean-Christian Paul Denis 2021-11-01 22:28:43 +01:00
parent 60960c2f01
commit ba70d79862
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 3 additions and 3 deletions

View File

@ -204,12 +204,12 @@ if (empty($module) && $type != '') {
'<tr class="line"><td class="nowrap minimal"><a href="%s" title="%s">%s</a></td>',
$core->adminurl->get('translater', ['type' => $module->type, 'module' => $module->id]),
html::escapeHTML(sprintf(__('Translate module %s'), __($module->name))),
html::escapeHTML(__($module->id))
html::escapeHTML($module->id)
);
} else {
$res .= sprintf(
'<tr class="line offline"><td class="nowrap">%s</td>',
html::escapeHTML(__($module->id))
html::escapeHTML($module->id)
);
}
$codes = $module->getLangs();
@ -229,7 +229,7 @@ if (empty($module) && $type != '') {
$res .= sprintf(
'<td class="nowrap maximal">%s</td><td class="nowrap minimal">%s</td><td class="nowrap minimal count">%s</td></tr>',
implode(', ', $codes),
html::escapeHTML($module->name),
html::escapeHTML(__($module->name)),
$module->version
);
}