diff --git a/admin/plugins_new.php b/admin/plugins_new.php index 991c49948..811b0e6c9 100644 --- a/admin/plugins_new.php +++ b/admin/plugins_new.php @@ -47,11 +47,11 @@ if (isset($_GET['installstatus'])) switch ($_GET['installstatus']) { case 'ok': - $activate_url = get_root_url().'admin.php?page=plugins' - . '&plugin=' . $_GET['plugin_id'] - . '&pwg_token=' . get_pwg_token() - . '&action=activate' - . '&filter=deactivated'; + // since Piwigo 12, you need to be on the page of installed plugins to active a plugin with + // a JS action, no need to provide plugin_id in URL, just link to the page of installed + // plugins, filtered on deactivated plugins. The webmaster will have to find its newly + // installed plugin and click on the activation switch. + $activate_url = get_root_url().'admin.php?page=plugins&filter=deactivated'; $page['infos'][] = l10n('Plugin has been successfully copied'); $page['infos'][] = '' . l10n('Activate it now') . '';