summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 7b291db..64ba048 100644
--- a/init.php
+++ b/init.php
@@ -28,7 +28,7 @@ class Api_Resize_Media extends Plugin {
function init($host) {
$this->host = $host;
- $this->cache = new DiskCache("images");
+ $this->cache = DiskCache::instance("images");
$host->add_hook($host::HOOK_RENDER_ARTICLE_API, $this, 999);
$host->add_hook($host::HOOK_ARTICLE_IMAGE, $this, 999);