coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Antax on May 05, 2006, 05:07:17 PM

Title: Delete picture but keep original
Post by: Antax on May 05, 2006, 05:07:17 PM
Is there a way to have Coppermine delete the thumb_ and normal_ but leave the original picture if it is deleted?
Title: Re: Delete picture but keep original
Post by: Stramm on May 05, 2006, 06:02:49 PM
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);
Title: Re: Delete picture but keep original
Post by: Antax on May 05, 2006, 06:46:04 PM
Thanks