X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=lib%2Fclasses%2Fuser.php;h=6925e0224f61d9a7caebf1bf006badcebe6c0b31;hp=49672295cdc81d730ba7daded94a9229fa0cdc18;hb=bef5777fc45321a7dc01eecb15cbca69dfbbe1a6;hpb=6bb80a1917456c237447c56e57852f338e9b8303;ds=sidebyside diff --git a/lib/classes/user.php b/lib/classes/user.php index 49672295cdc..6925e0224f6 100644 --- a/lib/classes/user.php +++ b/lib/classes/user.php @@ -461,7 +461,7 @@ class core_user { 'choices' => array_merge(array('' => ''), get_string_manager()->get_list_of_countries(true, true))); $fields['lang'] = array('type' => PARAM_LANG, 'null' => NULL_NOT_ALLOWED, 'default' => $CFG->lang, 'choices' => array_merge(array('' => ''), get_string_manager()->get_list_of_translations(false))); - $fields['calendartype'] = array('type' => PARAM_NOTAGS, 'null' => NULL_NOT_ALLOWED, 'default' => $CFG->calendartype, + $fields['calendartype'] = array('type' => PARAM_PLUGIN, 'null' => NULL_NOT_ALLOWED, 'default' => $CFG->calendartype, 'choices' => array_merge(array('' => ''), \core_calendar\type_factory::get_list_of_calendar_types())); $fields['theme'] = array('type' => PARAM_THEME, 'null' => NULL_NOT_ALLOWED, 'default' => theme_config::DEFAULT_THEME, 'choices' => array_merge(array('' => ''), get_list_of_themes()));