MDL-16204 - On an old site, there were question categories where category->parent went round in a loop. This crashed the upgrade. Change the upgrade code to make it more robust.

This commit is contained in:
tjhunt
2008-08-28 03:23:59 +00:00
parent 3023078fb2
commit e0e62023b6
+3
View File
@@ -148,6 +148,9 @@ $string['unknown'] = 'Unknown';
$string['unknownquestiontype'] = 'Unknown question type: $a.';
$string['unknowntolerance'] = 'Unknown tolerance type $a';
$string['unpublished'] = 'unshared';
$string['upgradeproblemcategoryloop'] = 'Problem detected when upgrading question categories. There is a loop in the category tree. The affected category ids are $a.';
$string['upgradeproblemcouldnotupdatecategory'] = 'Could not update question category $a->name ($a->id).';
$string['upgradeproblemunknowncategory'] = 'Problem detected when upgrading question categories. Category $a->id refers to parent $a->parent, which does not exist. Parent changed to fix problem.';
$string['yourfileshoulddownload'] = 'Your export file should start to download shortly. If not, please <a href=\"$a\">click here</a>.';
$string['wrongprefix'] = 'Wrongly formatted nameprefix $a';
?>