diff options
author | patdenice <patdenice@piwigo.org> | 2009-03-16 17:22:46 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2009-03-16 17:22:46 +0000 |
commit | a45e1f526e5cac6d15e76bb1e9bf8ec16ddec08c (patch) | |
tree | 991955695b0e634d9b46e61dd0ab34b8c076d9e2 /admin | |
parent | 796cbc835020db800660443a31d617855d3f7640 (diff) |
merge r3205 from trunk to branch 2.0.
Update version in plugins table during plugin activation.
git-svn-id: http://piwigo.org/svn/branches/2.0@3206 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-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; |