From 4f41b2e9ae31d1394122f597a7ff55e189baf0f5 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 25 Sep 2014 19:23:52 +0000 Subject: 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 --- include/ws_functions/pwg.extensions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ws_functions') 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'])) -- cgit v1.2.3