fix check of extension available from repos

This commit is contained in:
Uwe Steinmann 2022-04-19 18:11:24 +02:00
parent 5ec682592e
commit 4bfe18a7de

View File

@ -117,15 +117,15 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style {
print "</tr></thead><tbody>\n";
$list = $extmgr->getExtensionListByName($extname);
foreach($list as $re) {
$extmgr->checkExtension($re);
$extmgr->checkExtensionByName($re['name'], $re);
$checkmsgs = $extmgr->getErrorMsgs();
$needsupdate = !isset($extconf[$re['name']]) || SeedDMS_Extension_Mgr::cmpVersion($re['version'], $extconf[$re['name']]['version']) > 0;
echo "<tr";
if(isset($extconf[$re['name']])) {
if($needsupdate)
echo " class=\"warning\"";
echo " class=\"table-warning warning\"";
else
echo " class=\"success\"";
echo " class=\"table-success success\"";
}
echo ">";
echo "<td width=\"32\">".($re['icon-data'] ? '<img width="32" height="32" alt="'.$re['name'].'" title="'.$re['name'].'" src="'.$re['icon-data'].'">' : '')."</td>";