Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/lib/db/install.php

    r136 r1331  
    131131        'filterall'             => 0, // setting page, so have to be initialised here.
    132132        'texteditors'           => 'atto,tinymce,textarea',
     133        'upgrade_minmaxgradestepignored' => 1, // New installs should not run this upgrade step.
     134        'upgrade_extracreditweightsstepignored' => 1, // New installs should not run this upgrade step.
     135        'upgrade_calculatedgradeitemsignored' => 1, // New installs should not run this upgrade step.
    133136    );
    134137    foreach($defaults as $key => $value) {
     
    304307    $mypage->private = 1;
    305308    $DB->insert_record('my_pages', $mypage);
     309
     310    // Set a sensible default sort order for the most-used question types.
     311    set_config('multichoice_sortorder', 1, 'question');
     312    set_config('truefalse_sortorder', 2, 'question');
     313    set_config('match_sortorder', 3, 'question');
     314    set_config('shortanswer_sortorder', 4, 'question');
     315    set_config('numerical_sortorder', 5, 'question');
     316    set_config('essay_sortorder', 6, 'question');
    306317}
Note: See TracChangeset for help on using the changeset viewer.