$xml->addChild('review', $this->getAttribute('review') ? '1' : '0');
$xt = $xml->addChild('translations');
/** @var QuizTranslation $translation */
- $translation = QuizTranslation::find($this->getAttribute('translation'));
+ $tid = $this->getAttribute('translation') ?? 1;
+ if ($tid === 'en') {
+ $tid = 1;
+ }
+ $translation = QuizTranslation::find($tid);
foreach (QuizTranslation::getTexts() as $text => $default) {
$xt->addChild($text, $translation->getAttribute($text));
}
* The maximum file size of an item in bytes.
* Adding a larger file will result in an exception.
*/
- 'max_file_size' => 1024 * 1024 * 10,
+ 'max_file_size' => 1024 * 1024 * 1000,
/*
* This queue will be used to generate derived and responsive images.