Skip to content

Commit

Permalink
[BUGFIX] add TCA overrides for cs_seo only if extension is loaded. (#254
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Anna Färber authored and MattiasNilsson committed Jul 25, 2017
1 parent 1526ca5 commit d155466
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
defined('TYPO3_MODE') or die();

call_user_func(function () {
$GLOBALS['TCA']['pages']['columns']['tx_csseo_og_description']['config']['default'] = '';
$GLOBALS['TCA']['pages']['columns']['tx_csseo_tw_description']['config']['default'] = '';
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('cs_seo')) {
$GLOBALS['TCA']['pages']['columns']['tx_csseo_og_description']['config']['default'] = '';
$GLOBALS['TCA']['pages']['columns']['tx_csseo_tw_description']['config']['default'] = '';
}

$GLOBALS['TCA']['pages']['columns']['tx_themes_icon']['config'] = array (
'type' => 'user',
Expand Down

0 comments on commit d155466

Please sign in to comment.