mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 10:34:23 +02:00
Plugin/Theme "new version" alerts on admin dashboard. Overwriting enabled during download - existing plugins/theme now moved out of the way and backed up.Theme-dir scanning improved and optimized for speed.
This commit is contained in:
@@ -162,6 +162,7 @@ class pluginmanager_form extends e_form
|
||||
if ($this->plug['plugin_version'] != $this->plug_vars['@attributes']['version'] && $this->plug['plugin_installflag'])
|
||||
{
|
||||
// $text .= "<br /><input type='button' class='btn' onclick=\"location.href='".e_SELF."?upgrade.{$this->plug['plugin_id']}'\" title='".EPL_UPGRADE." to v".$this->plug_vars['@attributes']['version']."' value='".EPL_UPGRADE."' />";
|
||||
e107::getMessage()->addInfo("<b>".$tp->toHtml($this->plug['plugin_name'],false,'TITLE')."</b> is ready to be upgraded. (see below)"); // TODO LAN
|
||||
$text .= "<a class='btn btn-default' href='".e_SELF."?upgrade.{$this->plug['plugin_id']}' title=\"".EPL_UPGRADE." v".$this->plug_vars['@attributes']['version']."\" >".ADMIN_UPGRADEPLUGIN_ICON."</a>";
|
||||
}
|
||||
|
||||
@@ -1471,7 +1472,7 @@ class pluginManager{
|
||||
$pgf->plug = $plug;
|
||||
$text .= $pgf->renderTableRow($this->fields, $this->fieldpref, $data, 'plugin_id');
|
||||
|
||||
|
||||
/*
|
||||
$folder = $plug['plugin_path'];
|
||||
if(!empty($versions[$folder]['version']) && version_compare( $plug['plugin_version'], $versions[$folder]['version'], '<'))
|
||||
{
|
||||
@@ -1480,7 +1481,7 @@ class pluginManager{
|
||||
$lan = "A newer version of [x] is available for download.";
|
||||
e107::getMessage()->addInfo($tp->lanVars($lan,$link));
|
||||
e107::getMessage()->addDebug("Local version: ".$plug['plugin_version']." Remote version: ".$versions[$folder]['version']);
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user