Skip to content

Commit

Permalink
Delete $GLOBALS['TL_CONFIG']['loadGoogleFonts'] = true;
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Oct 3, 2024
1 parent 6d8160d commit 502970b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
6 changes: 0 additions & 6 deletions src/Contao/View/Contao2BackendView/TreePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,6 @@ public function generate()

$this->addOrderFieldToTemplate($template);

// Load the fonts for the drag hint.
$GLOBALS['TL_CONFIG']['loadGoogleFonts'] = true;

return $template->parse();
}

Expand Down Expand Up @@ -925,9 +922,6 @@ public function generatePopup()

$template->set('tree', $tree);

// Load the fonts for the drag hint.
$GLOBALS['TL_CONFIG']['loadGoogleFonts'] = true;

return $template->parse();
}

Expand Down
7 changes: 2 additions & 5 deletions src/Contao/View/Contao2BackendView/Widget/FileTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of contao-community-alliance/dc-general.
*
* (c) 2013-2023 Contao Community Alliance.
* (c) 2013-2024 Contao Community Alliance.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -16,7 +16,7 @@
* @author Stefan Heimes <[email protected]>
* @author Ingolf Steinhardt <[email protected]>
* @author Sven Baumann <[email protected]>
* @copyright 2013-2023 Contao Community Alliance.
* @copyright 2013-2024 Contao Community Alliance.
* @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0-or-later
* @filesource
*/
Expand Down Expand Up @@ -248,9 +248,6 @@ public function __isset($strKey)
*/
private function setUp()
{
// Load the fonts for the drag hint (see #4838)
$GLOBALS['TL_CONFIG']['loadGoogleFonts'] = true;

$projectDir = System::getContainer()->getParameter('kernel.project_dir');
assert(\is_string($projectDir));
$this->projectDir = $projectDir;
Expand Down

0 comments on commit 502970b

Please sign in to comment.