Skip to content

Commit

Permalink
fix: make moodle code checker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
RiedleroD committed Jan 17, 2025
1 parent 919b31e commit 5811587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lbplanner/classes/helpers/config_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function set_default_active_year() {
public static function add_customfield(): void {
// Check if the category is already created and only create it if it doesn't exist.
// Check if plugin "modcustomfields" is installed and create the category and the custom field.
if (config_helper::get_category_id() === -1) {
if (self::get_category_id() === -1) {

if (array_key_exists('modcustomfields', core_component::get_plugin_list('local'))) {

Expand Down Expand Up @@ -104,7 +104,7 @@ public static function add_customfield(): void {
*/
public static function remove_customfield(): void {
$handler = mod_handler::create();
$catcontroller = category_controller::create(config_helper::get_category_id(), null, $handler);
$catcontroller = category_controller::create(self::get_category_id(), null, $handler);
$handler->delete_category($catcontroller);
}

Expand Down

0 comments on commit 5811587

Please sign in to comment.