summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-08-09 21:13:34 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-08-09 21:13:34 +0200
commit76f8f4826e8fab2118ae1b8c39d67da398ca892d (patch)
tree45551c3e8b29d71259846daeadf69649e152a6b2 /application/controllers
parentfd9d3931f84debc7577a13f12121eb5159d7e701 (diff)
Improve performance of thumbnail history
- Use the filedata we already have in c/file->upload_history_thumbnails() rather than fetching it per id in m/mfile->valid_id - Construct the config array for s/f::valid_id only once and not for every validation. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 571a4272f..85cef5490 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -687,7 +687,7 @@ class File extends MY_Controller {
assert($item["user"] === $user);
$item["data_id"] = $item['hash']."-".$item['storage_id'];
$query[$key]["data_id"] = $item["data_id"];
- if (!$this->mfile->valid_id($item["id"])) {
+ if (!$this->mfile->valid_filedata($item)) {
unset($query[$key]);
continue;
}