summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/init.php b/init.php
index d22acb9..e051342 100644
--- a/init.php
+++ b/init.php
@@ -127,22 +127,22 @@ class Api_Resize_Media extends Plugin {
if ($this->cache->exists($local_filename)) {
if ($this->cache->exists($resized_filename)) {
- header("Location: " . $this->cache->getUrl($resized_filename));
+ header("Location: " . $this->cache->get_url($resized_filename));
return;
} else {
$this->make_thumbnail(
- $this->cache->getFullPath($local_filename),
- $this->cache->getFullPath($resized_filename),
+ $this->cache->get_full_path($local_filename),
+ $this->cache->get_full_path($resized_filename),
$width,
$width,
- $this->cache->getMimeType($local_filename),
+ $this->cache->get_mime_type($local_filename),
$force_stamp);
if ($this->cache->exists($resized_filename)) {
- header("Location: " . $this->cache->getUrl($resized_filename));
+ header("Location: " . $this->cache->get_url($resized_filename));
return;
} else {
- header("Location: " . $this->cache->getUrl($local_filename));
+ header("Location: " . $this->cache->get_url($local_filename));
return;
}
}
@@ -153,23 +153,23 @@ class Api_Resize_Media extends Plugin {
if ($data) {
if ($this->cache->put($local_filename, $data)) {
if ($this->cache->exists($resized_filename)) {
- header("Location: " . $this->cache->getUrl($resized_filename));
+ header("Location: " . $this->cache->get_url($resized_filename));
return;
} else {
$this->make_thumbnail(
- $this->cache->getFullPath($local_filename),
- $this->cache->getFullPath($resized_filename),
+ $this->cache->get_full_path($local_filename),
+ $this->cache->get_full_path($resized_filename),
$width,
$width,
- $this->cache->getMimeType($local_filename),
+ $this->cache->get_mime_type($local_filename),
$force_stamp);
if ($this->cache->exists($resized_filename)) {
- header("Location: " . $this->cache->getUrl($resized_filename));
+ header("Location: " . $this->cache->get_url($resized_filename));
return;
} else {
- header("Location: " . $this->cache->getUrl($local_filename));
+ header("Location: " . $this->cache->get_url($local_filename));
return;
}
}
@@ -214,7 +214,7 @@ class Api_Resize_Media extends Plugin {
$local_filename = sha1($url) . "-$width";
if ($this->cache->exists($local_filename)) {
- return $this->cache->getUrl($local_filename);
+ return $this->cache->get_url($local_filename);
} else {
if ($this->cache->touch(sha1($url) . ".flag")) {
return $this->host->get_public_method_url($this, "api_resize",