Fixing delete button see BT#6195

1.9.x
Julio Montoya 12 years ago
parent a16da3439c
commit 1a265c496d
  1. 5
      main/admin/course_category.php

@ -29,7 +29,10 @@ $errorMsg = '';
if (!empty($action)) {
if ($action == 'delete') {
if (api_get_multiple_access_url()) {
if (api_get_current_access_url_id() == 1) {
if (api_get_current_access_url_id() == 1 ||
(isset($_configuration['enable_multiple_url_support_for_course_category']) &&
$_configuration['enable_multiple_url_support_for_course_category'])
) {
deleteNode($_GET['id']);
header('Location: ' . api_get_self() . '?category=' . Security::remove_XSS($category));
exit();

Loading…
Cancel
Save