mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-34866' of git://github.com/rlorenzo/moodle
This commit is contained in:
commit
1f0f592cea
@ -47,6 +47,11 @@ if ($hassiteconfig
|
||||
$temp->add(new admin_setting_configselect('moodlecourse/legacyfiles', new lang_string('courselegacyfiles'), new lang_string('courselegacyfiles_help'), key($choices), $choices));
|
||||
}
|
||||
|
||||
$choices = array();
|
||||
$choices[COURSE_DISPLAY_SINGLEPAGE] = new lang_string('coursedisplay_single');
|
||||
$choices[COURSE_DISPLAY_MULTIPAGE] = new lang_string('coursedisplay_multi');
|
||||
$temp->add(new admin_setting_configselect('moodlecourse/coursedisplay', new lang_string('coursedisplay'), new lang_string('coursedisplay_help'), COURSE_DISPLAY_SINGLEPAGE, $choices));
|
||||
|
||||
$temp->add(new admin_setting_heading('groups', new lang_string('groups', 'group'), ''));
|
||||
$choices = array();
|
||||
$choices[NOGROUPS] = new lang_string('groupsnone', 'group');
|
||||
|
@ -124,7 +124,7 @@ class course_edit_form extends moodleform {
|
||||
array(COURSE_DISPLAY_SINGLEPAGE => get_string('coursedisplay_single'),
|
||||
COURSE_DISPLAY_MULTIPAGE => get_string('coursedisplay_multi')));
|
||||
$mform->addHelpButton('coursedisplay', 'coursedisplay');
|
||||
$mform->setDefault('coursedisplay', COURSE_DISPLAY_SINGLEPAGE);
|
||||
$mform->setDefault('coursedisplay', $courseconfig->coursedisplay);
|
||||
|
||||
for ($i = 0; $i <= $courseconfig->maxsections; $i++) {
|
||||
$sectionmenu[$i] = "$i";
|
||||
|
@ -47,9 +47,6 @@ define('FIRSTUSEDEXCELROW', 3);
|
||||
define('MOD_CLASS_ACTIVITY', 0);
|
||||
define('MOD_CLASS_RESOURCE', 1);
|
||||
|
||||
define('COURSE_DISPLAY_SINGLEPAGE', 0); // display all sections on one page
|
||||
define('COURSE_DISPLAY_MULTIPAGE', 1); // split pages into a page per section
|
||||
|
||||
function make_log_url($module, $url) {
|
||||
switch ($module) {
|
||||
case 'course':
|
||||
|
@ -487,6 +487,12 @@ define('MOODLE_OFFICIAL_MOBILE_SERVICE', 'moodle_mobile_app');
|
||||
*/
|
||||
define('USER_CAN_IGNORE_FILE_SIZE_LIMITS', -1);
|
||||
|
||||
/**
|
||||
* Course display settings
|
||||
*/
|
||||
define('COURSE_DISPLAY_SINGLEPAGE', 0); // display all sections on one page
|
||||
define('COURSE_DISPLAY_MULTIPAGE', 1); // split pages into a page per section
|
||||
|
||||
/// PARAMETER HANDLING ////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user