openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ffcfb23dd05e1a73e01a8d95e10883d713e462b8
parent 5bccf3fa3d216a0982fbe24e276f849527aae451
Author: dankert <devnull@localhost>
Date:   Thu,  8 Nov 2007 21:37:59 +0100

Warnmeldung, wenn beim L?schen nicht best?tigt wird.

Diffstat:
actionClasses/FolderAction.class.php | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/actionClasses/FolderAction.class.php b/actionClasses/FolderAction.class.php @@ -20,6 +20,9 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ +// Revision 1.43 2007-11-08 20:37:59 dankert +// Warnmeldung, wenn beim L?schen nicht best?tigt wird. +// // Revision 1.42 2007-11-05 20:47:39 dankert // Aufruf von "addValidationError(...)" bei Eingabefehlern. // @@ -710,10 +713,14 @@ class FolderAction extends ObjectAction $l->delete(); break; - default: - die('fatal: what type to delete?'); + default: + Http::serverError('Internal Error while deleting: What type to delete?'); } - $this->addNotice($o->getType(),$o->name,'DELETED','ok'); + $this->addNotice($o->getType(),$o->name,'DELETED',OR_NOTICE_OK); + } + else + { + $this->addNotice($o->getType(),$o->name,'NOTHING_DONE',OR_NOTICE_WARN); } break;