diff --git a/.editorconfig b/.editorconfig
index 2df455f0d4f..a40a586406f 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -8,7 +8,8 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true
[*.php]
-indent_style = tab
+indent_style = space
+trim_trailing_whitespace = true
[*.js]
indent_style = tab
[*.css]
diff --git a/build/generate_filelist_xml.php b/build/generate_filelist_xml.php
index ec9ded557ff..88b194f362b 100755
--- a/build/generate_filelist_xml.php
+++ b/build/generate_filelist_xml.php
@@ -22,7 +22,7 @@
* \brief This script create a xml checksum file
*/
-if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Do not create database handler $db
+if (! defined('NOREQUIREDB')) define('NOREQUIREDB', '1'); // Do not create database handler $db
$sapi_type = php_sapi_name();
$script_file = basename(__FILE__);
@@ -45,8 +45,7 @@ require_once DOL_DOCUMENT_ROOT."/core/lib/files.lib.php";
$includecustom=0;
$includeconstants=array();
-if (empty($argv[1]))
-{
+if (empty($argv[1])) {
print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
print "Example: ".$script_file." release=6.0.0 includecustom=1 includeconstant=FR:INVOICE_CAN_ALWAYS_BE_REMOVED:0 includeconstant=all:MAILING_NO_USING_PHPMAIL:1\n";
exit -1;
@@ -54,14 +53,11 @@ if (empty($argv[1]))
parse_str($argv[1]);
$i=0;
-while ($i < $argc)
-{
+while ($i < $argc) {
if (! empty($argv[$i])) parse_str($argv[$i]);
- if (preg_match('/includeconstant=/',$argv[$i]))
- {
+ if (preg_match('/includeconstant=/', $argv[$i])) {
$tmp=explode(':', $includeconstant, 3);
- if (count($tmp) != 3)
- {
+ if (count($tmp) != 3) {
print "Error: Bad parameter includeconstant ".$includeconstant."\n";
exit -1;
}
@@ -70,50 +66,39 @@ while ($i < $argc)
$i++;
}
-if (empty($release))
-{
- print "Error: Missing release paramater\n";
- print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
- exit -1;
+if (empty($release)) {
+ print "Error: Missing release paramater\n";
+ print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
+ exit -1;
}
$savrelease = $release;
// If release is auto, we take current version
$tmpver=explode('-', $release, 2);
-if ($tmpver[0] == 'auto' || $tmpver[0] == 'autostable')
-{
- $release=DOL_VERSION;
- if ($tmpver[1] && $tmpver[0] == 'auto') $release.='-'.$tmpver[1];
+if ($tmpver[0] == 'auto' || $tmpver[0] == 'autostable') {
+ $release=DOL_VERSION;
+ if ($tmpver[1] && $tmpver[0] == 'auto') $release.='-'.$tmpver[1];
}
-if (empty($includecustom))
-{
- $tmpverbis=explode('-', $release, 2);
- if (empty($tmpverbis[1]) || $tmpver[0] == 'autostable')
- {
- if (DOL_VERSION != $tmpverbis[0] && $savrelease != 'auto')
- {
- print 'Error: When parameter "includecustom" is not set and there is no suffix in release parameter, version declared into filefunc.in.php ('.DOL_VERSION.') must be exact same value than "release" parameter ('.$tmpverbis[0].')'."\n";
- print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
- exit -1;
- }
- }
- else
- {
- $tmpverter=explode('-', DOL_VERSION, 2);
- if ($tmpverter[0] != $tmpverbis[0])
- {
- print 'Error: When parameter "includecustom" is not set, version declared into filefunc.in.php ('.DOL_VERSION.') must have value without prefix ('.$tmpverter[0].') that is exact same value than "release" parameter ('.$tmpverbis[0].')'."\n";
- print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
- exit -1;
- }
- }
-}
-else
-{
- if (! preg_match('/'.preg_quote(DOL_VERSION,'/').'-/',$release))
- {
+if (empty($includecustom)) {
+ $tmpverbis=explode('-', $release, 2);
+ if (empty($tmpverbis[1]) || $tmpver[0] == 'autostable') {
+ if (DOL_VERSION != $tmpverbis[0] && $savrelease != 'auto') {
+ print 'Error: When parameter "includecustom" is not set and there is no suffix in release parameter, version declared into filefunc.in.php ('.DOL_VERSION.') must be exact same value than "release" parameter ('.$tmpverbis[0].')'."\n";
+ print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
+ exit -1;
+ }
+ } else {
+ $tmpverter=explode('-', DOL_VERSION, 2);
+ if ($tmpverter[0] != $tmpverbis[0]) {
+ print 'Error: When parameter "includecustom" is not set, version declared into filefunc.in.php ('.DOL_VERSION.') must have value without prefix ('.$tmpverter[0].') that is exact same value than "release" parameter ('.$tmpverbis[0].')'."\n";
+ print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
+ exit -1;
+ }
+ }
+} else {
+ if (! preg_match('/'.preg_quote(DOL_VERSION, '/').'-/', $release)) {
print 'Error: When parameter "includecustom" is set, version declared into filefunc.inc.php ('.DOL_VERSION.') must be used with a suffix into "release" parameter (ex: '.DOL_VERSION.'-mydistrib).'."\n";
print "Usage: ".$script_file." release=autostable|auto[-mybuild]|x.y.z[-mybuild] [includecustom=1] [includeconstant=CC:MY_CONF_NAME:value]\n";
exit -1;
@@ -123,10 +108,8 @@ else
print "Release : ".$release."\n";
print "Include custom in signature : ".$includecustom."\n";
print "Include constants in signature : ";
-foreach ($includeconstants as $countrycode => $tmp)
-{
- foreach($tmp as $constname => $constvalue)
- {
+foreach ($includeconstants as $countrycode => $tmp) {
+ foreach($tmp as $constname => $constvalue) {
print $constname.'='.$constvalue." ";
}
}
@@ -135,20 +118,18 @@ print "\n";
//$outputfile=dirname(__FILE__).'/../htdocs/install/filelist-'.$release.'.xml';
$outputdir=dirname(dirname(__FILE__)).'/htdocs/install';
print 'Delete current files '.$outputdir.'/filelist*.xml'."\n";
-dol_delete_file($outputdir.'/filelist*.xml',0,1,1);
+dol_delete_file($outputdir.'/filelist*.xml', 0, 1, 1);
$checksumconcat=array();
$outputfile=$outputdir.'/filelist-'.$release.'.xml';
-$fp = fopen($outputfile,'w');
+$fp = fopen($outputfile, 'w');
fputs($fp, ''."\n");
fputs($fp, '
\n";
// Define target dirs
@@ -93,19 +93,19 @@ class autoTranslator
$targetlangs=array();
// If we must process all languages
- $arraytmp=dol_dir_list($this->_langDir,'directories',0);
+ $arraytmp=dol_dir_list($this->_langDir, 'directories', 0);
foreach($arraytmp as $dirtmp)
{
if ($dirtmp['name'] === $this->_refLang) continue; // We discard source language
- $tmppart=explode('_',$dirtmp['name']);
- if (preg_match('/^en/i',$dirtmp['name'])) continue; // We discard en_* languages
- if (preg_match('/^fr/i',$dirtmp['name'])) continue; // We discard fr_* languages
- if (preg_match('/^es/i',$dirtmp['name'])) continue; // We discard es_* languages
- if (preg_match('/ca_ES/i',$dirtmp['name'])) continue; // We discard es_CA language
- if (preg_match('/pt_BR/i',$dirtmp['name'])) continue; // We discard pt_BR language
- if (preg_match('/nl_BE/i',$dirtmp['name'])) continue; // We discard nl_BE language
- if (preg_match('/^\./i',$dirtmp['name'])) continue; // We discard files .*
- if (preg_match('/^CVS/i',$dirtmp['name'])) continue; // We discard CVS
+ $tmppart=explode('_', $dirtmp['name']);
+ if (preg_match('/^en/i', $dirtmp['name'])) continue; // We discard en_* languages
+ if (preg_match('/^fr/i', $dirtmp['name'])) continue; // We discard fr_* languages
+ if (preg_match('/^es/i', $dirtmp['name'])) continue; // We discard es_* languages
+ if (preg_match('/ca_ES/i', $dirtmp['name'])) continue; // We discard es_CA language
+ if (preg_match('/pt_BR/i', $dirtmp['name'])) continue; // We discard pt_BR language
+ if (preg_match('/nl_BE/i', $dirtmp['name'])) continue; // We discard nl_BE language
+ if (preg_match('/^\./i', $dirtmp['name'])) continue; // We discard files .*
+ if (preg_match('/^CVS/i', $dirtmp['name'])) continue; // We discard CVS
$targetlangs[]=$dirtmp['name'];
}
//var_dump($targetlangs);
@@ -122,7 +122,7 @@ class autoTranslator
{
// No file present, we generate file
echo "File not found: " . $destPath . ". We generate it.
\n";
- $this->createTranslationFile($destPath,$my_destlang);
+ $this->createTranslationFile($destPath, $my_destlang);
}
else
{
@@ -130,18 +130,18 @@ class autoTranslator
}
// Translate lines
- $fileContentDest = file($destPath,FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
+ $fileContentDest = file($destPath, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
$newlines=0;
foreach($fileContent as $line){
$key = $this->getLineKey($line);
$value = $this->getLineValue($line);
if ($key && $value)
{
- $newlines+=$this->translateFileLine($fileContentDest,$file,$key,$value,$my_destlang);
+ $newlines+=$this->translateFileLine($fileContentDest, $file, $key, $value, $my_destlang);
}
}
- $this->updateTranslationFile($destPath,$file,$my_destlang);
+ $this->updateTranslationFile($destPath, $file, $my_destlang);
echo "New translated lines: " . $newlines . "
\n";
//if ($counter ==3) die('fim');
}
@@ -220,14 +220,16 @@ class autoTranslator
}
}
- if ($key == 'CHARSET') $val=$this->_outputpagecode;
- elseif (preg_match('/^Format/',$key)) $val=$value;
- elseif ($value=='-') $val=$value;
- else
- {
+ if ($key == 'CHARSET') {
+ $val=$this->_outputpagecode;
+ } elseif (preg_match('/^Format/', $key)) {
+ $val=$value;
+ } elseif ($value=='-') {
+ $val=$value;
+ } else {
// If not translated then translate
- if ($this->_outputpagecode == 'UTF-8') $val=$this->translateTexts(array($value),substr($this->_refLang,0,2),substr($my_destlang,0,2));
- else $val=utf8_decode($this->translateTexts(array($value),substr($this->_refLang,0,2),substr($my_destlang,0,2)));
+ if ($this->_outputpagecode == 'UTF-8') $val=$this->translateTexts(array($value), substr($this->_refLang, 0, 2), substr($my_destlang, 0, 2));
+ else $val=utf8_decode($this->translateTexts(array($value), substr($this->_refLang, 0, 2), substr($my_destlang, 0, 2)));
}
$val=trim($val);
@@ -246,7 +248,7 @@ class autoTranslator
*/
private function getLineKey($line)
{
- $arraykey = explode('=',$line,2);
+ $arraykey = explode('=', $line, 2);
return trim($arraykey[0]);
}
@@ -258,7 +260,7 @@ class autoTranslator
*/
private function getLineValue($line)
{
- $arraykey = explode('=',$line,2);
+ $arraykey = explode('=', $line, 2);
return trim(isset($arraykey[1])?$arraykey[1]:'');
}
@@ -272,7 +274,7 @@ class autoTranslator
{
$dir = new DirectoryIterator($this->_langDir.$lang);
while($dir->valid()) {
- if(!$dir->isDot() && $dir->isFile() && ! preg_match('/^\./',$dir->getFilename())) {
+ if(!$dir->isDot() && $dir->isFile() && ! preg_match('/^\./', $dir->getFilename())) {
$files[] = $dir->getFilename();
}
$dir->next();
@@ -291,16 +293,16 @@ class autoTranslator
private function translateTexts($src_texts, $src_lang, $dest_lang)
{
// We want to be sure that src_lang and dest_lang are using 2 chars only
- $tmp=explode('_',$src_lang);
+ $tmp=explode('_', $src_lang);
if (! empty($tmp[1]) && $tmp[0] == $tmp[1]) $src_lang=$tmp[0];
- $tmp=explode('_',$dest_lang);
+ $tmp=explode('_', $dest_lang);
if (! empty($tmp[1]) && $tmp[0] == $tmp[1]) $dest_lang=$tmp[0];
//setting language pair
$lang_pair = $src_lang.'|'.$dest_lang;
- $src_text_to_translate=preg_replace('/%s/','SSSSS',implode('',$src_texts));
- $src_text_to_translate=preg_replace('/'.preg_quote('\n\n').'/',' NNNNN ',$src_text_to_translate);
+ $src_text_to_translate=preg_replace('/%s/', 'SSSSS', implode('', $src_texts));
+ $src_text_to_translate=preg_replace('/'.preg_quote('\n\n').'/', ' NNNNN ', $src_text_to_translate);
// Define GET URL v1
//$url = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=".urlencode($src_text_to_translate)."&langpair=".urlencode($lang_pair);
@@ -337,9 +339,9 @@ class autoTranslator
}
$rep=$json['data']['translations'][0]['translatedText'];
- $rep=preg_replace('/SSSSS/i','%s',$rep);
- $rep=preg_replace('/NNNNN/i','\n\n',$rep);
- $rep=preg_replace('/'/i','\'',$rep);
+ $rep=preg_replace('/SSSSS/i', '%s', $rep);
+ $rep=preg_replace('/NNNNN/i', '\n\n', $rep);
+ $rep=preg_replace('/'/i', '\'', $rep);
//print "OK ".join('',$src_texts).' => '.$rep."\n";
diff --git a/dev/translation/autotranslator.php b/dev/translation/autotranslator.php
index c7897810a72..eb0f53ead65 100755
--- a/dev/translation/autotranslator.php
+++ b/dev/translation/autotranslator.php
@@ -90,7 +90,7 @@ if ($argv[2] != 'all')
require_once DOL_DOCUMENT_ROOT."/../dev/translation/autotranslator.class.php";
-$langParser = new autoTranslator($argv[2],$argv[1],$dir,$file,$argv[3]);
+$langParser = new autoTranslator($argv[2], $argv[1], $dir, $file, $argv[3]);
print "***** Finished *****\n";
diff --git a/dev/translation/sanity_check_en_langfiles.php b/dev/translation/sanity_check_en_langfiles.php
index 556a0fce254..4db931f7dae 100755
--- a/dev/translation/sanity_check_en_langfiles.php
+++ b/dev/translation/sanity_check_en_langfiles.php
@@ -113,7 +113,7 @@ if (empty($files))
$dups=array();
$exludefiles = array('.','..','README');
-$files = array_diff($files,$exludefiles);
+$files = array_diff($files, $exludefiles);
// To force a file: $files=array('myfile.lang');
if (isset($argv[2]))
{
@@ -128,10 +128,10 @@ foreach ($files AS $file) {
$content = file($workdir.$file);
foreach ($content AS $line => $row) {
// don't want comment lines
- if (substr($row,0,1) !== '#') {
+ if (substr($row, 0, 1) !== '#') {
// don't want lines without the separator (why should those even be here, anyway...)
- if (strpos($row,'=')!==false) {
- $row_array = explode('=',$row); // $row_array[0] = key
+ if (strpos($row, '=')!==false) {
+ $row_array = explode('=', $row); // $row_array[0] = key
$langstrings_3d[$path_file['basename']][$line+1]=$row_array[0];
$langstrings_3dtrans[$path_file['basename']][$line+1]=$row_array[1];
$langstrings_full[]=$row_array[0];
@@ -355,7 +355,7 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
$search = '-e "\''.$value.'\'" -e \'"'.$value.'"\' -e "('.$value.')" -e "('.$value.',"';
$string = 'grep -R -m 1 -F --exclude=includes/* --include=*.php '.$search.' '.$htdocs.'* '.$scripts.'*';
//print $string."
\n";
- exec($string,$output);
+ exec($string, $output);
if (empty($output)) {
$unused[$value] = $line;
echo $line; // $trad contains the \n
@@ -372,7 +372,7 @@ if ((! empty($_REQUEST['unused']) && $_REQUEST['unused'] == 'true') || (isset($a
{
$filetosave='/tmp/'.($argv[2]?$argv[2]:"").'notused.lang';
print "Strings in en_US that are never used are saved into file ".$filetosave.":\n";
- file_put_contents($filetosave, implode("",$unused));
+ file_put_contents($filetosave, implode("", $unused));
print "To remove from original file, run command :\n";
if (($argv[2]?$argv[2]:"")) print 'cd htdocs/langs/en_US; mv '.($argv[2]?$argv[2]:"")." ".($argv[2]?$argv[2]:"").".tmp; ";
print "diff ".($argv[2]?$argv[2]:"").".tmp ".$filetosave." | grep \< | cut -b 3- > ".($argv[2]?$argv[2]:"");
diff --git a/dev/translation/strip_language_file.php b/dev/translation/strip_language_file.php
index 685626d6c11..d439397a512 100755
--- a/dev/translation/strip_language_file.php
+++ b/dev/translation/strip_language_file.php
@@ -81,14 +81,14 @@ if ($filesToProcess == 'all')
{
$dir = new DirectoryIterator('htdocs/langs/'.$lPrimary);
while($dir->valid()) {
- if(!$dir->isDot() && $dir->isFile() && ! preg_match('/^\./',$dir->getFilename())) {
+ if(!$dir->isDot() && $dir->isFile() && ! preg_match('/^\./', $dir->getFilename())) {
$files[] = $dir->getFilename();
}
$dir->next();
}
$filesToProcess=$files;
}
-else $filesToProcess=explode(',',$filesToProcess);
+else $filesToProcess=explode(',', $filesToProcess);
// Arguments should be OK here.
@@ -256,7 +256,7 @@ foreach($filesToProcess as $fileToProcess)
print "Read Primary File $lPrimaryFile and write ".$output.":\n";
- fwrite($oh, "# Dolibarr language file - Source file is en_US - ".(preg_replace('/\.lang$/','',$fileToProcess))."\n");
+ fwrite($oh, "# Dolibarr language file - Source file is en_US - ".(preg_replace('/\.lang$/', '', $fileToProcess))."\n");
$cnt = 0;
while (($line = fgets($handle)) !== false)
@@ -306,7 +306,7 @@ foreach($filesToProcess as $fileToProcess)
//print "Found primary key = ".$key."\n";
// Key not in other file
- if (in_array($key, $arrayofkeytoalwayskeep) || preg_match('/^FormatDate/',$key) || preg_match('/^FormatHour/',$key))
+ if (in_array($key, $arrayofkeytoalwayskeep) || preg_match('/^FormatDate/', $key) || preg_match('/^FormatHour/', $key))
{
//print "Key $key is a key we always want to see into secondary file (line: $cnt).\n";
}
@@ -320,7 +320,7 @@ foreach($filesToProcess as $fileToProcess)
if (
(! empty($aSecondary[$key]) && $aSecondary[$key] != $aPrimary[$key]
&& ! empty($aEnglish[$key]) && $aSecondary[$key] != $aEnglish[$key])
- || in_array($key, $arrayofkeytoalwayskeep) || preg_match('/^FormatDate/',$key) || preg_match('/^FormatHour/',$key)
+ || in_array($key, $arrayofkeytoalwayskeep) || preg_match('/^FormatDate/', $key) || preg_match('/^FormatHour/', $key)
)
{
//print "Key $key differs (aSecondary=".$aSecondary[$key].", aPrimary=".$aPrimary[$key].", aEnglish=".$aEnglish[$key].") so we add it into new secondary language (line: $cnt).\n";
diff --git a/htdocs/accountancy/admin/account.php b/htdocs/accountancy/admin/account.php
index 6a6e1f44a6a..f551cf3e716 100644
--- a/htdocs/accountancy/admin/account.php
+++ b/htdocs/accountancy/admin/account.php
@@ -32,27 +32,27 @@ require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingaccount.class.php
$langs->loadLangs(array("compta","bills","admin","accountancy","salaries"));
$mesg = '';
-$action = GETPOST('action','aZ09');
-$cancel = GETPOST('cancel','alpha');
+$action = GETPOST('action', 'aZ09');
+$cancel = GETPOST('cancel', 'alpha');
$id = GETPOST('id', 'int');
$rowid = GETPOST('rowid', 'int');
-$contextpage=GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'accountingaccountlist'; // To manage different context of search
+$contextpage=GETPOST('contextpage', 'aZ')?GETPOST('contextpage', 'aZ'):'accountingaccountlist'; // To manage different context of search
-$search_account = GETPOST('search_account','alpha');
-$search_label = GETPOST('search_label','alpha');
-$search_accountparent = GETPOST('search_accountparent','alpha');
-$search_pcgtype = GETPOST('search_pcgtype','alpha');
-$search_pcgsubtype = GETPOST('search_pcgsubtype','alpha');
+$search_account = GETPOST('search_account', 'alpha');
+$search_label = GETPOST('search_label', 'alpha');
+$search_accountparent = GETPOST('search_accountparent', 'alpha');
+$search_pcgtype = GETPOST('search_pcgtype', 'alpha');
+$search_pcgsubtype = GETPOST('search_pcgsubtype', 'alpha');
// Security check
if ($user->societe_id > 0) accessforbidden();
if (! $user->rights->accounting->chartofaccount) accessforbidden();
// Load variable for pagination
-$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
-$sortfield = GETPOST('sortfield','alpha');
-$sortorder = GETPOST('sortorder','alpha');
-$page = GETPOST('page','int');
+$limit = GETPOST('limit', 'int')?GETPOST('limit', 'int'):$conf->liste_limit;
+$sortfield = GETPOST('sortfield', 'alpha');
+$sortorder = GETPOST('sortorder', 'alpha');
+$page = GETPOST('page', 'int');
if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined, or '' or -1
$offset = $limit * $page;
$pageprev = $page - 1;
@@ -77,11 +77,11 @@ $accounting = new AccountingAccount($db);
* Actions
*/
-if (GETPOST('cancel','alpha')) { $action='list'; $massaction=''; }
-if (! GETPOST('confirmmassaction','alpha')) { $massaction=''; }
+if (GETPOST('cancel', 'alpha')) { $action='list'; $massaction=''; }
+if (! GETPOST('confirmmassaction', 'alpha')) { $massaction=''; }
$parameters=array();
-$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
+$reshook=$hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
if (empty($reshook))
@@ -90,7 +90,7 @@ if (empty($reshook))
include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php';
- if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x','alpha') ||GETPOST('button_removefilter','alpha')) // All test are required to be compatible with all browsers
+ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x', 'alpha') ||GETPOST('button_removefilter', 'alpha')) // All test are required to be compatible with all browsers
{
$search_account = "";
$search_label = "";
@@ -100,7 +100,7 @@ if (empty($reshook))
$search_array_options=array();
}
- if (GETPOST('change_chart','alpha'))
+ if (GETPOST('change_chart', 'alpha'))
{
$chartofaccounts = GETPOST('chartofaccounts', 'int');
@@ -305,13 +305,13 @@ if ($resql)
print '';
print '