Skip to content

Commit

Permalink
MDL-23204 convert text to html in url intro
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 16, 2010
1 parent 6897e0a commit b8091a0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mod/url/db/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,19 @@ function url_20_migrate() {

upgrade_set_timeout();

if ($CFG->texteditors !== 'textarea') {
$intro = text_to_html($candidate->intro, false, false, true);
$introformat = FORMAT_HTML;
} else {
$intro = $candidate->intro;
$introformat = FORMAT_MOODLE;
}

$url = new object();
$url->course = $candidate->course;
$url->name = $candidate->name;
$url->intro = $candidate->intro;
$url->introformat = $candidate->introformat;
$url->intro = $intro;
$url->introformat = $introformat;
$url->externalurl = $path;
$url->timemodified = time();

Expand Down

0 comments on commit b8091a0

Please sign in to comment.