Skip to content

Commit

Permalink
drop includes
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Jul 31, 2024
1 parent 204e296 commit dee95e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions ajax/asset/customfield.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@
use Glpi\Application\View\TemplateRenderer;
use Glpi\Asset\CustomField;

/** @var bool|null $AJAX_INCLUDE */
global $AJAX_INCLUDE;

$AJAX_INCLUDE = 1;
include('../../inc/includes.php');
/** @var $this \Glpi\Controller\LegacyFileLoadController */
$this->setAjax();

Session::checkRight(CustomField::$rightname, READ);

Expand Down
2 changes: 0 additions & 2 deletions front/asset/customfield.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

use Glpi\Asset\CustomField;

include('../../inc/includes.php');

$custom_field = new CustomField();

if (isset($_POST["add"])) {
Expand Down

0 comments on commit dee95e1

Please sign in to comment.