Standardize and update call to langs
This commit is contained in:
parent
af37b08da3
commit
035b2be2eb
@ -28,9 +28,8 @@ require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/menubase.class.php';
|
||||
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load('other');
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("other","admin"));
|
||||
|
||||
if (! $user->admin) accessforbidden();
|
||||
|
||||
|
||||
@ -27,8 +27,8 @@ require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/treeview.lib.php';
|
||||
|
||||
$langs->load("other");
|
||||
$langs->load("admin");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("other","admin"));
|
||||
|
||||
if (! $user->admin) accessforbidden();
|
||||
|
||||
|
||||
@ -24,9 +24,8 @@
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||
|
||||
$langs->load("users");
|
||||
$langs->load("admin");
|
||||
$langs->load("other");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("user","other","admin"));
|
||||
|
||||
if (! $user->admin) accessforbidden();
|
||||
|
||||
|
||||
@ -28,10 +28,8 @@ require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("help");
|
||||
$langs->load("members");
|
||||
$langs->load("other");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("help","members","other","admin"));
|
||||
|
||||
$action=GETPOST('action','alpha');
|
||||
|
||||
@ -196,7 +194,7 @@ if ($showpromotemessage)
|
||||
{
|
||||
print '<br>';
|
||||
print '<br>';
|
||||
|
||||
|
||||
if ((empty($tmp[2]) && (strpos($tmp[1], '0') === 0)) || (strpos($tmp[2], '0') === 0))
|
||||
{
|
||||
print $langs->trans("TitleExampleForMajorRelease").':<br>';
|
||||
|
||||
@ -26,9 +26,8 @@ require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.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();
|
||||
|
||||
@ -24,9 +24,8 @@
|
||||
|
||||
require '../../main.inc.php';
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("user");
|
||||
$langs->load("install");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("install","user","admin"));
|
||||
|
||||
|
||||
if (!$user->admin)
|
||||
|
||||
@ -29,9 +29,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("install");
|
||||
$langs->load("other");
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("install","other","admin"));
|
||||
|
||||
$action=GETPOST('action','alpha');
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -26,9 +26,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user