Delete picture but keep original Delete picture but keep original
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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