From 7250fc9b27f966821d30702c0cf7058bead05f60 Mon Sep 17 00:00:00 2001 From: patdenice Date: Mon, 16 Mar 2009 17:21:24 +0000 Subject: Update version in plugins table during plugin activation. git-svn-id: http://piwigo.org/svn/trunk@3205 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/plugins.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'admin/include') 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