diff options
author | patdenice <patdenice@piwigo.org> | 2009-03-16 17:21:24 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-03-16 17:21:24 +0000 |
commit | 7250fc9b27f966821d30702c0cf7058bead05f60 (patch) | |
tree | f669be8d185a8a3a2c1cb53add66862e093b7a7a /admin/include | |
parent | 7f8cbea1ec8a13567fa7541fbcbb096368bb8691 (diff) |
Update version in plugins table during plugin activation.
git-svn-id: http://piwigo.org/svn/trunk@3205 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/plugins.class.php | 4 |
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; |