Skip to content

Commit

Permalink
Fix bug with editable file types in backend editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Nov 23, 2021
1 parent 063294a commit 917c68b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Resources/contao/dca/tl_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
if (!empty($GLOBALS['TL_DCA']['tl_templates']['config']['validFileTypes'])) {
$GLOBALS['TL_DCA']['tl_templates']['config']['validFileTypes'] .= ',php';
}
if (!empty($GLOBALS['TL_DCA']['tl_templates']['config']['editableFileTypes'])) {
$GLOBALS['TL_DCA']['tl_templates']['config']['editableFileTypes'] .= ',php';
}
$GLOBALS['TL_DCA']['tl_templates']['config']['onload_callback'][] = function() {
Config::set('editableFiles', Config::get('editableFiles') . ',php');
};
Expand Down

0 comments on commit 917c68b

Please sign in to comment.