mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
minor optimization on photos_add_direct
git-svn-id: http://piwigo.org/svn/trunk@19828 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -108,7 +108,7 @@ if (pwg_image::get_library() == 'gd')
|
||||
$upload_modes = array('html', 'multiple');
|
||||
$upload_mode = isset($conf['upload_mode']) ? $conf['upload_mode'] : 'multiple';
|
||||
|
||||
if (isset($_GET['upload_mode']) and in_array($_GET['upload_mode'], $upload_modes))
|
||||
if (isset($_GET['upload_mode']) and $upload_mode != $_GET['upload_mode'] and in_array($_GET['upload_mode'], $upload_modes))
|
||||
{
|
||||
$upload_mode = $_GET['upload_mode'];
|
||||
conf_update_param('upload_mode', $upload_mode);
|
||||
|
||||
@@ -76,11 +76,13 @@ jQuery(document).ready(function(){
|
||||
jQuery("#uploadWarningsSummary a.showInfo").click(function() {
|
||||
jQuery("#uploadWarningsSummary").hide();
|
||||
jQuery("#uploadWarnings").show();
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery("#showPermissions").click(function() {
|
||||
jQuery(this).parent(".showFieldset").hide();
|
||||
jQuery("#permissions").show();
|
||||
return false;
|
||||
});
|
||||
|
||||
{/literal}
|
||||
|
||||
Reference in New Issue
Block a user