MDL-40436 block_course_list: Fix bad context resolution
commit67850301d04e199e4c230b045f7ed1d25df5dfc7
authorFrederic Massart <fmcell@gmail.com>
Thu, 12 Dec 2013 08:04:16 +0000 (12 09:04 +0100)
committerFrederic Massart <fmcell@gmail.com>
Thu, 12 Dec 2013 08:04:19 +0000 (12 09:04 +0100)
treed0de23546418340c17054f1d4ad799729d8f9bb7
parentc36a2401abdb4d842a3e1942c2645352585f26e9
MDL-40436 block_course_list: Fix bad context resolution

We were trying to get the course context of a remote course
from a completely unrelated ID. It would sometimes work if the
ID was matching the one of a local course. In other places
we are not trying to find a context for the remote course, we
simply use the $PAGE context in format_string. So the usage
of the context has been removed here too.
blocks/course_list/block_course_list.php