From 64b7e77a5ac3e9797d924b1671288056ca6aac90 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 25 Sep 2014 08:46:16 +0000 Subject: flaw in r29773 git-svn-id: http://piwigo.org/svn/trunk@29778 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/plugins.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'admin/include') diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php index 8e9c682a7..88971b000 100644 --- a/admin/include/plugins.class.php +++ b/admin/include/plugins.class.php @@ -123,7 +123,10 @@ class plugins $crt_db_plugin = $this->db_plugins_by_id[$plugin_id]; } - $plugin_maintain = self::build_maintain_class($plugin_id); + if ($action !== 'update') + { // wait for files to be updated + $plugin_maintain = self::build_maintain_class($plugin_id); + } $errors = array(); @@ -154,6 +157,8 @@ INSERT INTO '. PLUGINS_TABLE .' (id,version) if ($upgrade_status === 'ok') { $this->get_fs_plugin($plugin_id); // refresh plugins list + + $plugin_maintain = self::build_maintain_class($plugin_id); $plugin_maintain->update($previous_version, $this->fs_plugins[$plugin_id]['version']); } -- cgit v1.2.3