diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-12-27 20:26:49 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-12-27 20:26:49 +0000 |
commit | e42f791f52c502c00d095d6bf9aa3e3989423e98 (patch) | |
tree | 965cbd888b954302e4652fefa7d56ef2e074eb66 /i.php | |
parent | 753f58d6a966a1051dcd62a3eeab8fc18798bcac (diff) |
feature 2541 multisize
- nicer presentation on picture.php
- added a maintenance purge derivatives action
git-svn-id: http://piwigo.org/svn/trunk@12797 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'i.php')
-rw-r--r-- | i.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -135,7 +135,7 @@ function parse_request() $deriv = explode('_', $deriv); foreach (ImageStdParams::get_defined_type_map() as $type => $params) { - if (substr($type,0,2) == $deriv[0]) + if ( derivative_to_url($type) == $deriv[0]) { $page['derivative_type'] = $type; $page['derivative_params'] = $params; @@ -145,7 +145,7 @@ function parse_request() if (!isset($page['derivative_type'])) { - if (substr(IMG_CUSTOM,0,2) == $deriv[0]) + if (derivative_to_url(IMG_CUSTOM) == $deriv[0]) { $page['derivative_type'] = IMG_CUSTOM; } @@ -288,5 +288,5 @@ switch (strtolower($page['derivative_ext'])) header("Content-Type: $ctype"); fpassthru($fp); -exit; +fclose($fp); ?>
\ No newline at end of file |