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

Commit

Permalink
Fix compatibility with CLI install command from GLPI core
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and trasher committed Jun 11, 2019
1 parent 5de7ad9 commit f4797c1
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit f4797c1

Please sign in to comment.