summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-19 20:21:36 +0300
committerAndrew Dolgov <[email protected]>2021-02-19 20:21:36 +0300
commitfc0ebf089189ca42875d31b1bec4aa1c27852506 (patch)
tree973f89fbc36bc7807b35268b3868d4b949e365cf /classes/pluginhost.php
parentc9ccb0791dfb306c736833193c89abdefc7ccd83 (diff)
move bookmarklet-related methods out of public.php into the plugin
Diffstat (limited to 'classes/pluginhost.php')
-rwxr-xr-xclasses/pluginhost.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 065fa99c4..d50c5a706 100755
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -599,7 +599,7 @@ class PluginHost {
}
// handled by classes/pluginhandler.php, requires valid session
- function get_method_url(Plugin $sender, string $method, $params) {
+ function get_method_url(Plugin $sender, string $method, $params = []) {
return get_self_url_prefix() . "/backend.php?" .
http_build_query(
array_merge(
@@ -623,7 +623,7 @@ class PluginHost {
} */
// WARNING: endpoint in public.php, exposed to unauthenticated users
- function get_public_method_url(Plugin $sender, string $method, $params) {
+ function get_public_method_url(Plugin $sender, string $method, $params = []) {
if ($sender->is_public_method($method)) {
return get_self_url_prefix() . "/public.php?" .
http_build_query(