News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

Main Menu

Delete picture but keep original

Started by Antax, May 05, 2006, 05:07:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Antax

Is there a way to have Coppermine delete the thumb_ and normal_ but leave the original picture if it is deleted?

Stramm

in delete.php find
    $files = array($dir . $file, $dir . $CONFIG['normal_pfx'] . $file, $dir . $CONFIG['thumb_pfx'] . $file);

and replace with
    $files = array($dir . $CONFIG['normal_pfx'] . $file, $dir . $CONFIG['thumb_pfx'] . $file);

Antax