Skip to content

Commit

Permalink
fix: inappropriate css loading
Browse files Browse the repository at this point in the history
cause HTTP headers sent ar inappropriate time causing headers sent error

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 1, 2021
1 parent fddc4c0 commit bbde619
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ function plugin_init_formcreator() {
];
foreach ($pages as $page) {
if (strpos($_SERVER['REQUEST_URI'], $page) !== false) {
Html::requireJs('photoswipe');
echo Html::css('public/lib/photoswipe.css');
Html::requireJs('tinymce');
break;
}
Expand Down Expand Up @@ -305,6 +303,7 @@ function plugin_init_formcreator() {
//Html::requireJs('gridstack');
$CFG_GLPI['javascript']['admin'][PluginFormcreatorForm::class] = 'gridstack';
$CFG_GLPI['javascript']['helpdesk'][PluginFormcreatorFormlist::class] = 'gridstack';
$CFG_GLPI['javascript']['helpdesk'][PluginFormcreatorIssue::class] = 'photoswipe';
}
}

Expand Down

0 comments on commit bbde619

Please sign in to comment.