mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 11:23:06 +02:00
CONTEXT_MODULE should really be CONTEXT_BLOCK
This commit is contained in:
parent
e54a9c39cf
commit
4b69085833
@ -65,7 +65,7 @@ function rss_client_upgrade($oldversion) {
|
||||
}
|
||||
|
||||
foreach ($blockinstances as $bi) {
|
||||
$context = get_context_instance(CONTEXT_MODULE, $bi->id);
|
||||
$context = get_context_instance(CONTEXT_BLOCK, $bi->id);
|
||||
|
||||
if ($bi->pagetype == 'course-view' && $bi->pageid == SITEID) {
|
||||
|
||||
|
@ -67,7 +67,7 @@ function rss_client_upgrade($oldversion) {
|
||||
}
|
||||
|
||||
foreach ($blockinstances as $bi) {
|
||||
$context = get_context_instance(CONTEXT_MODULE, $bi->id);
|
||||
$context = get_context_instance(CONTEXT_BLOCK, $bi->id);
|
||||
|
||||
if ($bi->pagetype == 'course-view' && $bi->pageid == SITEID) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user