rename public.php/cached_url to cached

master
Andrew Dolgov 4 years ago
parent fc0ebf0891
commit 053b262aa7

@ -273,7 +273,7 @@ class DiskCache {
}
public function get_url($filename) {
return get_self_url_prefix() . "/public.php?op=cached_url&file=" . basename($this->dir) . "/" . basename($filename);
return get_self_url_prefix() . "/public.php?op=cached&file=" . basename($this->dir) . "/" . basename($filename);
}
// check for locally cached (media) URLs and rewrite to local versions

@ -737,7 +737,7 @@ class Handler_Public extends Handler {
<?php
}
function cached_url() {
function cached() {
list ($cache_dir, $filename) = explode("/", $_GET["file"], 2);
// we do not allow files with extensions at the moment

Loading…
Cancel
Save