Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-02-12 19:00:50 +01:00
parent 666d03f596
commit f1500281ef
4 changed files with 13 additions and 7 deletions

View File

@ -488,7 +488,8 @@ if ($sql_select)
$description=(! empty($conf->global->PRODUIT_DESC_IN_FORM)?'':dol_htmlentitiesbr($objp->description));
}
if (($objp->info_bits & 2) == 2) {
if (($objp->info_bits & 2) == 2)
{
print '<a href="'.DOL_URL_ROOT.'/comm/remx.php?id='.$object->id.'">';
$txt='';
print img_object($langs->trans("ShowReduc"), 'reduc').' ';

View File

@ -1104,8 +1104,7 @@ if ($action == 'create' || $action == 'adduserldap')
{
print '<tr><td>' . $form->editfieldkey('Categories', 'usercats', '', $object, 0) . '</td><td colspan="3">';
$cate_arbo = $form->select_all_categories('user', null, 'parent', null, null, 1);
print $form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null,
null, '90%' );
print $form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null, null, '90%');
print "</td></tr>";
}

View File

@ -190,6 +190,8 @@ function getCategory($authentication, $id)
{
global $db,$conf,$langs;
$nbmax = 10;
dol_syslog("Function: getCategory login=".$authentication['login']." id=".$id);
if ($authentication['entity']) $conf->entity=$authentication['entity'];
@ -228,7 +230,7 @@ function getCategory($authentication, $id)
//'visible'=>$categorie->visible,
'type' => $categorie->type,
'dir' => $pdir,
'photos' => $categorie->liste_photos($dir, $nbmax=10)
'photos' => $categorie->liste_photos($dir, $nbmax)
);
$cats = $categorie->get_filles();
@ -248,7 +250,7 @@ function getCategory($authentication, $id)
//'visible'=>$fille->visible,
'type'=>$fille->type,
'dir' => $pdir,
'photos' => $fille->liste_photos($dir, $nbmax=10)
'photos' => $fille->liste_photos($dir, $nbmax)
);
}
}

View File

@ -337,6 +337,8 @@ function getProductOrService($authentication, $id = '', $ref = '', $ref_ext = ''
{
global $db,$conf,$langs;
$nbmax = 10;
dol_syslog("Function: getProductOrService login=".$authentication['login']." id=".$id." ref=".$ref." ref_ext=".$ref_ext);
$langcode=($lang?$lang:(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT));
@ -417,7 +419,7 @@ function getProductOrService($authentication, $id = '', $ref = '', $ref_ext = ''
'pmp' => $product->pmp,
'import_key' => $product->import_key,
'dir' => $pdir,
'images' => $product->liste_photos($dir, $nbmax=10)
'images' => $product->liste_photos($dir, $nbmax)
);
//Retreive all extrafield for thirdsparty
@ -1001,6 +1003,8 @@ function getProductsForCategory($authentication, $id, $lang = '')
{
global $db,$conf,$langs;
$nbmax = 10;
$langcode=($lang?$lang:(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT));
$langs->setDefaultLang($langcode);
@ -1086,7 +1090,7 @@ function getProductsForCategory($authentication, $id, $lang = '')
'pmp' => $obj->pmp,
'import_key' => $obj->import_key,
'dir' => $pdir,
'images' => $obj->liste_photos($dir, $nbmax=10)
'images' => $obj->liste_photos($dir, $nbmax)
);
//Retreive all extrafield for thirdsparty