From 16ca32ab29ed81a71b6e38a99af1d47bba3c754d Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 21 Jan 2007 03:33:56 +0000 Subject: [PATCH] Commented out my test functionality which replaces any duplicate file uploaded through the web interface --- campcaster/src/modules/htmlUI/var/ui_handler.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/campcaster/src/modules/htmlUI/var/ui_handler.class.php b/campcaster/src/modules/htmlUI/var/ui_handler.class.php index 6db6a93a7..76cba771e 100644 --- a/campcaster/src/modules/htmlUI/var/ui_handler.class.php +++ b/campcaster/src/modules/htmlUI/var/ui_handler.class.php @@ -147,10 +147,10 @@ class uiHandler extends uiBase { $this->redirUrl = UI_BROWSER."?act=addFileData&folderId=".$formdata['folderId']; return FALSE; } else { - $duplicate->delete(); -// $this->_retMsg('The file "'.basename($formdata['mediafile']['name']).'" already exists in the database.'); -// $this->redirUrl = UI_BROWSER."?act=addFileData&folderId=".$formdata['folderId']; -// return FALSE; + //$duplicate->delete(); + $this->_retMsg('The file "'.basename($formdata['mediafile']['name']).'" already exists in the database.'); + $this->redirUrl = UI_BROWSER."?act=addFileData&folderId=".$formdata['folderId']; + return FALSE; } }