diff options
author | Andrew Dolgov <[email protected]> | 2019-08-15 20:23:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-15 20:23:45 +0300 |
commit | 10c63ed58240c3e652b931be9a880026c465bb50 (patch) | |
tree | 1004ccd27896ecd4602b16dc1deeaec2e1a4705d /plugins/af_proxy_http/init.php | |
parent | e46ed1ff975aec5b6f2bc7b17abe9d3b5d243028 (diff) |
pluginhost: add helper methods to get private/public pluginmethod endpoint URLs
Diffstat (limited to 'plugins/af_proxy_http/init.php')
-rw-r--r-- | plugins/af_proxy_http/init.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/af_proxy_http/init.php b/plugins/af_proxy_http/init.php index 421e04d1f..80100160d 100644 --- a/plugins/af_proxy_http/init.php +++ b/plugins/af_proxy_http/init.php @@ -141,8 +141,7 @@ class Af_Proxy_Http extends Plugin { } } - return get_self_url_prefix() . "/public.php?op=pluginhandler&plugin=af_proxy_http&pmethod=imgproxy&url=" . - urlencode($url); + return $this->host->get_public_method_url($this, "imgproxy", ["url" => $url]); } } } |