Skip to content

Commit

Permalink
Update tl_page.php
Browse files Browse the repository at this point in the history
Added version compare
  • Loading branch information
w3scout authored Jul 16, 2020
1 parent 969f1c1 commit f2a6331
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
, $GLOBALS['TL_DCA']['opengraph_fields']['palettes']['default'].'{dns_legend'
, $GLOBALS['TL_DCA']['tl_page']['palettes']['root']
);

$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']
);

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 f2a6331

Please sign in to comment.