From e0e62023b698e854b7748fec1d665a91c60f5f2c Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 28 Aug 2008 03:23:59 +0000 Subject: [PATCH] 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. --- lang/en_utf8/question.php | 3 +++ 1 file changed, 3 insertions(+) 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'; ?> -- 2.39.5