Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85573

Incorrect code in admin/tool/brickfield/db/uninstall.php

      The file in admin/tool/brickfield/db/uninstall.php has invalid content - it should do the plugin uninstall in function xmldb_tool_brickfield_uninstall(), not when including the file.

      Fix proposal

      instead of:

      defined('MOODLE_INTERNAL') || die;
       
      // Remove the 'enableaccessibilitytools' configuration setting in case of reinstall.
      unset_config('enableaccessibilitytools'); 

      use this:

      defined('MOODLE_INTERNAL') || die;
       
      /**
       * Uninstall Brickfield tool.
       * @return true
       */
      function xmldb_tool_brickfield_uninstall(): bool {
          // Remove the 'enableaccessibilitytools' configuration setting in case of reinstall.
          unset_config('enableaccessibilitytools');
       
          return true;
      } 

       

      Note that this is a small bug only, nothing should include this file directly except uninstallation, that is likely why this was not discovered during testing.

            Unassigned Unassigned
            skodak Petr Skoda
            Paul Holden Paul Holden
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.