MDL-23444 fixed missing file include in user selector ajax

This commit is contained in:
Petr Skoda 2010-07-21 07:44:10 +00:00
parent 0762b758d6
commit be42eca7a4

View File

@ -1531,6 +1531,13 @@ class admins_potential_selector extends user_selector_base {
return array($groupname => $availableusers);
}
protected function get_options() {
global $CFG;
$options = parent::get_options();
$options['file'] = $CFG->admin . '/roles/lib.php';
return $options;
}
}
class admins_existing_selector extends user_selector_base {
@ -1573,4 +1580,11 @@ class admins_existing_selector extends user_selector_base {
return array($groupname => $availableusers);
}
protected function get_options() {
global $CFG;
$options = parent::get_options();
$options['file'] = $CFG->admin . '/roles/lib.php';
return $options;
}
}