Ignore:
Timestamp:
Feb 19, 2012, 8:59:22 PM (12 years ago)
Author:
plg
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/derivatives.php

    r13240 r13258  
    5353      continue;
    5454
    55                 if ($type==IMG_THUMB)
    56                 {
    57                         $w = intval($pderivative['w']);
    58                         if ($w<=0)
    59                         {
    60                                 $errors[$type]['w'] = '>0';
    61                         }
    62                         $h = intval($pderivative['h']);
    63                         if ($h<=0)
    64                         {
    65                                 $errors[$type]['h'] = '>0';
    66                         }
    67                         if (max($w,$h) <= $prev_w)
    68                         {
    69                                 $errors[$type]['w'] = $errors[$type]['h'] = '>'.$prev_w;
    70                         }
    71                 }
    72                 else
    73                 {
    74                         $v = intval($pderivative['w']);
    75                         if ($v<=0 || $v<=$prev_w)
    76                         {
    77                                 $errors[$type]['w'] = '>'.$prev_w;
    78                         }
    79                         $v = intval($pderivative['h']);
    80                         if ($v<=0 || $v<=$prev_h)
    81                         {
    82                                 $errors[$type]['h'] = '>'.$prev_h;
    83                         }
    84                 }
     55    if ($type==IMG_THUMB)
     56    {
     57      $w = intval($pderivative['w']);
     58      if ($w<=0)
     59      {
     60        $errors[$type]['w'] = '>0';
     61      }
     62      $h = intval($pderivative['h']);
     63      if ($h<=0)
     64      {
     65        $errors[$type]['h'] = '>0';
     66      }
     67      if (max($w,$h) <= $prev_w)
     68      {
     69        $errors[$type]['w'] = $errors[$type]['h'] = '>'.$prev_w;
     70      }
     71    }
     72    else
     73    {
     74      $v = intval($pderivative['w']);
     75      if ($v<=0 || $v<=$prev_w)
     76      {
     77        $errors[$type]['w'] = '>'.$prev_w;
     78      }
     79      $v = intval($pderivative['h']);
     80      if ($v<=0 || $v<=$prev_h)
     81      {
     82        $errors[$type]['h'] = '>'.$prev_h;
     83      }
     84    }
    8585    $v = intval($pderivative['crop']);
    8686    if ($v<0 || $v>100)
Note: See TracChangeset for help on using the changeset viewer.