1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Issue #2531 - Theme/Plugin upgrade modal.

This commit is contained in:
Cameron
2017-04-16 09:22:15 -07:00
parent 9e8800cead
commit 57e8b8f06b
3 changed files with 11 additions and 2 deletions

View File

@@ -1095,7 +1095,16 @@ class plugin_online_ui extends e_admin_ui
$this -> pluginCheck(true); // rescan the plugin directory
$text = e107::getPlugin()->install($pluginFolder);
$mes->addInfo($text);
$upgradable = e107::getPlug()->getUpgradableList();
if(!empty($upgradable[$pluginFolder]))
{
$mes->addSuccess("<a target='_top' href='".e_ADMIN."plugin.php?mode=installed&action=upgrade&id=".$pluginFolder."' class='btn btn-primary'>".LAN_UPDATE."</a>");
}
echo $mes->render('default', 'success');
}
else