Skip to content

Commit

Permalink
Merge pull request #15 from w3scout/patch-1
Browse files Browse the repository at this point in the history
Update tl_page.php
  • Loading branch information
bennyborn authored Jul 17, 2020
2 parents 70b790d + f2a6331 commit 5f1afd2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
, $GLOBALS['TL_DCA']['opengraph_fields']['palettes']['default'].'{dns_legend'
, $GLOBALS['TL_DCA']['tl_page']['palettes']['root']
);

if (version_compare(VERSION, '4.9', '>='))
{
$GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback'] = str_replace(
'{dns_legend'
, $GLOBALS['TL_DCA']['opengraph_fields']['palettes']['default'].'{dns_legend'
, $GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback']
);
}
$GLOBALS['TL_DCA']['tl_page']['palettes']['regular'] = str_replace(
'{protected_legend'
, $GLOBALS['TL_DCA']['opengraph_fields']['palettes']['default'].'{protected_legend'
Expand Down

0 comments on commit 5f1afd2

Please sign in to comment.