mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 21:36:58 +01:00
Update wiki-like text format to Markdown.
This commit is contained in:
parent
5d48f310a5
commit
59787e1894
@ -5,7 +5,7 @@
|
||||
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2005032300; // The (date) version of this module
|
||||
$module->version = 2005041200; // The (date) version of this module
|
||||
$module->requires = 2005021600; // Requires this Moodle version
|
||||
$module->cron = 0; // How often should cron check this module (seconds)?
|
||||
|
||||
|
@ -203,6 +203,12 @@ function workshop_upgrade($oldversion) {
|
||||
table_column('workshop_assessments', '', 'teachergraded', 'INTEGER', '4', 'UNSIGNED', '0', 'NOT NULL', 'gradinggrade');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005041200) { // replace wiki-like with markdown
|
||||
include_once( "$CFG->dirroot/lib/wiki_to_markdown.php" );
|
||||
$wtm = new WikiToMarkdown();
|
||||
$wtm->update( 'workshop','description','format' );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -196,6 +196,12 @@ function workshop_upgrade($oldversion) {
|
||||
table_column('workshop_assessments', '', 'teachergraded', 'INTEGER', '4', 'UNSIGNED', '0', 'NOT NULL', 'gradinggrade');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005041200) { // replace wiki-like with markdown
|
||||
include_once( "$CFG->dirroot/lib/wiki_to_markdown.php" );
|
||||
$wtm = new WikiToMarkdown();
|
||||
$wtm->update( 'workshop','description','format' );
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user