Minor - replace function name.

pull/2487/head
jmontoyaa 8 years ago
parent ff952f7a21
commit 1d39f556af
  1. 6
      main/course_progress/thematic_controller.php
  2. 2
      main/inc/lib/thematic.lib.php

@ -93,7 +93,7 @@ class ThematicController
if (strtoupper($_SERVER['REQUEST_METHOD']) == "POST") {
if (api_is_allowed_to_edit(null, true)) {
$thematic_ids = $_POST['id'];
$affected_rows = $thematic->thematic_destroy($thematic_ids);
$thematic->delete($thematic_ids);
}
$action = 'thematic_details';
}
@ -102,7 +102,7 @@ class ThematicController
// Delete a thematic
if (isset($thematic_id)) {
if (api_is_allowed_to_edit(null, true)) {
$thematic->thematic_destroy($thematic_id);
$thematic->delete($thematic_id);
}
$thematic_id = null;
$action = 'thematic_details';
@ -117,7 +117,7 @@ class ThematicController
// Remove current thematic.
$list = $thematic->get_thematic_list();
foreach ($list as $i) {
$thematic->thematic_destroy($i);
$thematic->delete($i);
}
}

@ -368,7 +368,7 @@ class Thematic
* @param int|array One or many thematic ids
* @return int Affected rows
*/
public function thematic_destroy($thematic_id)
public function delete($thematic_id)
{
$_course = api_get_course_info();
$tbl_thematic = Database::get_course_table(TABLE_THEMATIC);

Loading…
Cancel
Save