mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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);
|
||||
?>
|
||||
Reference in New Issue
Block a user