summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-15 16:27:53 +0300
committerAndrew Dolgov <[email protected]>2019-08-15 16:27:53 +0300
commitde5669f723152bee265bcca7fb11557f75a2331c (patch)
treebcd3864962a2ad5d11ed3fe9cb07e6b73bb41801 /plugins
parent7f8946f14e0e9e11e8ed8bec650f941cb8afdb1b (diff)
af_zz_imgproxy: rename to af_proxy_http, use priority hook loader
Diffstat (limited to 'plugins')
-rw-r--r--[-rwxr-xr-x]plugins/af_proxy_http/init.php (renamed from plugins/af_zz_imgproxy/init.php)8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_proxy_http/init.php
index ddc30936f..13e2eea23 100755..100644
--- a/plugins/af_zz_imgproxy/init.php
+++ b/plugins/af_proxy_http/init.php
@@ -1,5 +1,5 @@
<?php
-class Af_Zz_ImgProxy extends Plugin {
+class Af_Proxy_Http extends Plugin {
/* @var PluginHost $host */
private $host;
@@ -9,7 +9,7 @@ class Af_Zz_ImgProxy extends Plugin {
function about() {
return array(1.0,
- "Load insecure images via built-in proxy",
+ "Loads media served over plain HTTP via built-in secure proxy",
"fox");
}
@@ -23,8 +23,8 @@ class Af_Zz_ImgProxy extends Plugin {
$this->host = $host;
$this->cache = new DiskCache("images");
- $host->add_hook($host::HOOK_RENDER_ARTICLE, $this);
- $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this);
+ $host->add_hook($host::HOOK_RENDER_ARTICLE, $this, 150);
+ $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this, 150);
$host->add_hook($host::HOOK_ENCLOSURE_ENTRY, $this);
$host->add_hook($host::HOOK_PREFS_TAB, $this);