MDL-25536 fixed incorrect reading of plugin options in imsenterprise enrol plugin
authorPetr Skoda <skodak@moodle.org>
Mon, 6 Dec 2010 05:52:55 +0000 (05:52 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 6 Dec 2010 05:52:55 +0000 (05:52 +0000)
enrol/imsenterprise/lib.php

index 9de740a..5a6c098 100644 (file)
@@ -748,8 +748,7 @@ function load_role_mappings() {
 
     $this->rolemappings = array();
     foreach($imsroles as $imsrolenum=>$imsrolename) {
-        $this->rolemappings[$imsrolenum] = $this->rolemappings[$imsrolename]
-            = $DB->get_field('config_plugins', 'value', array('name'=>'imsrolemap' . $imsrolenum));
+        $this->rolemappings[$imsrolenum] = $this->rolemappings[$imsrolename] = $this->get_config('imsrolemap' . $imsrolenum);
     }
 }