mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
fix check of extension available from repos
This commit is contained in:
parent
5ec682592e
commit
4bfe18a7de
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user