Browse Source

Minor - replace function name.

jmontoyaa 7 years ago
parent
commit
1d39f556af
2 changed files with 4 additions and 4 deletions
  1. 3 3
      main/course_progress/thematic_controller.php
  2. 1 1
      main/inc/lib/thematic.lib.php

+ 3 - 3
main/course_progress/thematic_controller.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);
                         }
                     }
 

+ 1 - 1
main/inc/lib/thematic.lib.php

@@ -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);