Ignore:
Timestamp:
Dec 3, 2006, 11:32:02 PM (18 years ago)
Author:
rub
Message:

Fixed Issue ID 0000494: Stats do not currently include Uploads
Fixed: Error when thumbnail directory not exists
Fixed: Apply current translation norme
Fixed: Improvement style sheet (like other PWG sheet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/thumbnail.php

    r1379 r1631  
    6464    unset($extension);
    6565  }
    66                
     66
    6767  if ( isset( $srcImage ) )
    6868  {
     
    107107                        $destWidth,$destHeight,$srcWidth,$srcHeight );
    108108    }
    109    
    110     $tndir = $dirname.'/thumbnail';
    111     if (!is_dir($tndir))
    112     {
    113       if (!is_writable($dirname))
    114       {
    115         array_push($page['errors'],
    116                    '['.$dirname.'] : '.$lang['no_write_access']);
    117         return false;
    118       }
    119       umask(0000);
    120       mkdir($tndir, 0777);
    121     }
    122    
     109
     110    if (($tndir = mkget_thumbnail_dir($dirname, $page['errors'])) == false)
     111    {
     112      return false;
     113    }
     114
    123115    $dest_file = $tndir.'/'.$conf['prefix_thumbnail'];
    124116    $dest_file.= get_filename_wo_extension($filename);
Note: See TracChangeset for help on using the changeset viewer.