convert tabulations into 2-spaces for indentation (introduced in r13240)

git-svn-id: http://piwigo.org/svn/trunk@13258 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2012-02-19 19:59:22 +00:00
parent f718a18561
commit 25200e2c25
5 changed files with 67 additions and 67 deletions
+30 -30
View File
@@ -52,36 +52,36 @@ if ( isset($_POST['d']) )
if (!$pderivative['enabled'])
continue;
if ($type==IMG_THUMB)
{
$w = intval($pderivative['w']);
if ($w<=0)
{
$errors[$type]['w'] = '>0';
}
$h = intval($pderivative['h']);
if ($h<=0)
{
$errors[$type]['h'] = '>0';
}
if (max($w,$h) <= $prev_w)
{
$errors[$type]['w'] = $errors[$type]['h'] = '>'.$prev_w;
}
}
else
{
$v = intval($pderivative['w']);
if ($v<=0 || $v<=$prev_w)
{
$errors[$type]['w'] = '>'.$prev_w;
}
$v = intval($pderivative['h']);
if ($v<=0 || $v<=$prev_h)
{
$errors[$type]['h'] = '>'.$prev_h;
}
}
if ($type==IMG_THUMB)
{
$w = intval($pderivative['w']);
if ($w<=0)
{
$errors[$type]['w'] = '>0';
}
$h = intval($pderivative['h']);
if ($h<=0)
{
$errors[$type]['h'] = '>0';
}
if (max($w,$h) <= $prev_w)
{
$errors[$type]['w'] = $errors[$type]['h'] = '>'.$prev_w;
}
}
else
{
$v = intval($pderivative['w']);
if ($v<=0 || $v<=$prev_w)
{
$errors[$type]['w'] = '>'.$prev_w;
}
$v = intval($pderivative['h']);
if ($v<=0 || $v<=$prev_h)
{
$errors[$type]['h'] = '>'.$prev_h;
}
}
$v = intval($pderivative['crop']);
if ($v<0 || $v>100)
{