... |
... |
@@ -68,10 +68,14 @@ class CookiePolicy extends \Frontend
|
68 |
68 |
$objTemplate->commitURL = 'system/modules/eSM_cookiepolicy/ajax/Ajax.php?do=cookiepolicy_authentication&cookiepolicy_commit='.$this->createToken();
|
69 |
69 |
|
70 |
70 |
// Add dialog css to page
|
71 |
|
- array_unshift($GLOBALS['TL_CSS'], 'system/modules/eSM_cookiepolicy/assets/css/cp_theme.css||static');
|
|
71 |
+ $GLOBALS['TL_CSS'][] = 'system/modules/eSM_cookiepolicy/assets/css/cp_theme.css||static';
|
72 |
72 |
|
73 |
73 |
// Add dialog code to page
|
74 |
|
- $GLOBALS['TL_BODY'][] = $this->replaceInsertTags($objTemplate->parse(),false);
|
|
74 |
+ if (!is_array($GLOBALS['TL_BODY']))
|
|
75 |
+ {
|
|
76 |
+ $GLOBALS['TL_BODY'] = array();
|
|
77 |
+ }
|
|
78 |
+ array_unshift($GLOBALS['TL_BODY'],$this->replaceInsertTags($objTemplate->parse(),false));
|
75 |
79 |
}
|
76 |
80 |
|
77 |
81 |
/**
|