load(); if ($folder && $folder->getType() == 'folder' && $folder->canEdit()) { $course = $folder->course; if ($folder->delete()) { $Dippler->add_system_message(_("Folder deleted.")); forward("course/resources/{$course}"); } else { $Dippler->add_system_message(_("Folder could not be deleted."), "error"); forward($folder->getURL()); } } forward("courses/my"); ?>