From e42f791f52c502c00d095d6bf9aa3e3989423e98 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 27 Dec 2011 20:26:49 +0000 Subject: 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 --- i.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i.php') diff --git a/i.php b/i.php index 9f5463601..ff539bdf8 100644 --- a/i.php +++ b/i.php @@ -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 -- cgit v1.2.3