aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-09-25 08:46:16 +0000
committermistic100 <mistic@piwigo.org>2014-09-25 08:46:16 +0000
commit64b7e77a5ac3e9797d924b1671288056ca6aac90 (patch)
tree76787d6d1729be0cb7b97b0df2d458dd915e78f3 /admin
parent9b662902ccfa1ef47de7bfa753ccc8846220253e (diff)
flaw in r29773
git-svn-id: http://piwigo.org/svn/trunk@29778 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/plugins.class.php7
1 files changed, 6 insertions, 1 deletions
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']);
}