mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-11 12:01:23 +01:00
fix warnings
This commit is contained in:
@@ -1317,8 +1317,8 @@ class Commande extends CommonOrder
|
|||||||
{
|
{
|
||||||
global $conf, $hookmanager;
|
global $conf, $hookmanager;
|
||||||
|
|
||||||
dol_include_once('/multicurrency/class/multicurrency.class.php');
|
require_once DOL_DOCUMENT_ROOT . '/multicurrency/class/multicurrency.class.php';
|
||||||
dol_include_once('/core/class/extrafields.class.php');
|
require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php';
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -6009,7 +6009,7 @@ class Form
|
|||||||
print '<input type="submit" class="button smallpaddingimp valignmiddle" value="' . $langs->trans("Modify") . '">';
|
print '<input type="submit" class="button smallpaddingimp valignmiddle" value="' . $langs->trans("Modify") . '">';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
} else {
|
} else {
|
||||||
dol_include_once('/core/lib/company.lib.php');
|
require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php';
|
||||||
print !empty($selected) ? currency_name($selected, 1) : ' ';
|
print !empty($selected) ? currency_name($selected, 1) : ' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
* Copyright (C) 2022 Anthony Berton <anthony.berton@bb2a.fr>
|
* Copyright (C) 2022 Anthony Berton <anthony.berton@bb2a.fr>
|
||||||
* Copyright (C) 2023-2024 William Mead <william.mead@manchenumerique.fr>
|
* Copyright (C) 2023-2024 William Mead <william.mead@manchenumerique.fr>
|
||||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||||
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -1006,7 +1007,7 @@ class Utils
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_include_once('/core/lib/files.lib.php');
|
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
||||||
|
|
||||||
$nbSaves = intval(getDolGlobalString('SYSLOG_FILE_SAVES', 10));
|
$nbSaves = intval(getDolGlobalString('SYSLOG_FILE_SAVES', 10));
|
||||||
|
|
||||||
@@ -1412,7 +1413,7 @@ class Utils
|
|||||||
dol_syslog("Utils::cleanUnfinishedCronjob Starting cleaning");
|
dol_syslog("Utils::cleanUnfinishedCronjob Starting cleaning");
|
||||||
|
|
||||||
// Import Cronjob class if not present
|
// Import Cronjob class if not present
|
||||||
dol_include_once('/cron/class/cronjob.class.php');
|
require_once DOL_DOCUMENT_ROOT . '/cron/class/cronjob.class.php';
|
||||||
|
|
||||||
// Get this job object
|
// Get this job object
|
||||||
$this_job = new Cronjob($db);
|
$this_job = new Cronjob($db);
|
||||||
|
|||||||
@@ -1615,7 +1615,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = null, $nopr
|
|||||||
$tms_start = '';
|
$tms_start = '';
|
||||||
$tms_end = '';
|
$tms_end = '';
|
||||||
}
|
}
|
||||||
dol_include_once('/comm/action/class/actioncomm.class.php');
|
require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if (!is_object($filterobj) && !is_object($objcon)) {
|
if (!is_object($filterobj) && !is_object($objcon)) {
|
||||||
|
|||||||
@@ -13129,7 +13129,7 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,
|
|||||||
|
|
||||||
global $param, $massactionbutton;
|
global $param, $massactionbutton;
|
||||||
|
|
||||||
dol_include_once('/comm/action/class/actioncomm.class.php');
|
require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if (!is_object($filterobj) && !is_object($objcon)) {
|
if (!is_object($filterobj) && !is_object($objcon)) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||||
* Copyright (C) 2018-2021 Philippe Grand <philippe.grand@atoo-net.com>
|
* Copyright (C) 2018-2021 Philippe Grand <philippe.grand@atoo-net.com>
|
||||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
* \brief File of class to build ODT documents for assets
|
* \brief File of class to build ODT documents for assets
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dol_include_once('/asset/core/modules/asset/modules_asset.php');
|
require_once DOL_DOCUMENT_ROOT . '/asset/core/modules/asset/modules_asset.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
* Copyright (C) 2012-2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
* Copyright (C) 2012-2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||||
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2017 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2017 Ferran Marcet <fmarcet@2byte.es>
|
||||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
* \brief File of class to generate document from standard template
|
* \brief File of class to generate document from standard template
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dol_include_once('/asset/core/modules/asset/modules_asset.php');
|
require_once DOL_DOCUMENT_ROOT . '/asset/core/modules/asset/modules_asset.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
* \brief File containing class for advanced numbering model of Evaluation
|
* \brief File containing class for advanced numbering model of Evaluation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
dol_include_once('/core/modules/hrm/modules_evaluation.php');
|
require_once DOL_DOCUMENT_ROOT . '/core/modules/hrm/modules_evaluation.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
* \ingroup hrm
|
* \ingroup hrm
|
||||||
* \brief File of class to manage Evaluation numbering rules standard
|
* \brief File of class to manage Evaluation numbering rules standard
|
||||||
*/
|
*/
|
||||||
dol_include_once('/core/modules/hrm/modules_evaluation.php');
|
require_once DOL_DOCUMENT_ROOT . '/core/modules/hrm/modules_evaluation.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||||
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
@@ -274,7 +275,7 @@ if (!getDolGlobalString('MAIN_EXTRAFIELDS_DISABLED')) {
|
|||||||
$socstatic = new Societe($db);
|
$socstatic = new Societe($db);
|
||||||
$elementtype = $socstatic->table_element;
|
$elementtype = $socstatic->table_element;
|
||||||
// fetch optionals attributes and labels
|
// fetch optionals attributes and labels
|
||||||
dol_include_once('/core/class/extrafields.class.php');
|
require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php';
|
||||||
$extrafields = new ExtraFields($db);
|
$extrafields = new ExtraFields($db);
|
||||||
$extrafields->fetch_name_optionals_label($elementtype);
|
$extrafields->fetch_name_optionals_label($elementtype);
|
||||||
foreach ($extrafields->attributes[$elementtype]['label'] as $key => $val) {
|
foreach ($extrafields->attributes[$elementtype]['label'] as $key => $val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user