From e4609c18efceebb1e021d814f53061ada7f6489a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Feb 2021 21:44:21 +0300 Subject: * add (disabled) shortcut syntax for plugin methods * add controls shortcut for pluginhandler tags * add similar shortcut for frontend * allow plugins to selectively exclude their methods from CSRF checking --- plugins/share/share_prefs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/share/share_prefs.js') diff --git a/plugins/share/share_prefs.js b/plugins/share/share_prefs.js index 29c9aeaf8..91f979daf 100644 --- a/plugins/share/share_prefs.js +++ b/plugins/share/share_prefs.js @@ -5,7 +5,7 @@ Plugins.Share = { if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) { Notify.progress("Clearing URLs..."); - xhrPost("backend.php", {op: "pluginhandler", plugin: "share", method: "clearArticleKeys"}, (transport) => { + xhrPost("backend.php", App.getPhArgs("share", "clearArticleKeys"), (transport) => { Notify.info(transport.responseText); }); } -- cgit v1.2.3