MDL-42377 backup: fixed incorrect debugging message
This commit is contained in:
@@ -35,7 +35,7 @@ global $LINKS_ENCODERS_CACHE;
|
||||
$LINKS_ENCODERS_CACHE = array();
|
||||
|
||||
/**
|
||||
* Class implementing the @xml_contenttrasnformed logic to be applied in moodle2 backups
|
||||
* Class implementing the @xml_contenttransformed logic to be applied in moodle2 backups
|
||||
*
|
||||
* TODO: Finish phpdocs
|
||||
*/
|
||||
@@ -61,13 +61,13 @@ class backup_xml_transformer extends xml_contenttransformer {
|
||||
|
||||
// Array or object, debug and try our best recursively, shouldn't happen but...
|
||||
if (is_array($content)) {
|
||||
debugging('Backup XML transformer should process arrays but plain content always', DEBUG_DEVELOPER);
|
||||
debugging('Backup XML transformer should not process arrays but plain content only', DEBUG_DEVELOPER);
|
||||
foreach($content as $key => $plaincontent) {
|
||||
$content[$key] = $this->process($plaincontent);
|
||||
}
|
||||
return $content;
|
||||
} else if (is_object($content)) {
|
||||
debugging('Backup XML transformer should not process objects but plain content always', DEBUG_DEVELOPER);
|
||||
debugging('Backup XML transformer should not process objects but plain content only', DEBUG_DEVELOPER);
|
||||
foreach((array)$content as $key => $plaincontent) {
|
||||
$content[$key] = $this->process($plaincontent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user