Skip to content

Commit 3a57c68

Browse files
committed
Fix #23
1 parent f2ef0e2 commit 3a57c68

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

front/connection.form.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,7 @@
9595
$_SESSION['glpi_tab'] = $_GET['onglet'];
9696
}
9797

98-
Html::header(
99-
__('Connections', 'connections'),
100-
$_SERVER["PHP_SELF"],
101-
"assets",
102-
"pluginconnectionsconnection",
103-
"connections"
104-
);
98+
Html::header(Connection::getTypeName(2), '', "assets", Connection::class);
10599

106100
$Connection->display($_GET);
107101

front/connection.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,7 @@
3131
use Glpi\Exception\Http\AccessDeniedHttpException;
3232
use GlpiPlugin\Connections\Connection;
3333

34-
Html::header(
35-
__('Connections', 'connections'),
36-
$_SERVER["PHP_SELF"],
37-
"assets",
38-
"pluginconnectionsconnection",
39-
""
40-
);
34+
Html::header(Connection::getTypeName(2), '', "assets", Connection::class);
4135

4236
$Connection = new Connection();
4337

0 commit comments

Comments
 (0)