Merge pull request #12110 from aspangaro/10.0_holiday
lang file for holidays is holiday
This commit is contained in:
commit
d87a1e39a6
@ -96,7 +96,7 @@ class ModelNumRefHolidays
|
||||
public function info()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("holidays");
|
||||
$langs->load("holiday");
|
||||
return $langs->trans("NoDescription");
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ class ModelNumRefHolidays
|
||||
public function getExample()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("holidays");
|
||||
$langs->load("holiday");
|
||||
return $langs->trans("NoExample");
|
||||
}
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/holiday.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('other', 'holidays', 'companies'));
|
||||
$langs->loadLangs(array('other', 'holiday', 'companies'));
|
||||
|
||||
$id = GETPOST('id', 'int');
|
||||
$ref = GETPOST('ref', 'alpha');
|
||||
@ -48,8 +48,6 @@ $confirm = GETPOST('confirm', 'alpha');
|
||||
if ($user->societe_id) $socid=$user->societe_id;
|
||||
$result = restrictedArea($user, 'holiday', $id, 'holiday');
|
||||
|
||||
$langs->load("holiday");
|
||||
|
||||
// Get parameters
|
||||
$sortfield = GETPOST('sortfield', 'alpha');
|
||||
$sortorder = GETPOST('sortorder', 'alpha');
|
||||
|
||||
@ -35,7 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('users', 'holidays', 'hrm'));
|
||||
$langs->loadLangs(array('users', 'holiday', 'hrm'));
|
||||
|
||||
// Protection if external user
|
||||
if ($user->societe_id > 0) accessforbidden();
|
||||
|
||||
@ -218,7 +218,7 @@ if (empty($user->societe_id))
|
||||
'askprice',
|
||||
'projects',
|
||||
'expensereports',
|
||||
'holidays',
|
||||
'holiday',
|
||||
'donations'
|
||||
);
|
||||
// Dashboard Icon lines
|
||||
|
||||
Loading…
Reference in New Issue
Block a user