Imports für Klasse AeoFrontendUtil korrigiert
This commit is contained in:
parent
c4f307a8ad
commit
265355e543
@ -31,6 +31,7 @@
|
|||||||
namespace cgoIT\aeo;
|
namespace cgoIT\aeo;
|
||||||
|
|
||||||
use cgoIT\aeo\AeoUtil;
|
use cgoIT\aeo\AeoUtil;
|
||||||
|
use cgoIT\aeo\AeoJavaScript;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class AeoFrontendUtil
|
* Class AeoFrontendUtil
|
||||||
@ -79,6 +80,7 @@ class AeoFrontendUtil extends \Frontend {
|
|||||||
protected $aeo;
|
protected $aeo;
|
||||||
|
|
||||||
protected $aeoUtil;
|
protected $aeoUtil;
|
||||||
|
protected $aeoJavaScript;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the object
|
* Initialize the object
|
||||||
@ -90,6 +92,7 @@ class AeoFrontendUtil extends \Frontend {
|
|||||||
if (TL_MODE == 'FE') {
|
if (TL_MODE == 'FE') {
|
||||||
global $objPage;
|
global $objPage;
|
||||||
$this->aeoUtil = new AeoUtil();
|
$this->aeoUtil = new AeoUtil();
|
||||||
|
$this->aeoJavaScript = new AeoJavaScript();
|
||||||
|
|
||||||
if ($GLOBALS['TL_CONFIG']['aeo_replace_standard_obfuscation'] === true) {
|
if ($GLOBALS['TL_CONFIG']['aeo_replace_standard_obfuscation'] === true) {
|
||||||
$this->use_rot_13 = $GLOBALS['TL_CONFIG']['aeo_use_rot_13'];
|
$this->use_rot_13 = $GLOBALS['TL_CONFIG']['aeo_use_rot_13'];
|
||||||
@ -495,8 +498,7 @@ class Aeo extends \System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dropJS() {
|
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";
|
$strContentJs = "\n<script type=\"text/javascript\">\n$strContentJs\n</script>\n";
|
||||||
return $strContentJs;
|
return $strContentJs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user