Changeset 29979


Ignore:
Timestamp:
Oct 10, 2014, 10:59:30 AM (10 years ago)
Author:
JanisV
Message:

Perfomance: replace and with and

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/main.inc.php

    r29978 r29979  
    151151      $type = $big_type;
    152152    }
     153    $type_params = ImageStdParams::get_by_type($type);
     154    $big_type_params = ImageStdParams::get_by_type($big_type);
    153155
    154156    if ($conf['Fotorama']['nav'] == 'thumbs' or $conf['Fotorama']['fullscreen_nav'] == 'thumbs')
     
    177179    {
    178180      $row['src_image'] = new SrcImage($row);
    179       $row['derivative'] = DerivativeImage::get_one($type, $row['src_image']);
     181      $row['derivative'] = new DerivativeImage($type_params, $row['src_image']);
    180182      if ($row['derivative'] == null)
    181183      {
    182184        $row['derivative'] = $row['src_image'];
    183185      }
    184       $row['derivative_big'] = DerivativeImage::get_one($big_type, $row['src_image']);
     186      $row['derivative_big'] = new DerivativeImage($big_type_params, $row['src_image']);
    185187      if ($row['derivative_big'] == null)
    186188      {
     
    190192      if ($has_thumbs)
    191193      {
    192         $row['derivative_thumb'] = new DerivativeImage($thumb_params, $row['src_image']);;
     194        $row['derivative_thumb'] = new DerivativeImage($thumb_params, $row['src_image']);
    193195        if ($row['derivative_thumb'] == null)
    194196        {
Note: See TracChangeset for help on using the changeset viewer.