fcd361badb
* When restoring backup we clean the contentformat and defaultformat to avoid issue with invalid value. * Add tests for format and defaultformat so to check that we filter out invalid formats * Remove private $basepath variable as it was used one and not always initialised correctly.