110567 Commits

Author SHA1 Message Date
Sara Arjona
026f377993
MDL-78884 theme: Update references to $icon.png
The *.png files in pix/f folder have been removed, so their references
need to be updated to use the proper SVG file or a different icon, as
happened with logo_uri for oauth2 services.
2023-08-23 07:33:58 +02:00
Sara Arjona
792c711e8a
MDL-78884 pix: Remove invalid or deprecated MIME icons
The following MIME icons have been completely removed because they were
not used (they were probably added/kept by mistake):
    - clip-353 --> It was added in MDL-75362 by mistake.
    - edit
    - env
    - explore
    - folder-open
    - help
    - move
    - parent

Apart from removing these MIME icons, a PHPUnit test has been added to
guarantee MIME icons in pix/f are under control and they are only
added/removed when needed.
2023-08-23 07:33:56 +02:00
Sara Arjona
4ab210a823
MDL-78884 theme: Update styles to display new icons properly
- The default box for the icons has been increased from 50px to 52px.
That way, on the course page, the box for the icons has changed from
30px to 32px.
- The icon size has been increased from 16px to 24px on the main course
page and from 24px to 40px on the activity page.
2023-08-23 07:32:49 +02:00
Sara Arjona
07736ae9b7
MDL-78884 pix: Reduce MIME type icons, replacing them
In order to reduce the number of icons for the MIME types, a few
icons have been removed and replaced with their generic from
the existing ones:
- avi -> video
- base -> database
- bmp -> image
- html -> markup
- jpeg -> image
- mov -> video
- mp3 -> audio
- mpeg -> video
- png -> image
- quicktime -> video
- tiff -> image
- wav -> audio
- wmv -> video
2023-08-23 07:32:47 +02:00
Sara Arjona
dd354b589a
MDL-78884 pix: Replace MIME icons with new SVG files
The old xxxxxxx-yyy.png MIME icon files have been removed and replaced with
the new SVG files created by the UX team.

Special thanks to Sabina Abellán! :-)
2023-08-23 07:30:17 +02:00
Sara Arjona
7430208d56
MDL-78884 files: Deprecate size parameter for icons
The parameter $size of the following functions has been deprecated and is not used any more:
  - file_extension_icon
  - file_file_icon
  - file_folder_icon
  - file_mimetype_icon
  - mimeinfo_from_type
  - url_guess_icon

That way, the sized icons (xxxxxxx-yyy.png) can be removed and replaced by SVG, to make it easier
to keep them updated because once they are replaced, there will only be one single file for each
MIME icon.
2023-08-23 07:30:16 +02:00
Huong Nguyen
20ddfc3aee
Merge branch 'MDL-69489-patch' of https://github.com/ilyatregubov/moodle 2023-08-23 10:11:41 +07:00
Ilya Tregubov
fac3395464
MDL-69489 mod_lti: Fix query condition
Missing parenthesis added
2023-08-23 10:53:31 +08:00
Ilya Tregubov
31f1b4f62c
Merge branch 'MDL-69489-master' of https://github.com/jacdsouza/moodle 2023-08-23 09:35:56 +08:00
Paul Holden
36af5457dc
MDL-78787 dml: native casting to char in SQL Server driver.
Ensure the same is used during concatentation to prevent truncation
of data, which was previously set at 255 characters per field.
2023-08-23 00:55:24 +01:00
Paul Holden
28e1bd37d0
MDL-77988 dml: correct logic when dropping plugin tables.
Comparison of method void return within a conditional didn't make
sense, and the aforementioned method throws an exception on error
anyway which would halt execution.
2023-08-22 21:28:42 +01:00
Paul Holden
8fe1f83fe1
MDL-75855 reportbuilder: don't allow condition/filter duplication.
Custom reports shouldn't allow the same condition and/or filter
instance to exist more that once per report.
2023-08-22 18:47:33 +01:00
Andrew Nicols
1e89462692
MDL-69187 core_file: Unit test for file_get_typegroup string types 2023-08-22 15:57:53 +01:00
Paul Holden
b17ee6f4ad
MDL-78249 libraries: upgrade to version 6.8.1 of PHP-JWT. 2023-08-22 15:27:13 +01:00
Paul Holden
3ca41c77e4
MDL-76902 reportbuilder: entity method for defining table join alias. 2023-08-22 15:16:31 +01:00
Sara Arjona
cccc00954d
on-demand release 4.3dev+ 2023-08-22 15:51:24 +02:00
Paul Holden
b30245b3e2
MDL-76974 javascript: convert remaining uses of old preferences API.
Implement component preference definition callbacks, update JS code
to use the `core_user/repository` module instead of the now deprecated
API.
2023-08-22 14:43:34 +01:00
Paul Holden
d096c60e0c
MDL-76974 user: deprecate old method of setting user preferences.
The `M.util.set_user_preference` method (plus accompanying helpers)
are now deprecated, in favour of the `core_user/repository` module
to achieve the same.

Update current implementation to proxy calls to the new API ensuring
backwards compatibility, while emitting copious developer debugging.
2023-08-22 14:42:58 +01:00
Jackson D'souza
480114fc96 MDL-69489 mod_lti: Make LTI only available to specific course categories
* Add new table for LTI types course categories
* Update LTI add / update form to restrict tool availablily in selected course categories
* Bumped version
2023-08-22 12:53:07 +01:00
Paul Holden
e66f04e61d
MDL-69187 files: normalize retrieval of mimetypes from groups array.
Ensure that the following both return consistently, so that filepicker
form elements behave the same for each when defining "accepted_types":

    '.html, .txt'
    ['.html', '.txt']
2023-08-22 09:56:06 +01:00
Paul Holden
3b525fa234
MDL-79073 question: detect missing context when deleting question. 2023-08-22 09:41:15 +01:00
Jun Pataleta
47ca66a776
Merge branch 'MDL-78097-fix' of https://github.com/sarjona/moodle 2023-08-22 15:52:29 +08:00
Ferran Recio
174125dabc MDL-78291 core_courseformat: fix cm visibility behats 2023-08-22 09:39:13 +02:00
Ferran Recio
ee2e084e89 MDL-78291 core_courseformat: availability in activity action menu 2023-08-22 09:39:13 +02:00
Sara Arjona
bc67e79cc7
Merge branch 'MDL-78100-int' of https://github.com/Chocolate-lightning/moodle 2023-08-22 09:17:41 +02:00
Paul Holden
f68e0b9d00
MDL-78386 search: specify correct parameter type for search area. 2023-08-22 08:11:56 +01:00
Mathew May
8237f98814 MDL-78100 gradereport_grader: Behat filter clicking 2023-08-22 14:30:57 +08:00
Sara Arjona
8db9d6dd02
MDL-78097 grade: Improve behat to add columns to compare with
Until MDL-75081 is fixed, you cannot assert table contents by specifying
just a single column.
2023-08-22 08:12:28 +02:00
Kevin Percy
4f9e931993 MDL-77640 gradebook: Moved add items to new tertiary nav dropdown 2023-08-22 11:50:34 +08:00
Jun Pataleta
9b2917f183
Merge branch 'MDL-78468-master' of https://github.com/meirzamoodle/moodle 2023-08-22 11:00:11 +08:00
Ilya Tregubov
d7ad0f8711
Merge branch 'MDL-79089' of https://github.com/paulholden/moodle 2023-08-22 10:51:53 +08:00
Meirza
38a0173e61 MDL-78468 admin: Removed the configs while upgrading 2023-08-22 09:47:39 +07:00
Meirza
4cfa361e0a MDL-78468 admin: Removed devicedetectregex theme setting 2023-08-22 09:47:36 +07:00
Meirza
352e427520 MDL-78468 admin: Removed enabledevicedetection theme setting 2023-08-22 09:30:13 +07:00
Safat
b31b060557 MDL-75318 core: Behat coverate for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat
37266f177c MDL-75318 core: Add navigation for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat
4b9438431e MDL-75318 core: JS updates for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat
78bc87619b MDL-75318 core: Event update to share course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat
17b565f957 MDL-75318 core: External services for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat
933ab5201f MDL-75318 core: Backend api for sharing course to MoodleNet 2023-08-22 11:00:06 +10:00
Safat
a0238f277d MDL-75318 core: Capability to share course to MoodleNet 2023-08-22 11:00:06 +10:00
Paul Holden
57a12c73f9
MDL-79089 tiny_html: define help link text language string. 2023-08-21 15:55:05 +01:00
Leon Stringer
b3eed7cc95 MDL-79075 quiz: Fix transposed user IDs
In the description of "Quiz attempt reviewed" events the user IDs of
the reviewer (typically the teacher) and the reviewee (typically the
student) were the wrong way round.
2023-08-21 15:53:04 +01:00
Paul Holden
f9bf57c269
Merge branch 'MDL-79071-master' of https://github.com/junpataleta/moodle 2023-08-21 15:32:42 +01:00
hieuvu
80c9de3d00 MDL-79039 mathjax: Re-write yui javascript to AMD module 2023-08-21 19:43:45 +07:00
Andrew Nicols
c7b1cf2651
MDL-78251 tiny: Reduce use of UI for setting test expectations 2023-08-21 20:23:19 +08:00
Sara Arjona
316cf48a42
Merge branch 'MDL-78097-min' of https://github.com/Chocolate-lightning/moodle 2023-08-21 13:22:04 +02:00
Sara Arjona
b91f34305b
Merge branch 'MDL-78531-master' of https://github.com/aanabit/moodle 2023-08-21 13:09:50 +02:00
Paul Holden
b0d1d885b1
MDL-79079 grade: prevent default click event when toggling category. 2023-08-21 12:00:45 +01:00
Paul Holden
bdfe13c4fd
MDL-78533 grade: relax param type of itemname in external structures.
Ensure it conforms to the same format as allowed for course modules.
2023-08-21 10:53:40 +01:00