diff options
author | mistic100 <mistic@piwigo.org> | 2014-09-25 19:23:52 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-09-25 19:23:52 +0000 |
commit | 4f41b2e9ae31d1394122f597a7ff55e189baf0f5 (patch) | |
tree | ad93e8f36cd1ef944032e24d5349f68403dd28e0 /include/ws_functions | |
parent | 5d666f8566e7c8d57591369261921eb7c8894a18 (diff) |
Merged revision(s) 29773, 29778-29779 from trunk:
fix plugins autoupdate: call ##_maintain::update when updating from back-office
- plugins.version is not updated in "activate" action
- plugins.version is updated in "update" action and "load_plugin()" function (not only for plugins using maintain.class.php)
cases covered:
- autoupdate while active or inactive
- FTP update while active or inactive
git-svn-id: http://piwigo.org/svn/branches/2.7@29792 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_functions')
-rw-r--r-- | include/ws_functions/pwg.extensions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions/pwg.extensions.php b/include/ws_functions/pwg.extensions.php index 8a308ff3d..6ed2803bc 100644 --- a/include/ws_functions/pwg.extensions.php +++ b/include/ws_functions/pwg.extensions.php @@ -188,7 +188,7 @@ function ws_extensions_update($params, $service) ); } - $upgrade_status = $extension->extract_plugin_files('upgrade', $revision, $extension_id); + list($upgrade_status) = $extension->perform_action('update', $extension_id, array('revision'=>$revision)); $extension_name = $extension->fs_plugins[$extension_id]['name']; if (isset($params['reactivate'])) |