forum.coppermine-gallery.net

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
Code: [Select]
    $files = array($dir . $file, $dir . $CONFIG['normal_pfx'] . $file, $dir . $CONFIG['thumb_pfx'] . $file);
and replace with
Code: [Select]
    $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