1. 04 Oct, 2021 2 commits
  2. 04 May, 2021 1 commit
  3. 27 Apr, 2021 2 commits
  4. 22 Apr, 2021 1 commit
  5. 17 Apr, 2021 1 commit
  6. 07 Apr, 2021 2 commits
  7. 27 Mar, 2021 1 commit
  8. 25 Mar, 2021 1 commit
  9. 24 Mar, 2021 1 commit
  10. 10 Mar, 2021 1 commit
    • sam marshall's avatar
      MDL-45242 Lib: Replace calls to deprecated functions · 558cc1b8
      sam marshall authored
      In all cases changes have been kept to a minimum while not making
      the code completely horrible. For example, there are many instances
      where it would probably be better to rewrite a query entirely, but
      I have not done that (in order to reduce the risk of changes).
      558cc1b8
  11. 03 Mar, 2021 1 commit
  12. 16 Dec, 2020 1 commit
  13. 12 Dec, 2020 1 commit
  14. 23 Oct, 2020 1 commit
  15. 04 Aug, 2020 1 commit
  16. 24 Jul, 2020 1 commit
  17. 15 Jul, 2020 1 commit
  18. 13 May, 2020 1 commit
    • David Mudrák's avatar
      MDL-68645 output: Do not apply filters when creating calendar events · 005b00dd
      David Mudrák authored
      Applying filters on an activity module description when using it as a
      new calendar event's description is bad m'kay? We need to store the raw
      text and apply the filters only when we actually display the text. That
      way, filters (such as multi-language content) may actually fully work
      and we do not initialise the theme and output machinery.
      
      Additionally, we need to explicitly set the format of the description
      text to HTML (because we have converted it to it already). Otherwise it
      defaults to the current user's preferred editor format.
      
      This is still a pragmatic hot-fix solution. The proper solution would be
      to pass the raw text, format and embedded files.
      005b00dd
  19. 25 Oct, 2019 1 commit
    • Eloy Lafuente's avatar
      MDL-66968 php74: array_key_exists() for objects is deprecated · f4feabb8
      Eloy Lafuente authored
      Replace it for correct property_exists() when the element
      being inspected is a property of object/class.
      
      Amended and squased changes:
      - keep mongo unmodified. The information is array, hence correct.
      - fix a couple of messaging phpdocs that were incorrect.
      
      Amended take#2:
      - As far as mongo resturns BSONDocument that is ArrayObject, aka
      implements ArrayAccess, we have decided to explicitly cast results
      to array so existing array_key_exists() and other accesses will
      continue working the same.
      f4feabb8
  20. 20 Sep, 2019 1 commit
  21. 12 Jul, 2019 1 commit
  22. 25 Jun, 2019 1 commit
  23. 14 Jun, 2019 1 commit
  24. 05 Mar, 2019 1 commit
  25. 27 Feb, 2019 1 commit
    • Damyon Wiese's avatar
      MDL-64878 grades: Update delete_instance · 40fe1538
      Damyon Wiese authored
      When grades are deleted, it needs to know the context so any files
      in the gradebook can be deleted. This means module delete_instance
      functions must delete the grade_item before they delete the module record.
      40fe1538
  26. 23 Feb, 2019 1 commit
  27. 08 Feb, 2019 1 commit
  28. 06 Dec, 2018 1 commit
    • Tim Hunt's avatar
      MDL-46783 permissions: let some moodle/ caps be overriden in all mods · 939218c2
      Tim Hunt authored
      The capabilities changed ('contextlevel' => CONTEXT_COURSE changed to
      'contextlevel' => CONTEXT_MODULE) are:
      
      * moodle/site:accessallgroups
      * moodle/site:viewfullnames
      * moodle/site:trustcontent
      * moodle/site:viewuseridentity
      
      This list came from reviewing the _get_extra_capabilities functions in
      all core activities. They were all somewhat inconsistent, but I think it
      makes sense that these capabilities are consistently overridable in all
      activities. E.g. moodle/site:accessallgroups affects conditional
      availability even if there is no other user of groups, and
      moodle/site:viewuseridentity and moodle/site:viewfullnames affect the
      logs report, if nothing else.
      
      As a result of this, several _get_extra_capabilities functions are no
      longer needed, and all the rest have been simplified.
      939218c2
  29. 31 Oct, 2018 1 commit
    • Eloy Lafuente's avatar
      MDL-63422 general: review core loop / switch / case / continue · bd5fdcfc
      Eloy Lafuente authored
      This commit reviews all continue uses in core happening within a
      loop / switch / case hierarchy. This does not cover:
      
      - Changes to libraries. Will be handled in another issue / commit.
      - Uses out from loops, will be reviewed by other commit.
      
      The policy followed has been:
      - When possible, take rid of the continue.
      - When clearly the intention was to jump to next element in loop
        change to continue 2
      - When it was not clear, keep old behavior switching to break, no
        matter how weird the behavior may be.
      bd5fdcfc
  30. 31 Aug, 2018 1 commit
  31. 30 Jul, 2018 1 commit
  32. 03 May, 2018 1 commit
  33. 18 Apr, 2018 2 commits
  34. 13 Feb, 2018 1 commit
  35. 08 Feb, 2018 1 commit
  36. 23 Nov, 2017 1 commit