aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-07-24 19:13:44 +0000
committerrvelices <rv-github@modusoptimus.com>2012-07-24 19:13:44 +0000
commit8197cd440fe41c92ed6bb798e8e4e97797fd297d (patch)
tree9e1c607adb924379ec6a109b0a9b475a424027ae
parent37b4b3e0f3a4b5909a045af4633dd64ac2e735a5 (diff)
fix checkbox of selected derivative on index page when a plugin overrides the default value
git-svn-id: http://piwigo.org/svn/branches/2.4@16985 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index c6ee29d96..e6f6b5965 100644
--- a/index.php
+++ b/index.php
@@ -279,7 +279,7 @@ if ( count($page['items']) > 0 )
duplicate_index_url(),
array('display' => '')
);
- $selected_type = pwg_get_session_var('index_deriv', IMG_THUMB);
+ $selected_type = trigger_event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) )->type;
$type_map = ImageStdParams::get_defined_type_map();
unset($type_map[IMG_XXLARGE], $type_map[IMG_XLARGE]);
foreach($type_map as $params)