Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
51abe980e1
@ -120,7 +120,7 @@ class mailing_contacts1 extends MailingTargets
|
||||
*/
|
||||
public function formFilter()
|
||||
{
|
||||
global $langs;
|
||||
global $conf,$langs;
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("commercial", "companies", "suppliers", "categories"));
|
||||
@ -305,11 +305,13 @@ class mailing_contacts1 extends MailingTargets
|
||||
|
||||
$s .= ajax_combobox("filter_category_supplier_contact");
|
||||
|
||||
// Choose language
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||
$formadmin = new FormAdmin($this->db);
|
||||
$s .= '<span class="opacitymedium">'.$langs->trans("DefaultLang").':</span> ';
|
||||
$s .= $formadmin->select_language($langs->getDefaultLang(1), 'filter_lang', 0, 0, 1, 0, 0, '', 0, 0, 0, null, 1);
|
||||
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
||||
// Choose language
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||
$formadmin = new FormAdmin($this->db);
|
||||
$s .= '<span class="opacitymedium">'.$langs->trans("DefaultLang").':</span> ';
|
||||
$s .= $formadmin->select_language($langs->getDefaultLang(1), 'filter_lang', 0, null, 1, 0, 0, '', 0, 0, 0, null, 1);
|
||||
}
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user