Changeset 1210 for trunk/plugins


Ignore:
Timestamp:
11/08/09 09:29:42 (10 years ago)
Author:
gogo
Message:

Ticket #1465

Add an option resize_files to both ExtendedFileManager? and ImageManager?, defaults true, false turns off the automatic image resizing.

Location:
trunk/plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/config.inc.php

    r1143 r1210  
    146146*/ 
    147147$IMConfig['thumbnail_dir'] = 't'; 
     148 
     149/** 
     150 * Resize files, or not.  If the dimensions for an image are changed 
     151 * this will control if the image is actually resized.   
     152 * 
     153 * Usually you want this true, unless you are very disk space concious. 
     154 */ 
     155  
     156$IMConfig['resize_files'] = true; 
    148157 
    149158/** 
  • trunk/plugins/ExtendedFileManager/resizer.php

    r999 r1210  
    2323{ 
    2424  js_fail('Missing parameter.'); 
     25} 
     26 
     27if($IMConfig['resize_files'] == FALSE) 
     28{ 
     29    js_success($_GET['img']); 
    2530} 
    2631 
  • trunk/plugins/ImageManager/config.inc.php

    r1192 r1210  
    160160 
    161161$IMConfig['thumbnail_dir'] = '.thumbs'; 
     162 
     163// ------------------------------------------------------------------------- 
     164 
     165/** 
     166 * Resize files, or not.  If the dimensions for an image are changed 
     167 * this will control if the image is actually resized.   
     168 * 
     169 * Usually you want this true, unless you are very disk space concious. 
     170 */ 
     171  
     172$IMConfig['resize_files'] = true; 
    162173 
    163174// ------------------------------------------------------------------------- 
  • trunk/plugins/ImageManager/resizer.php

    r999 r1210  
    2323{ 
    2424  js_fail('Missing parameter.'); 
     25} 
     26 
     27if($IMConfig['resize_files'] == FALSE) 
     28{ 
     29  js_success($_GET['img']); 
    2530} 
    2631 
Note: See TracChangeset for help on using the changeset viewer.