Skip to content

Commit

Permalink
Remove undefined _translateModel property
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marinagociu committed Oct 9, 2017
1 parent 0888e8c commit 3fc3c1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/code/Magento/Sitemap/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ public function scheduledGenerateSitemaps()
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
)
) {
$translate = $this->_translateModel->getTranslateInline();
$this->_translateModel->setTranslateInline(false);
$this->inlineTranslation->suspend();

$this->_transportBuilder->setTemplateIdentifier(
$this->_scopeConfig->getValue(
Expand Down

0 comments on commit 3fc3c1d

Please sign in to comment.