Skip to content

Commit

Permalink
Merge pull request #2 from pdir/php8
Browse files Browse the repository at this point in the history
add support for php 8
  • Loading branch information
MDevster authored Jul 26, 2021
2 parents 1fe4ce3 + 532b4de commit 8a8e639
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

## [1.4.0](https://github.com/pdir/contao-theme-helper-bundle/tree/1.4.0) – 2021-07-26

- [feature] add support for php 8
- [fix] remove warnings
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"source" : "https://github.com/pdir/contao-theme-helper-bundle"
},
"require": {
"php": ">=7.0.0",
"php": "^7.0 || ^8.0",
"contao/core-bundle": "^4.4"
},
"conflict": {
Expand Down
14 changes: 6 additions & 8 deletions src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,24 @@
/**
* Backend Modules
*/
array_insert($GLOBALS['BE_MOD']['contaoThemesNet'], 1, array
(
'thLicence' => array
(
array_insert($GLOBALS['BE_MOD']['contaoThemesNet'], 1, [
'thLicence' => [
'callback' => 'Pdir\\ThemeHelperBundle\\Backend\\Licence',
'tables' => [],
),
));
],
]);

/**
* Register hooks
*/
$GLOBALS['TL_HOOKS']['replaceInsertTags'][] = array('theme_helper.listener.insert_tags', 'onReplaceInsertTags');
$GLOBALS['TL_HOOKS']['replaceInsertTags'][] = ['theme_helper.listener.insert_tags', 'onReplaceInsertTags'];

/**
* Javascript for Backend
*/
if (TL_MODE == 'BE')
{
if (!is_array($GLOBALS['TL_CSS']))
if (!isset($GLOBALS['TL_CSS']))
{
$GLOBALS['TL_CSS'] = [];
}
Expand Down

0 comments on commit 8a8e639

Please sign in to comment.