Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
This commit is contained in:
commit
8352e86e00
@ -2422,7 +2422,7 @@ function dol_compress_dir($inputdir, $outputfile, $mode = "zip", $excludefiles =
|
||||
function dol_most_recent_file($dir, $regexfilter = '', $excludefilter = array('(\.meta|_preview.*\.png)$', '^\.'), $nohook = false, $mode = '')
|
||||
{
|
||||
$tmparray = dol_dir_list($dir, 'files', 0, $regexfilter, $excludefilter, 'date', SORT_DESC, $mode, $nohook);
|
||||
return $tmparray[0];
|
||||
return isset($tmparray[0])?$tmparray[0]:null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -122,7 +122,7 @@ class mailing_contacts1 extends MailingTargets
|
||||
*/
|
||||
public function formFilter()
|
||||
{
|
||||
global $langs;
|
||||
global $langs,$conf;
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("commercial", "companies", "suppliers", "categories"));
|
||||
@ -308,11 +308,12 @@ 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')) {
|
||||
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);
|
||||
}
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user