diff --git a/util/AeoFrontendUtil.php b/util/AeoFrontendUtil.php index 7c207aa..0061e83 100644 --- a/util/AeoFrontendUtil.php +++ b/util/AeoFrontendUtil.php @@ -185,10 +185,10 @@ class AeoFrontendUtil extends \Frontend { public function obfuscateEmails($strContent, $strTemplate) { global $objPage; - $objPage = $this->getPageDetails($objPage->id); - $redirectPageId = $this->AeoUtil->getRedirectPageForLanguage(deserialize($this->jump_to_no_js), $objPage->rootLanguage); + $objPage2 = $this->getPageDetails($objPage->id); + $redirectPageId = $this->AeoUtil->getRedirectPageForLanguage(deserialize($this->jump_to_no_js), $objPage2->rootLanguage); - if (TL_MODE == 'FE' && $this->replace_standard_obfuscation && $objPage->id != $redirectPageId) { + if (TL_MODE == 'FE' && $this->replace_standard_obfuscation && $objPage2->id != $redirectPageId) { $strContent = $this->aeoReplaceInsertTags($strContent); $this->import('String'); @@ -221,7 +221,7 @@ class AeoFrontendUtil extends \Frontend { } } - $strContent = $this->aeo->prepareOutput($strContent, $objPage->id); + $strContent = $this->aeo->prepareOutput($strContent, $objPage2->id); } return $strContent; @@ -229,11 +229,11 @@ class AeoFrontendUtil extends \Frontend { private function includeStaticJs() { global $objPage; - $objPage = $this->getPageDetails($objPage); + $objPage2 = $this->getPageDetails($objPage); $objLayout = $this->Database->prepare("SELECT * FROM tl_layout WHERE id=?") ->limit(1) - ->execute($objPage->layout) + ->execute($objPage2->layout) ->fetchAssoc(); $GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/zaeo/public/js/onReadyAeo.min.js|static'; diff --git a/util/AeoRedirectUtil.php b/util/AeoRedirectUtil.php index 1e42d45..9f9a662 100644 --- a/util/AeoRedirectUtil.php +++ b/util/AeoRedirectUtil.php @@ -176,8 +176,8 @@ class AeoRedirectUtil extends \Frontend { $url = $arrValue['aeo_redirecturl']; } else { $objPage = \PageModel::findPublishedByIdOrAlias($arrValue['aeo_redirecturl']); - $objPage = $this->getPageDetails($objPage); - $url = $this->generateFrontendUrl($objPage->row()); + $objPage2 = $this->getPageDetails($objPage); + $url = $this->generateFrontendUrl($objPage2->row()); $url = $this->removeUrlPrefix($url); if ($GLOBALS['TL_CONFIG']['addLanguageToUrl'] || (in_array('i18nl10n', $this->Config->getActiveModules()) &&