mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-15610 Merged label log display fix from 1.9
This commit is contained in:
parent
b0374a1692
commit
c1ac9e73b6
@ -23,8 +23,8 @@
|
||||
<STATEMENTS>
|
||||
<STATEMENT NAME="insert log_display" TYPE="insert" TABLE="log_display" COMMENT="Initial insert of records on table log_display">
|
||||
<SENTENCES>
|
||||
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name')" />
|
||||
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name')" />
|
||||
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'add', 'label', 'name')" />
|
||||
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'update', 'label', 'name')" />
|
||||
</SENTENCES>
|
||||
</STATEMENT>
|
||||
</STATEMENTS>
|
||||
|
@ -32,6 +32,9 @@ function xmldb_label_upgrade($oldversion=0) {
|
||||
/// }
|
||||
|
||||
//===== 1.9.0 upgrade line ======//
|
||||
if ($oldversion < 2007101510) {
|
||||
execute_sql("UPDATE {$CFG->prefix}log_display SET mtable = 'label' WHERE module = 'label'", 'false');
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2007101509; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->version = 2007101510; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2007101509; // Requires this Moodle version
|
||||
$module->cron = 0; // Period for cron to check this module (secs)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user