aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/plugins.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php
index caff5ef26..8972c1df0 100644
--- a/admin/include/plugins.class.php
+++ b/admin/include/plugins.class.php
@@ -109,7 +109,9 @@ INSERT INTO ' . PLUGINS_TABLE . ' (id,version) VALUES ("'
if (empty($errors))
{
$query = '
-UPDATE ' . PLUGINS_TABLE . ' SET state="active" WHERE id="' . $plugin_id . '"';
+UPDATE ' . PLUGINS_TABLE . '
+SET state="active", version="'.$this->fs_plugins[$plugin_id]['version'].'"
+WHERE id="' . $plugin_id . '"';
pwg_query($query);
}
break;