Skip to content

Commit 0bd47f0

Browse files
committed
MAGETWO-55685: Introduce new ValidationSchemaException and implement processing this exception
- Fixed backward incompatible changes;
1 parent 8a11869 commit 0bd47f0

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/View/Model/Layout

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/View/Model/Layout/Merge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ protected function _loadFileLayoutUpdatesXml()
702702
$fileXml = $this->_loadXmlString($fileStr);
703703
if (!$fileXml instanceof \Magento\Framework\View\Layout\Element) {
704704
$xmlErrors = $this->getXmlErrors(libxml_get_errors());
705-
$this->logXmlErrors($file->getFilename(), $xmlErrors);
705+
$this->_logXmlErrors($file->getFilename(), $xmlErrors);
706706
if ($this->appState->getMode() === State::MODE_DEVELOPER) {
707707
throw new ValidationException(
708708
new \Magento\Framework\Phrase(
@@ -744,7 +744,7 @@ protected function _loadFileLayoutUpdatesXml()
744744
* @param array $xmlErrors
745745
* @return void
746746
*/
747-
private function logXmlErrors($fileName, $xmlErrors)
747+
protected function _logXmlErrors($fileName, $xmlErrors)
748748
{
749749
$this->logger->info(
750750
sprintf("Theme layout update file '%s' is not valid.\n%s", $fileName, implode("\n", $xmlErrors))

0 commit comments

Comments
 (0)