Changeset 14584


Ignore:
Timestamp:
04/30/12 13:08:14 (8 years ago)
Author:
plg
Message:

simplify code to save derivatives settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/configuration_watermark_process.inc.php

    r14580 r14584  
    134134 
    135135  // do we have to regenerate the derivatives (and which types)? 
    136   $types = ImageStdParams::get_defined_type_map(); 
    137136  $changed_types = array(); 
    138137   
    139   foreach ($types as $type => $params) 
     138  foreach (ImageStdParams::get_defined_type_map() as $type => $params) 
    140139  { 
    141140    $old_use_watermark = $params->use_watermark; 
     
    147146      $params->last_mod_time = time(); 
    148147      $changed_types[] = $type; 
    149       $types[$type] = $params; 
    150148    } 
    151149  } 
    152150 
    153   ImageStdParams::set_and_save($types); 
     151  ImageStdParams::save(); 
    154152 
    155153  if (count($changed_types)) 
Note: See TracChangeset for help on using the changeset viewer.