]> git.mjollnir.org Git - moodle.git/commitdiff
CONTEXT_MODULE should really be CONTEXT_BLOCK
authorvyshane <vyshane>
Wed, 27 Sep 2006 07:11:06 +0000 (07:11 +0000)
committervyshane <vyshane>
Wed, 27 Sep 2006 07:11:06 +0000 (07:11 +0000)
blocks/rss_client/db/mysql.php
blocks/rss_client/db/postgres7.php

index 3940e88be6f70038fe947ae175cd10fa290a255f..b10ab83c0b59a9f3343e3f3b322653f236e94159 100644 (file)
@@ -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) {
                     
index 2659cb096561c913c059273c8c3e550567b697d1..71b59be4e1dd850daa9b863e12d7673600ebb63f 100644 (file)
@@ -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) {