Clean code

This commit is contained in:
Laurent Destailleur
2023-08-09 16:02:27 +02:00
parent 1f2a8e0df5
commit 4f63273e28
2 changed files with 5 additions and 1 deletions

View File

@@ -1177,7 +1177,7 @@ function accessforbidden($message = '', $printheader = 1, $printfooter = 1, $sho
$langs->setDefaultLang();
}
$langs->load("errors");
$langs->loadLangs(array("main", "errors"));
if ($printheader) {
if (function_exists("llxHeader")) {
@@ -1185,6 +1185,7 @@ function accessforbidden($message = '', $printheader = 1, $printfooter = 1, $sho
} elseif (function_exists("llxHeaderVierge")) {
llxHeaderVierge('');
}
print '<div style="padding: 20px">';
}
print '<div class="error">';
if (empty($message)) {
@@ -1217,6 +1218,7 @@ function accessforbidden($message = '', $printheader = 1, $printfooter = 1, $sho
}
}
if ($printfooter && function_exists("llxFooter")) {
print '</div>';
llxFooter();
}

View File

@@ -88,6 +88,8 @@ class User extends CommonObject
*/
public $statut;
public $status;
public $ldap_sid;
public $search_sid;
public $employee;