Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Fix compatibility with CLI install command from GLPI core #2830

Merged
merged 1 commit into from
Jun 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,9 @@ function plugin_fusioninventory_install() {
ini_set("max_execution_time", "0");

if (basename(filter_input(INPUT_SERVER, "SCRIPT_NAME")) != "cli_install.php") {
Html::header(__('Setup'), filter_input(INPUT_SERVER, "PHP_SELF"), "config", "plugins");
if (!isCommandLine()) {
Html::header(__('Setup'), filter_input(INPUT_SERVER, "PHP_SELF"), "config", "plugins");
}
$migrationname = 'Migration';
} else {
$migrationname = 'CliMigration';
Expand Down