Skip to content

Commit

Permalink
MDL-42377 backup: fixed incorrect debugging message
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Oct 21, 2013
1 parent 4e47920 commit 4543bf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backup/moodle2/backup_xml_transformer.class.php
Expand Up @@ -35,7 +35,7 @@
$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
*/
Expand All @@ -61,13 +61,13 @@ public function process($content) {

// 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);
}
Expand Down

0 comments on commit 4543bf2

Please sign in to comment.