Skip to content

Commit ed360e2

Browse files
committed
feat: drop GLPI 9.4 comptability
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 7267b8b commit ed360e2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

inc/form.class.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,11 +1160,7 @@ protected function showMyLastForms() {
11601160
*/
11611161
public function displayUserForm() {
11621162
// Print css media
1163-
if (method_exists(Plugin::class, 'getWebDir')) {
1164-
$css = '/' . Plugin::getWebDir('formcreator', false) . '/css/print_form.css';
1165-
} else {
1166-
$css = '/plugins/formcreator/css/print_form.css';
1167-
}
1163+
$css = '/' . Plugin::getWebDir('formcreator', false) . '/css/print_form.css';
11681164
echo Html::css($css, ['media' => 'print']);
11691165

11701166
$style = "<style>";

inc/formlist.class.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ public static function getTypeName($nb = 0) {
4949
static function getMenuContent() {
5050
$menu = parent::getMenuContent();
5151
$menu['title'] = static::getTypeName(2);
52-
if (method_exists(Plugin::class, 'getWebDir')) {
53-
$menu['page'] = '/' . Plugin::getWebDir('formcreator', false) . '/front/formlist.php';
54-
} else {
55-
$menu['page'] = '/plugins/formcreator/front/formlist.php';
56-
}
52+
$menu['page'] = '/' . Plugin::getWebDir('formcreator', false) . '/front/formlist.php';
5753
$menu['icon'] = 'fas fa-edit';
5854
$image = '<img src="' . FORMCREATOR_ROOTDOC . '/pics/check.png"
5955
title="' . __('Forms waiting for validation', 'formcreator') . '"

0 commit comments

Comments
 (0)