summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-21 12:18:49 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-21 12:18:49 -0700
commit8f1bca7459af7eeebb30bf116ae03c25d30836f3 (patch)
treee7e7cf25293db098905c86201fe7174fe10285df /modules
parent90ba32065578289898040f686cce766bfeb9cb51 (diff)
Remove the fallback code. It should trigger extremely rarely and seems highly inefficient to me, so let's see if we can live without it.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/controllers/file_proxy.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php
index c5b34033..799260b5 100644
--- a/modules/gallery/controllers/file_proxy.php
+++ b/modules/gallery/controllers/file_proxy.php
@@ -66,20 +66,6 @@ class File_Proxy_Controller extends Controller {
// We didn't turn it up. This may mean that the path cache is out of date, so look it up
// the hard way.
//
- // Find all items that match the level and name, then iterate over those to find a match.
- // In most cases we'll get it in one. Note that for the level calculation, we just count the
- // size of $paths.
- $paths = explode("/", $path);
- $count = count($paths);
- foreach (ORM::factory("item")
- ->where("name", $paths[$count - 1])
- ->where("level", $count + 1)
- ->find_all() as $match) {
- if ($match->relative_path() == $path) {
- $item = $match;
- break;
- }
- }
}
if (!$item->loaded) {