diff --git a/translators/file/tmgmt_file.format.xliff.inc b/translators/file/tmgmt_file.format.xliff.inc index a617c3b..6a2457d 100644 --- a/translators/file/tmgmt_file.format.xliff.inc +++ b/translators/file/tmgmt_file.format.xliff.inc @@ -376,7 +376,7 @@ class TMGMTFileformatXLIFF extends XMLWriter implements TMGMTFileFormatInterface if (!isset($this->job->settings['xliff_validation'])) { $this->job->settings['xliff_validation'] = array(); } - $xliff_validation = &$this->job->settings['xliff_validation']; + $xliff_validation = $this->job->settings['xliff_validation']; /** @var DOMElement $node */ foreach ($iterator as $node) { @@ -440,8 +440,8 @@ class TMGMTFileformatXLIFF extends XMLWriter implements TMGMTFileFormatInterface } } - // Set the xliff_validation data that were set into the - // $this->job->settings['xliff_validation'] array(). + // Set the xliff_validation data and save the job. + $this->job->settings['xliff_validation'] = $xliff_validation; $this->job->save(); $writer->endElement(); diff --git a/translators/file/tmgmt_file.test b/translators/file/tmgmt_file.test index 15ef3c7..73643e7 100644 --- a/translators/file/tmgmt_file.test +++ b/translators/file/tmgmt_file.test @@ -120,7 +120,6 @@ class TMGMTFileTestCase extends TMGMTBaseTestCase { $integrity_check_failed = FALSE; /** @var TMGMTMessage $message */ foreach ($job->getMessages() as $message) { - debug($message->getMessage()); if ($message->getMessage() == t('Failed to validate semantic integrity of %key element. Please check also the HTML code of the element in the review process.', array('%key' => '2][dummy][deep_nesting'))) { $integrity_check_failed = TRUE; break;