Minor - format code.

1.9.x
Julio Montoya 11 years ago
parent cce71ccd0d
commit 65bebfba32
  1. 1
      main/work/work.php
  2. 4
      main/work/work_list.php

@ -249,7 +249,6 @@ switch ($action) {
} }
break; break;
case 'list': case 'list':
/* Display list of student publications */ /* Display list of student publications */
if (!empty($my_folder_data['description'])) { if (!empty($my_folder_data['description'])) {
$content = '<p><div><strong>'. $content = '<p><div><strong>'.

@ -89,9 +89,9 @@ $item_id = isset($_REQUEST['item_id']) ? intval($_REQUEST['item_id']) : null;
switch ($action) { switch ($action) {
case 'delete': case 'delete':
$file_deleted = deleteWorkItem($item_id, $courseInfo); $fileDeleted = deleteWorkItem($item_id, $courseInfo);
if (!$file_deleted) { if (!$fileDeleted) {
Display::display_error_message(get_lang('YouAreNotAllowedToDeleteThisDocument')); Display::display_error_message(get_lang('YouAreNotAllowedToDeleteThisDocument'));
} else { } else {
Display::display_confirmation_message(get_lang('TheDocumentHasBeenDeleted')); Display::display_confirmation_message(get_lang('TheDocumentHasBeenDeleted'));

Loading…
Cancel
Save