From: tjhunt Date: Thu, 28 Aug 2008 03:23:59 +0000 (+0000) Subject: MDL-16204 - On an old site, there were question categories where category->parent... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e0e62023b698e854b7748fec1d665a91c60f5f2c;p=moodle.git 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. --- diff --git a/lang/en_utf8/question.php b/lang/en_utf8/question.php index 16156ad849..b7e08fce5e 100644 --- a/lang/en_utf8/question.php +++ b/lang/en_utf8/question.php @@ -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 click here.'; $string['wrongprefix'] = 'Wrongly formatted nameprefix $a'; ?>