]> git.mjollnir.org Git - moodle.git/commitdiff
database: MDL-16999 move the flag from config table to config_plugins table, merged...
authorjerome <jerome>
Mon, 24 Nov 2008 00:54:20 +0000 (00:54 +0000)
committerjerome <jerome>
Mon, 24 Nov 2008 00:54:20 +0000 (00:54 +0000)
mod/data/lib.php

index d30da623e03268332fb5bf542ffac5684f8c4194..822ab01ae315c0925c2848181c45845521b20eca 100755 (executable)
@@ -2552,8 +2552,8 @@ function data_check_required_entries_fields($result) {
     global $CFG, $DB;
     if (!empty($CFG->version)                                             //we are not installing a new Moodle site
         && $CFG->version < 2008112101                              //the version is anterior to the one when the fix has been applied
-        && !get_config("","data/requiredentriesfixflag")) {      //do not show message when upgrading an anterior version when the patch has already been applied
-        set_config("data/requiredentriesfixflag",true);
+        && !get_config("data","requiredentriesfixflag")) {      //do not show message when upgrading an anterior version when the patch has already been applied
+        set_config("requiredentriesfixflag",true,"data");
         $databases = $DB->get_records_sql("SELECT d.*, c.fullname
                                     FROM {data} d,
                                          {course} c