Skip to content

Commit 3fc3c1d

Browse files
committed
Remove undefined _translateModel property
The lines were a reminiscence from when the translation logic was in the core module. The logic was replaced with the correct use of the inlineTranslation property that is also present at the end of the method.
1 parent 0888e8c commit 3fc3c1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Sitemap/Model/Observer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ public function scheduledGenerateSitemaps()
121121
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
122122
)
123123
) {
124-
$translate = $this->_translateModel->getTranslateInline();
125-
$this->_translateModel->setTranslateInline(false);
124+
$this->inlineTranslation->suspend();
126125

127126
$this->_transportBuilder->setTemplateIdentifier(
128127
$this->_scopeConfig->getValue(

0 commit comments

Comments
 (0)