Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34082 course restrict modules: typo in MDL-19125 upgrade code.

  • Loading branch information...
commit e08eaf7da35dda4bb6acb120754c6689f14b929f 1 parent 935c3d5
@timhunt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/db/upgrade.php
View
4 lib/db/upgrade.php
@@ -248,7 +248,7 @@ function xmldb_main_upgrade($oldversion) {
if ($CFG->restrictmodulesfor === 'all') {
$courses = $DB->get_records_menu('course', array(), 'id', 'id, 1');
} else if ($CFG->restrictmodulesfor === 'requested') {
- $courses = $DB->get_records_menu('course', array('retrictmodules' => 1), 'id', 'id, 1');
+ $courses = $DB->get_records_menu('course', array('restrictmodules' => 1), 'id', 'id, 1');
} else {
$courses = array();
}
@@ -314,7 +314,7 @@ function xmldb_main_upgrade($oldversion) {
if ($oldversion < 2012031500.02) {
- // Define field retrictmodules to be dropped from course
+ // Define field restrictmodules to be dropped from course
$table = new xmldb_table('course');
$field = new xmldb_field('restrictmodules');
Please sign in to comment.
Something went wrong with that request. Please try again.