forked from Wavyzz/dolibarr
Qual: Spelling htdocs/core (#27491)
Highlights: - initialY in pdf_standard.modules.php was unused - remove (otherwise -> initially) (+same in other file)
This commit is contained in:
@@ -162,7 +162,7 @@ function versiondolibarrarray()
|
||||
* @param int $nocommentremoval Do no try to remove comments (in such a case, we consider that each line is a request, so use also $linelengthlimit=0)
|
||||
* @param int $offsetforchartofaccount Offset to use to load chart of account table to update sql on the fly to add offset to rowid and account_parent value
|
||||
* @param int $colspan 2=Add a colspan=2 on td
|
||||
* @param int $onlysqltoimportwebsite Only sql resquests used to import a website template are allowed
|
||||
* @param int $onlysqltoimportwebsite Only sql requests used to import a website template are allowed
|
||||
* @param string $database Database (replace __DATABASE__ with this value)
|
||||
* @return int Return integer <=0 if KO, >0 if OK
|
||||
*/
|
||||
@@ -880,7 +880,7 @@ function modulehelp_prepare_head($object)
|
||||
$h = 0;
|
||||
$head = array();
|
||||
|
||||
// FIX for compatibity habitual tabs
|
||||
// FIX for compatibility habitual tabs
|
||||
$object->id = $object->numero;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/admin/modulehelp.php?id=".$object->id.'&mode=desc';
|
||||
@@ -1217,7 +1217,7 @@ function activateModule($value, $withdeps = 1, $noconfverification = 0)
|
||||
}
|
||||
|
||||
if (isset($objMod->conflictwith) && is_array($objMod->conflictwith) && !empty($objMod->conflictwith)) {
|
||||
// Desactivation des modules qui entrent en conflit
|
||||
// Deactivation des modules qui entrent en conflict
|
||||
$num = count($objMod->conflictwith);
|
||||
for ($i = 0; $i < $num; $i++) {
|
||||
foreach ($modulesdir as $dir) {
|
||||
@@ -1326,7 +1326,7 @@ function complete_dictionary_with_modules(&$taborder, &$tabname, &$tablib, &$tab
|
||||
{
|
||||
global $db, $modules, $conf, $langs;
|
||||
|
||||
dol_syslog("complete_dictionary_with_modules Search external modules to complete the list of dictionnary tables", LOG_DEBUG, 1);
|
||||
dol_syslog("complete_dictionary_with_modules Search external modules to complete the list of dictionary tables", LOG_DEBUG, 1);
|
||||
|
||||
// Search modules
|
||||
$modulesdir = dolGetModulesDirs();
|
||||
@@ -1377,10 +1377,13 @@ function complete_dictionary_with_modules(&$taborder, &$tabname, &$tablib, &$tab
|
||||
}
|
||||
}
|
||||
|
||||
// phpcs:disable
|
||||
// Complete the arrays &$tabname,&$tablib,&$tabsql,&$tabsqlsort,&$tabfield,&$tabfieldvalue,&$tabfieldinsert,&$tabrowid,&$tabcond
|
||||
if (empty($objMod->dictionaries) && !empty($objMod->dictionnaries)) {
|
||||
$objMod->dictionaries = $objMod->dictionnaries; // For backward compatibility
|
||||
// Note: "diction"."naries" to prevent codespell from detecting a spelling error.
|
||||
if (empty($objMod->dictionaries) && !empty($objMod->{"dicton"."naries"})) {
|
||||
$objMod->dictionaries = $objMod->{"diction"."naries"}; // For backward compatibility
|
||||
}
|
||||
// phpcs:enable
|
||||
|
||||
if (!empty($objMod->dictionaries)) {
|
||||
//var_dump($objMod->dictionaries['tabname']);
|
||||
@@ -1668,7 +1671,7 @@ function form_constantes($tableau, $strictw3c = 0, $helptext = '', $text = 'Valu
|
||||
$form = new Form($db);
|
||||
|
||||
if (empty($strictw3c)) {
|
||||
dol_syslog("Warning: Function form_constantes is calle with parameter strictw3c = 0, this is deprecated. Value must be 2 now.", LOG_DEBUG);
|
||||
dol_syslog("Warning: Function 'form_constantes' was called with parameter strictw3c = 0, this is deprecated. Value must be 2 now.", LOG_DEBUG);
|
||||
}
|
||||
if (!empty($strictw3c) && $strictw3c == 1) {
|
||||
print "\n".'<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||
@@ -2001,7 +2004,7 @@ function phpinfo_array()
|
||||
}
|
||||
|
||||
/**
|
||||
* Return array head with list of tabs to view object informations.
|
||||
* Return array head with list of tabs to view object information.
|
||||
*
|
||||
* @return array head array with tabs
|
||||
*/
|
||||
@@ -2040,7 +2043,7 @@ function company_admin_prepare_head()
|
||||
}
|
||||
|
||||
/**
|
||||
* Return array head with list of tabs to view object informations.
|
||||
* Return array head with list of tabs to view object information.
|
||||
*
|
||||
* @return array head array with tabs
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user