Commit graph

861 commits

Author SHA1 Message Date
Sara Arjona
341a7b2a97 MDL-73347 blocks: New unaddableblocks theme setting
A new method, get_unaddable_by_theme_block_types(), has been added to
block_manager class to let themes define, using the unaddableblocks
theme setting, the blocks that won't be displayed in the "Add a block"
list.
For now, only the boost theme uses it, to disable some of the blocks,
like settings, navigation, course_list and section_links (they are still
required for classic).
2022-01-14 13:08:48 +01:00
Eloy Lafuente (stronk7)
cb9a8b5ef0 Merge branch 'MDL-70348' of https://github.com/paulholden/moodle 2022-01-12 10:17:22 +01:00
Andrew Nicols
3a70983d53 MDL-72701 unit tests: Generate default coverage 2021-12-21 09:24:00 +08:00
Paul Holden
506adaeb1d MDL-70348 core: fix upgrade note referring to $CFG->localrequestdir.
The change in 9fabe1dd referred to incorrect config property.
2021-12-15 08:56:53 +00:00
Sara Arjona
14e62a3d5c Merge branch 'MDL-72981-master-2' of https://github.com/bmbrands/moodle 2021-12-09 12:01:09 +01:00
Bas Brands
26a0091d3c MDL-72981 theme_boost: homogenise logo display 2021-12-06 09:38:21 +01:00
Ilya Tregubov
689bf6fc1e Merge branch 'MDL-72112-master' of https://github.com/aanabit/moodle 2021-12-03 15:11:01 +02:00
Jun Pataleta
bfecd28c7c Merge branch 'MDL-73000-master' of git://github.com/jleyva/moodle 2021-12-02 13:51:25 +08:00
Sara Arjona
ecfded8d31 MDL-72112 plugininfo: Add new get_enabled_plugin method
Apart from adding the new get_enabled_plugin($pluginname) method to the
core_plugininfo\base class, and overwritting it for filter, a bug in
enable_plugin in filter, introduced in MDL-72720, has been fixed too.
2021-11-30 13:14:26 +01:00
Amaia Anabitarte
1f450065a6 MDL-72112 output: Add new displayoption parameter to confirm function 2021-11-30 13:14:26 +01:00
Mathew May
f65b92577a MDL-70197 navigation: Update classic goutte tests 2021-11-30 08:13:49 +02:00
Juan Leyva
dba18ce3b6 MDL-73000 webservice: Fix external_warnings message type 2021-11-23 16:15:08 +01:00
Sara Arjona
dc0e7a45df Merge branch 'MDL-70721-master' of git://github.com/rezaies/moodle 2021-11-18 15:18:51 +01:00
Shamim Rezaie
4f96d7ac92 MDL-70721 core: a new mustache helper to clean string after get_string 2021-11-15 22:14:03 +11:00
Michael Hawkins
6d26ba77f3 MDL-72096 core: Add safe ORDER BY helpers for db sorting from user input
The new get_safe_orderby() and get_safe_orderby_multiple() methods
provide a centralised safe way for user submitted sorting values to be
incorporated into SQL ORDER BY. They do this by removing the need for
user submitted data to pass in any SQL and not allowing arbitrary
column values, instead using string keys which map to a predefined
list of allowed sortable columns.
2021-11-15 12:42:43 +08:00
Mikel Martín
eab63e82a1 MDL-72565 tablelib: Add modifications needed for report card view
- new 'set_columns_attributes' method created to add column attributes included in every column cell.
- new 'get_row_cells_html' method created from 'get_row_html', so it can be overriden individually.
2021-11-11 13:55:31 +01:00
Mathew May
b98d5c1614 MDL-65799 core: Final deprecation of 3.8 functions 2021-11-10 15:14:05 +08:00
Jun Pataleta
76db9b294f Merge branch 'MDL-72896-master' of git://github.com/HuongNV13/moodle 2021-11-09 10:45:08 +08:00
Huong Nguyen
ffca35b805 MDL-72896 Accessibility: Make html_table responsive
The tables are generated by html_table will responsive across viewports
2021-11-09 09:41:27 +07:00
Andrew Nicols
97764798a4 Merge branch 'MDL-66776-master' of https://github.com/jleyva/moodle 2021-11-08 08:28:23 +08:00
Juan Leyva
39d96944eb MDL-66776 notifications: New login session notification 2021-11-04 11:18:00 +01:00
Ilya Tregubov
ac93013cd1 MDL-72995 core_course: Revert "MDL-55231: Partial course cache rebuild"
This reverts commits c1468388bc,
c1468388bc and
9a900492bc.
2021-11-04 11:57:58 +02:00
Andrew Nicols
f764fa8e62 Merge branch 'MDL-72433-master' of git://github.com/peterRd/moodle 2021-10-29 11:27:39 +08:00
Andrew Nicols
a9eeca8c05 Merge branch 'MDL-72615-master' of git://github.com/cescobedo/moodle 2021-10-29 11:17:29 +08:00
Andrew Nicols
73ca68d3d5 Merge branch 'MDL-72779' of https://github.com/paulholden/moodle 2021-10-29 10:16:56 +08:00
Shamim Rezaie
674ce41ffe Merge branch 'MDL-71086' of https://github.com/paulholden/moodle 2021-10-29 00:10:24 +11:00
Jun Pataleta
4d10196dec Merge branch 'MDL-72316-master-2' of git://github.com/mickhawkins/moodle 2021-10-28 14:51:34 +08:00
Michael Hawkins
2a2ece647a MDL-72316 filelib: Add ability for modules to directly load SVG images
This also implements the functionality for SCORM packages, which may
have SVG images embedded within their content which require loading
directly (and are only created by users with appropriate risk flag).
2021-10-28 12:56:52 +08:00
cescobedo
0a5d387398 MDL-72615 core: Remove boxnet portfolio and repository 2021-10-27 06:24:55 +02:00
Dongsheng Cai
9a900492bc MDL-55231 core_course: Partial course cache rebuild 2021-10-26 19:08:15 +11:00
Peter Dias
f019394b89 MDL-72433 core: Final deprecation get_grades
Final deprecation of core_grades_external::get_grades along with unit tests and related private methods.
2021-10-15 10:53:45 +08:00
Sara Arjona
cf54e29ddc MDL-72720 plugininfo: Add enable_plugin() method to base class 2021-10-14 16:54:12 +02:00
Paul Holden
310bf46963 MDL-72779 core: add set_many helper method to persistent class. 2021-10-13 14:44:23 +01:00
Paul Holden
de2b0565a7 MDL-71086 core: load only those properties defined within persistent. 2021-10-11 09:09:27 +01:00
Ilya Tregubov
b4675942ce Merge branch 'MDL-52206-master-rebased' of git://github.com/peterRd/moodle 2021-10-07 12:55:12 +07:00
Ilya Tregubov
e560a4becc Merge branch 'master_MDL-71679-mod_quiz-52' of https://github.com/catalyst/moodle-MDL-70329 2021-10-05 23:18:47 +02:00
Peter Dias
d975251813 MDL-52206 completion: New criteria to handle behaviour between modules 2021-10-04 19:45:45 +08:00
Safat Shahin
f9fc355ec7 MDL-71679 mod_quiz: Updates for new qbank api
This implementation will introduct changes to
the mod_quiz to implement the new qbank api
for view. Major changes are introduced in
the custom view and also all the legacy points
to the old qbank are changed to qbank plugins
where needed. It also deprecated and deletes
classes and scripts which were kept not to
break mod_quiz for the new api implementation.
2021-10-04 15:44:25 +11:00
Andrew Nicols
c00e7b1bb8 Merge branch 'MDL-72291' of git://github.com/paulholden/moodle 2021-10-04 10:54:32 +08:00
Paul Holden
244d304b6e MDL-72291 output: emit native events from inplace editable element.
Removes jQuery dependency from calling code that wants to listen
for these events. Maintains backwards compatibility with existing
code that does want to listen to jQuery-style events.
2021-10-01 10:41:45 +01:00
Andrew Nicols
29662c3488 Merge branch 'MDL-72329-master' of https://github.com/dravek/moodle 2021-10-01 11:02:28 +08:00
Andrew Nicols
f4604fe5fb Merge branch 'MDL-72544' of git://github.com/paulholden/moodle 2021-10-01 10:14:51 +08:00
sam marshall
e332d1849d MDL-72643 core: Improve display_size
Allows display_size to use a fixed unit for easy comparison of
multiple results, and fixed decimal places for the same reason.

Improves behaviour by using consistent decimal places and a
consistent space before the unit (the previous one only has a space
before 'bytes', not before 'KB').

Of existing uses, all the ones that displayed a 'maxbytes' type
configuration setting (which are likely to have an 'exact' size
and would be better shown as 512 KB rather than 512.0 KB) have been
changed to use 0 decimal places, to preserve previous behaviour.
All the uses which were showing an actual file or memory size have
been left as default (1 decimal place).
2021-09-27 16:52:33 +01:00
Paul Holden
e8d7817f7f MDL-72544 output: set default core/toast message type to information.
Update existing code to set type to warning as appropriate.
2021-09-24 08:19:54 +01:00
David Matamoros
78735a72bc MDL-72329 core: Persistent method get needs to return correct type 2021-09-24 08:45:08 +02:00
Sara Arjona
a0d3e32aa9 MDL-72042 media: Remove SWF media player
The Flash Player was deprecated in 2017 and officially discontinued
on 31 December 2020, so media_swf player has been completely
removed from Moodle core.
2021-09-17 10:39:17 +02:00
Sara Arjona
7045dd1948 MDL-71473 lib: Remove XMPPHP (Jabber) third-party lib
As the message_jabber notification plugin has been removed from core,
the XMPPHP library (aka Jabber) is not required any more so it has
been completely removed from Moodle core too.
2021-09-13 08:33:15 +02:00
Jun Pataleta
8b0ea8df44 Merge branch 'MDL-68164-cache_pg_type' of https://github.com/brendanheywood/moodle 2021-09-08 17:02:57 +08:00
Sara Arjona
5c78efaaea Merge branch 'master_MDL-71614-previewquestion' of https://github.com/catalyst/moodle-MDL-70329 2021-09-08 09:29:22 +02:00
Safat Shahin
0d55b26da8 MDL-71614 qbank_previewquestion: Add Preview question plugin to core
This implementation will introduce a qbank plugin "previewquestion"
which will view the preview question action in the question bank
actions by replacing the core classes, scripts and yui modules.
This plugin will also replace the preview option in the edit
question form. Having this plugin will give users the
flexibility of enabling or disabling this feature from
the question bank view.
This change will also allow other qbank plugins to add
elements or information in the preview question page
by implementing a callback. It also changes the pop
up to page redirect from base view page to make sure
any changes in preview reflects in the base view, for
example, comments added and the number of comments in
the comments colum changes while back from the preview
page. Other locations like edit and qtype plugins where
the preview is implemented, stays the same.

Co-Authored-By: Guillermo Gomez Arias <guillermogomez@catalyst-au.net>
Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
2021-09-08 16:21:06 +10:00