From 557fccb9a10f41329ff16061b1395397771d3960 Mon Sep 17 00:00:00 2001 From: flop25 Date: Fri, 15 Aug 2014 15:29:56 +0000 Subject: bug:3124 derivative_default_size can't be disabled git-svn-id: http://piwigo.org/svn/trunk@29220 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/configuration_sizes_process.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/include') diff --git a/admin/include/configuration_sizes_process.inc.php b/admin/include/configuration_sizes_process.inc.php index 47cfaf388..a731aa55f 100644 --- a/admin/include/configuration_sizes_process.inc.php +++ b/admin/include/configuration_sizes_process.inc.php @@ -62,7 +62,7 @@ foreach ($pderivatives as $type => &$pderivative) $pderivative['minh'] = $pderivative['minw'] = $pderivative['w']; $pderivative['crop'] = 100; } - $pderivative['must_enable'] = ($type==IMG_SQUARE || $type==IMG_THUMB)? true : false; + $pderivative['must_enable'] = ($type==IMG_SQUARE || $type==IMG_THUMB || $type==$conf['derivative_default_size'])? true : false; $pderivative['enabled'] = isset($pderivative['enabled']) || $pderivative['must_enable'] ? true : false; if (isset($pderivative['crop'])) -- cgit v1.2.3