From a45e1f526e5cac6d15e76bb1e9bf8ec16ddec08c Mon Sep 17 00:00:00 2001 From: patdenice Date: Mon, 16 Mar 2009 17:22:46 +0000 Subject: 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 --- admin/include/plugins.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'admin/include/plugins.class.php') 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; -- cgit v1.2.3