forked from Wavyzz/dolibarr
Standardize and update call to langs
This commit is contained in:
@@ -25,9 +25,8 @@
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("install");
|
||||
$langs->load("other");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("install","other","admin"));
|
||||
|
||||
if (! $user->admin)
|
||||
accessforbidden();
|
||||
|
||||
Reference in New Issue
Block a user