mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 11:43:01 +02:00
feature 2548 multisize - custom sizes restricted to those requested by theme/plugin
code refacto git-svn-id: http://piwigo.org/svn/trunk@13021 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -214,6 +214,7 @@ if ( isset($_POST['d']) )
|
||||
{// disabled
|
||||
if (isset($enabled[$type]))
|
||||
{// now disabled, before was enabled
|
||||
$changed_types[] = $type;
|
||||
$disabled[$type] = $enabled[$type];
|
||||
unset($enabled[$type]);
|
||||
}
|
||||
|
||||
@@ -202,15 +202,18 @@ SELECT
|
||||
}
|
||||
|
||||
$ok = true;
|
||||
foreach ($files as $path)
|
||||
{
|
||||
if (is_file($path) and !unlink($path))
|
||||
{
|
||||
$ok = false;
|
||||
trigger_error('"'.$path.'" cannot be removed', E_USER_WARNING);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!isset($conf['never_delete_originals']))
|
||||
{
|
||||
foreach ($files as $path)
|
||||
{
|
||||
if (is_file($path) and !unlink($path))
|
||||
{
|
||||
$ok = false;
|
||||
trigger_error('"'.$path.'" cannot be removed', E_USER_WARNING);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($ok)
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ TABLE {
|
||||
|
||||
{footer_script require='jquery.effects.slide'}{literal}
|
||||
|
||||
var loader = new ImageLoader( {onChanged: loaderChanged} )
|
||||
var loader = new ImageLoader( {onChanged: loaderChanged, maxRequests:1 } )
|
||||
, pending_next_page = null
|
||||
, last_image_show_time = 0
|
||||
, allDoneDfd, urlDfd;
|
||||
|
||||
Reference in New Issue
Block a user