Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(orion): change name of Orion itemtype
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and ajsb85 committed Oct 26, 2017
1 parent b46a6de commit 1a7a7fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ function plugin_flyvemdm_uninstall() {
* Also force inclusion of this file
*/
function plugin_flyvemdm_postinit() {

$plugin = new Plugin();
if ($plugin->isActivated('orion')) {
PluginOrionItem_Report::registerItemtype(PluginFlyvemdmPackage::class);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/package.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private function createOrionTask() {
$filename = substr($filename, strlen(GLPI_DOC_DIR));
}

$orionTask = new PluginOrionTask();
$orionTask = new PluginOrionReport();
$orionTask->add([
'filename' => $filename,
]);
Expand Down

0 comments on commit 1a7a7fb

Please sign in to comment.