Imports für Klasse AeoFrontendUtil korrigiert

This commit is contained in:
Carsten Götzinger 2018-02-13 14:33:27 +01:00
parent c4f307a8ad
commit 265355e543
1 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,7 @@
namespace cgoIT\aeo;
use cgoIT\aeo\AeoUtil;
use cgoIT\aeo\AeoJavaScript;
/**
* Class AeoFrontendUtil
@ -79,6 +80,7 @@ class AeoFrontendUtil extends \Frontend {
protected $aeo;
protected $aeoUtil;
protected $aeoJavaScript;
/**
* Initialize the object
@ -90,6 +92,7 @@ class AeoFrontendUtil extends \Frontend {
if (TL_MODE == 'FE') {
global $objPage;
$this->aeoUtil = new AeoUtil();
$this->aeoJavaScript = new AeoJavaScript();
if ($GLOBALS['TL_CONFIG']['aeo_replace_standard_obfuscation'] === true) {
$this->use_rot_13 = $GLOBALS['TL_CONFIG']['aeo_use_rot_13'];
@ -495,8 +498,7 @@ class Aeo extends \System {
}
function dropJS() {
$this->import('aeo\\AeoJavaScript', 'AeoJavaScript');
$strContentJs = $this->AeoJavaScript->getContent(str_replace("/", "\/", $this->folder), $this->rot13);
$strContentJs = $this->aeoJavaScript->getContent(str_replace("/", "\/", $this->folder), $this->rot13);
$strContentJs = "\n<script type=\"text/javascript\">\n$strContentJs\n</script>\n";
return $strContentJs;
}