From 05be59f62bd23c134f1b71b5ee0feea6736b3d06 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 6 May 2010 17:13:56 +0000 Subject: [PATCH] Delete JPG images too. --- config/images.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/images.php b/config/images.php index 34afc33..af0696c 100644 --- a/config/images.php +++ b/config/images.php @@ -105,6 +105,10 @@ if($_POST['action']=="delimage") { @unlink("../data/logo-100.png"); @unlink("../data/logo-200.png"); @unlink("../data/logo-500.png"); + @unlink("../data/logo.jpg"); + @unlink("../data/logo-100.jpg"); + @unlink("../data/logo-200.jpg"); + @unlink("../data/logo-500.jpg"); echo happy(i18n("Deleted any existing logo files")); } @@ -157,7 +161,7 @@ if($_POST['action']=="delimage") { echo ""; echo ""; -if( file_exists("../data/logo.gif") || file_exists("../data/logo.png")) { +if( file_exists("../data/logo.gif") || file_exists("../data/logo.png") || file_exists("../data/logo.jpg")) { echo "
"; echo "
"; echo "\n";