Skip to content

Commit

Permalink
Mark $GLOBALS['TL_KEYWORDS'] as BC layer
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Oct 25, 2021
1 parent a8c74c0 commit e0fd66f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core-bundle/src/Resources/contao/classes/FrontendTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public function getResponse($blnCheckRequest=false, $blnForceCacheHeaders=false)
protected function compile()
{
$this->keywords = '';

// Backwards compatibility
$arrKeywords = StringUtil::trimsplit(',', $GLOBALS['TL_KEYWORDS'] ?? '');

// Add the meta keywords
Expand Down
1 change: 1 addition & 0 deletions core-bundle/src/Resources/contao/modules/ModuleArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ protected function compile()
$this->Template->teaser = $this->teaser;
$this->Template->elements = $arrElements;

// Backwards compatibility
if ($this->keywords)
{
$GLOBALS['TL_KEYWORDS'] .= ($GLOBALS['TL_KEYWORDS'] ? ', ' : '') . $this->keywords;
Expand Down

0 comments on commit e0fd66f

Please sign in to comment.