Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Jun 24, 2022
1 parent 8256867 commit dbe4604
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inc/computer_item.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static function pdfForComputer(PluginPdfSimplePDF $pdf, Computer $comp) {
'Peripheral' => _n('Device', 'Devices', 2),
'Phone' => _n('Phone', 'Phones', 2)];

$info = new InfoCom();
$info = new Infocom();

$pdf->setColumnsSize(100);
$pdf->displayTitle('<b>'.__('Direct connections').'</b>');
Expand Down Expand Up @@ -152,7 +152,7 @@ static function pdfForItem(PluginPdfSimplePDF $pdf, CommonDBTM $item){
$ID = $item->getField('id');
$type = $item->getType();

$info = new InfoCom();
$info = new Infocom();
$comp = new Computer();

$pdf->setColumnsSize(100);
Expand Down
2 changes: 1 addition & 1 deletion inc/networkport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static function pdfForItem(PluginPdfSimplePDF $pdf, CommonDBTM $item){
$pdf->displayTitle('<b>'.__('No network port found').'</b>');
} else {
if ($nb_connect > $_SESSION['glpilist_limit']) {
$title = sprintf(__('%1$s: %2$s'), $title, $_SESSION['glpilist_limit'].' / '.$number);
$title = sprintf(__('%1$s: %2$s'), $title, $_SESSION['glpilist_limit'].' / '.$nb_connect);
} else {
$title = sprintf(__('%1$s: %2$d'), $title, $nb_connect);
}
Expand Down

0 comments on commit dbe4604

Please sign in to comment.