mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
moodle_page: MDL-12212 eliminate the two different interpretations of
pagetype
This commit is contained in:
parent
d529807a65
commit
e88462a055
9 changed files with 39 additions and 11 deletions
|
@ -1702,6 +1702,14 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
upgrade_main_savepoint($result, 2009042700);
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2009042800) {
|
||||
/// Site front page blocks need to be moved due to page name change.
|
||||
$DB->set_field('block_instance', 'pagetype', 'site-index', array('pagetype' => 'course-view', 'pageid' => SITEID));
|
||||
|
||||
/// Main savepoint reached
|
||||
upgrade_main_savepoint($result, 2009042800);
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2009043000) {
|
||||
unset_config('grade_report_showgroups');
|
||||
upgrade_main_savepoint($result, 2009043000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue