Commit graph

7 commits

Author SHA1 Message Date
Stefan Topfstedt
82e868fd38 MDL-69168 block_recentlyaccesseditems: apply custom icon
Overwrite the default mod icon with the configured icon url if
applicable.
2020-08-07 09:14:01 -07:00
Neill Magill
8b78e4cf49 MDL-65084 recent items: Handle deleted courses
The method should not cause errors when a course with activities
that the user has visited no longer exists.

Ensuring that we only get records for courses still in the database
will stop any course not found erros from get_fast_modinfo()
2019-06-19 09:07:34 +01:00
Víctor Déniz Falcón
0eac5cf446 MDL-64155 block_recentlyaccessedcourses: considering enrolment status 2018-11-29 15:37:17 +00:00
Michael Hawkins
8adf5d94b2 MDL-63926 block_recentlyaccesseditems: Support user removal by context
Also fixed the provider interface type. This is self contained, so is
not a subsystem provider. It was also already set up as a plugin
provider, just not defined as such.
2018-11-14 11:14:57 +08:00
Michael Hawkins
13bd038912 MDL-63926 block_recentlyaccesseditems: Improved get_contexts_for_userid
Updated the provider::get_contexts_for_userid method, to prevent false
positives. Previously, the user context would always be returned, now
the method checks data exists for the block first.
2018-11-14 11:13:00 +08:00
Damyon Wiese
bbbf9667c0 Merge branch 'MDL-63063-master-block' of https://github.com/vmdef/moodle 2018-11-01 12:57:55 +08:00
Víctor Déniz Falcón
78e07cbcf0 MDL-63063 recentlyaccesseditems: fully contained block 2018-10-31 11:53:02 +00:00