From f5605bdd7d3c37786ecad1935e122002d3b6c9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 26 May 2018 20:51:17 +0200 Subject: [PATCH] loadlangs --- htdocs/cron/admin/cron.php | 6 +++--- htdocs/cron/card.php | 5 ++--- htdocs/cron/info.php | 6 +++--- htdocs/cron/list.php | 5 +++-- htdocs/dav/fileserver.php | 1 + htdocs/don/admin/donation.php | 6 ++---- htdocs/don/admin/donation_extrafields.php | 5 ++--- htdocs/expedition/card.php | 1 + htdocs/expedition/contact.php | 5 ++--- htdocs/expedition/document.php | 5 ++--- htdocs/expedition/index.php | 4 ++-- htdocs/expedition/list.php | 1 + htdocs/expedition/note.php | 10 ++-------- htdocs/expedition/shipment.php | 1 + htdocs/expedition/stats/index.php | 5 ++--- htdocs/expedition/tpl/linkedobjectblock.tpl.php | 1 + htdocs/expensereport/ajax/ajaxik.php | 4 ++-- htdocs/expensereport/card.php | 1 + htdocs/expensereport/document.php | 1 + htdocs/expensereport/export_csv.php | 4 ++-- htdocs/expensereport/index.php | 5 ++--- htdocs/expensereport/info.php | 1 + htdocs/expensereport/list.php | 5 ++--- htdocs/expensereport/note.php | 6 ++---- htdocs/expensereport/payment/card.php | 6 ++---- htdocs/expensereport/payment/info.php | 4 ++-- htdocs/expensereport/payment/payment.php | 5 ++--- htdocs/expensereport/stats/index.php | 4 ++-- htdocs/exports/export.php | 7 ++----- htdocs/exports/index.php | 5 +---- htdocs/externalsite/admin/externalsite.php | 6 ++---- htdocs/externalsite/frames.php | 1 + htdocs/externalsite/frametop.php | 1 + 33 files changed, 58 insertions(+), 75 deletions(-) diff --git a/htdocs/cron/admin/cron.php b/htdocs/cron/admin/cron.php index db2bebf1a14..729772bcf7e 100644 --- a/htdocs/cron/admin/cron.php +++ b/htdocs/cron/admin/cron.php @@ -29,8 +29,8 @@ $res = @include("../../main.inc.php"); // From htdocs directory require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/cron.lib.php'; -$langs->load("admin"); -$langs->load("cron"); +// Load translation files required by the page +$langs->loadLangs(array('admin', 'cron')); if (! $user->admin) accessforbidden(); @@ -147,4 +147,4 @@ if (! empty($conf->use_javascript_ajax)) } llxFooter(); -$db->close(); \ No newline at end of file +$db->close(); diff --git a/htdocs/cron/card.php b/htdocs/cron/card.php index 42a0e881512..a56f56df4c2 100644 --- a/htdocs/cron/card.php +++ b/htdocs/cron/card.php @@ -32,9 +32,8 @@ require_once DOL_DOCUMENT_ROOT."/cron/class/cronjob.class.php"; require_once DOL_DOCUMENT_ROOT."/core/class/html.formcron.class.php"; require_once DOL_DOCUMENT_ROOT.'/core/lib/cron.lib.php'; - -$langs->load("admin"); -$langs->load("cron"); +// Load translation files required by the page +$langs->loadLangs(array('admin', 'cron')); if (!$user->rights->cron->create) accessforbidden(); diff --git a/htdocs/cron/info.php b/htdocs/cron/info.php index 18bfde73bde..b851d83508f 100644 --- a/htdocs/cron/info.php +++ b/htdocs/cron/info.php @@ -26,8 +26,8 @@ require_once DOL_DOCUMENT_ROOT."/cron/class/cronjob.class.php"; require_once DOL_DOCUMENT_ROOT.'/core/lib/cron.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; -$langs->load("admin"); -$langs->load("cron"); +// Load translation files required by the page +$langs->loadLangs(array('admin', 'cron')); // Security check if (!$user->rights->cron->read) accessforbidden(); @@ -67,4 +67,4 @@ print ''; print ''; llxFooter(); -$db->close(); \ No newline at end of file +$db->close(); diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php index 61b31d37131..8d4fe0d4cdb 100644 --- a/htdocs/cron/list.php +++ b/htdocs/cron/list.php @@ -25,10 +25,11 @@ require '../main.inc.php'; -require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php"); -require_once DOL_DOCUMENT_ROOT."/cron/class/cronjob.class.php"; +require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/cron/class/cronjob.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/cron.lib.php'; +// Load translation files required by the page $langs->loadLangs(array("admin","cron","bills")); if (!$user->rights->cron->read) accessforbidden(); diff --git a/htdocs/dav/fileserver.php b/htdocs/dav/fileserver.php index cd19fc294ec..0f5f365336b 100644 --- a/htdocs/dav/fileserver.php +++ b/htdocs/dav/fileserver.php @@ -43,6 +43,7 @@ if(isset($_SERVER['PHP_AUTH_USER']) && $_SERVER['PHP_AUTH_USER']!='') $user->getrights(); } +// Load translation files required by the page $langs->loadLangs(array("main","other")); diff --git a/htdocs/don/admin/donation.php b/htdocs/don/admin/donation.php index f471ffd7ce7..600a98b8f4f 100644 --- a/htdocs/don/admin/donation.php +++ b/htdocs/don/admin/donation.php @@ -31,10 +31,8 @@ require_once DOL_DOCUMENT_ROOT . '/don/class/don.class.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php'; if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT . '/core/class/html.formaccounting.class.php'; -$langs->load("admin"); -$langs->load("donations"); -$langs->load("accountancy"); -$langs->load('other'); +// Load translation files required by the page +$langs->loadLangs(array('admin', 'donations', 'accountancy', 'other')); if (!$user->admin) accessforbidden(); diff --git a/htdocs/don/admin/donation_extrafields.php b/htdocs/don/admin/donation_extrafields.php index cc4078cfdbe..c819cde1e08 100644 --- a/htdocs/don/admin/donation_extrafields.php +++ b/htdocs/don/admin/donation_extrafields.php @@ -26,9 +26,8 @@ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/donation.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; -$langs->load("companies"); -$langs->load("admin"); -$langs->load('donations'); +// Load translation files required by the page +$langs->loadLangs(array('companies', 'admin', 'donations')); $extrafields = new ExtraFields($db); $form = new Form($db); diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index ddf819ad692..d3093fc56c1 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -52,6 +52,7 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php'; } +// Load translation files required by the page $langs->loadLangs(array("sendings","companies","bills",'deliveries','orders','stocks','other','propal')); if (!empty($conf->incoterm->enabled)) $langs->load('incoterm'); diff --git a/htdocs/expedition/contact.php b/htdocs/expedition/contact.php index 01807432343..3f557059600 100644 --- a/htdocs/expedition/contact.php +++ b/htdocs/expedition/contact.php @@ -34,9 +34,8 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php'; } -$langs->load("orders"); -$langs->load("sendings"); -$langs->load("companies"); +// Load translation files required by the page +$langs->loadLangs(array('orders', 'sendings', 'companies')); $id=GETPOST('id','int'); $ref=GETPOST('ref','alpha'); diff --git a/htdocs/expedition/document.php b/htdocs/expedition/document.php index 48c551bb7d1..4f9616df5ed 100644 --- a/htdocs/expedition/document.php +++ b/htdocs/expedition/document.php @@ -37,9 +37,8 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php'; } - -$langs->load('companies'); -$langs->load('other'); +// Load translation files required by the page +$langs->loadLangs(array('companies', 'other')); $action = GETPOST('action','aZ09'); $confirm = GETPOST('confirm'); diff --git a/htdocs/expedition/index.php b/htdocs/expedition/index.php index ebfe9a0f434..042d107b58e 100644 --- a/htdocs/expedition/index.php +++ b/htdocs/expedition/index.php @@ -27,8 +27,8 @@ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php'; require_once DOL_DOCUMENT_ROOT.'/expedition/class/expedition.class.php'; -$langs->load("orders"); -$langs->load("sendings"); +// Load translation files required by the page +$langs->loadLangs(array('orders', 'sendings')); /* * View diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php index 5dd8a720fb2..818bf0179de 100644 --- a/htdocs/expedition/list.php +++ b/htdocs/expedition/list.php @@ -30,6 +30,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; +// Load translation files required by the page $langs->loadLangs(array("sendings","deliveries",'companies','bills')); $contextpage= GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'shipmentlist'; // To manage different context of search diff --git a/htdocs/expedition/note.php b/htdocs/expedition/note.php index cb123360288..fafaf10fe1f 100644 --- a/htdocs/expedition/note.php +++ b/htdocs/expedition/note.php @@ -32,14 +32,8 @@ if (! empty($conf->projet->enabled)) { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php'; } -$langs->load("sendings"); -$langs->load("companies"); -$langs->load("bills"); -$langs->load('deliveries'); -$langs->load('orders'); -$langs->load('stocks'); -$langs->load('other'); -$langs->load('propal'); +// Load translation files required by the page +$langs->loadLangs(array('sendings', 'companies', 'bills', 'deliveries', 'orders', 'stocks', 'other', 'propal')); $id=(GETPOST('id','int')?GETPOST('id','int'):GETPOST('facid','int')); // For backward compatibility $ref=GETPOST('ref','alpha'); diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php index ac1368660da..9dd4b5e81ba 100644 --- a/htdocs/expedition/shipment.php +++ b/htdocs/expedition/shipment.php @@ -39,6 +39,7 @@ if (! empty($conf->stock->enabled)) require_once DOL_DOCUMENT_ROOT.'/product/st if (! empty($conf->propal->enabled)) require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php'; if (! empty($conf->product->enabled) || ! empty($conf->service->enabled)) require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php'; +// Load translation files required by the page $langs->loadLangs(array('orders',"companies","bills",'propal','deliveries','stocks',"productbatch",'incoterm')); $id=GETPOST('id','int'); // id of order diff --git a/htdocs/expedition/stats/index.php b/htdocs/expedition/stats/index.php index 9d7d77cf290..651be627b78 100644 --- a/htdocs/expedition/stats/index.php +++ b/htdocs/expedition/stats/index.php @@ -46,9 +46,8 @@ $year = GETPOST('year')>0?GETPOST('year'):$nowyear; $startyear=$year-1; $endyear=$year; -$langs->load("sendings"); -$langs->load("other"); -$langs->load("companies"); +// Load translation files required by the page +$langs->loadLangs(array('sendings', 'other', 'companies')); /* diff --git a/htdocs/expedition/tpl/linkedobjectblock.tpl.php b/htdocs/expedition/tpl/linkedobjectblock.tpl.php index e62356066e5..dacf9417313 100644 --- a/htdocs/expedition/tpl/linkedobjectblock.tpl.php +++ b/htdocs/expedition/tpl/linkedobjectblock.tpl.php @@ -34,6 +34,7 @@ global $user; $langs = $GLOBALS['langs']; $linkedObjectBlock = $GLOBALS['linkedObjectBlock']; +// Load translation files required by the page $langs->load("sendings"); $total=0; $ilink=0; diff --git a/htdocs/expensereport/ajax/ajaxik.php b/htdocs/expensereport/ajax/ajaxik.php index 04baab6d7a0..59c8c51fece 100644 --- a/htdocs/expensereport/ajax/ajaxik.php +++ b/htdocs/expensereport/ajax/ajaxik.php @@ -34,8 +34,8 @@ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport_ik.class.php'; -$langs->load('errors'); -$langs->load('trips'); +// Load translation files required by the page +$langs->loadlangs(array('errors', 'trips')); /* * View diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index d17ae2eb095..f2594f85f82 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -44,6 +44,7 @@ if (! empty($conf->accounting->enabled)) { require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingjournal.class.php'; } +// Load translation files required by the page $langs->loadLangs(array("trips","bills","mails")); $action=GETPOST('action','aZ09'); diff --git a/htdocs/expensereport/document.php b/htdocs/expensereport/document.php index 67f074d7f92..f0d61d0f80d 100644 --- a/htdocs/expensereport/document.php +++ b/htdocs/expensereport/document.php @@ -34,6 +34,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php'; +// Load translation files required by the page $langs->loadLangs(array("other","trips","companies","interventions")); $id = GETPOST('id','int'); diff --git a/htdocs/expensereport/export_csv.php b/htdocs/expensereport/export_csv.php index 26df07cbcfb..4bc461b4d13 100644 --- a/htdocs/expensereport/export_csv.php +++ b/htdocs/expensereport/export_csv.php @@ -25,8 +25,8 @@ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT . '/core/class/html.formfile.class.php'; require_once DOL_DOCUMENT_ROOT . '/expensereport/class/expensereport.class.php'; -$langs->load("users"); -$langs->load("trips"); +// Load translation files required by the page +$langs->loadlangs(array('users', 'trips')); if(!$user->rights->expensereport->export_csv) { accessforbidden(); diff --git a/htdocs/expensereport/index.php b/htdocs/expensereport/index.php index 5fba738809a..0d988e4850d 100644 --- a/htdocs/expensereport/index.php +++ b/htdocs/expensereport/index.php @@ -30,9 +30,8 @@ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT . '/compta/tva/class/tva.class.php'; require_once DOL_DOCUMENT_ROOT . '/expensereport/class/expensereport.class.php'; -$langs->load("companies"); -$langs->load("users"); -$langs->load("trips"); +// Load translation files required by the page +$langs->loadLangs(array('companies', 'users', 'trips')); // Security check $socid = GETPOST('socid','int'); diff --git a/htdocs/expensereport/info.php b/htdocs/expensereport/info.php index 6c2410aaa98..6babfcd647c 100644 --- a/htdocs/expensereport/info.php +++ b/htdocs/expensereport/info.php @@ -28,6 +28,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php'; +// Load translation files required by the page $langs->load("trips"); // Security check diff --git a/htdocs/expensereport/list.php b/htdocs/expensereport/list.php index 2bc7a624514..7df4bd9e67f 100644 --- a/htdocs/expensereport/list.php +++ b/htdocs/expensereport/list.php @@ -35,9 +35,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport_ik.class.php'; -$langs->load("companies"); -$langs->load("users"); -$langs->load("trips"); +// Load translation files required by the page +$langs->loadLangs(array('companies', 'users', 'trips')); $action=GETPOST('action','aZ09'); $massaction=GETPOST('massaction','alpha'); diff --git a/htdocs/expensereport/note.php b/htdocs/expensereport/note.php index 063406b1878..7eb48443901 100644 --- a/htdocs/expensereport/note.php +++ b/htdocs/expensereport/note.php @@ -29,10 +29,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php'; -$langs->load("trips"); -$langs->load("companies"); -$langs->load("bills"); -$langs->load("orders"); +// Load translation files required by the page +$langs->loadLangs(array('trips', 'companies', 'bills', 'orders')); $id = GETPOST('id','int'); $ref=GETPOST('ref','alpha'); diff --git a/htdocs/expensereport/payment/card.php b/htdocs/expensereport/payment/card.php index 871805564c5..2876d512c52 100644 --- a/htdocs/expensereport/payment/card.php +++ b/htdocs/expensereport/payment/card.php @@ -28,10 +28,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/expensereport/modules_expenserepor require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php'; if (! empty($conf->banque->enabled)) require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'; -$langs->load('bills'); -$langs->load('banks'); -$langs->load('companies'); -$langs->load('trips'); +// Load translation files required by the page +$langs->loadLangs(array('bills', 'banks', 'companies', 'trips')); $id=GETPOST('rowid')?GETPOST('rowid','int'):GETPOST('id','int'); $action=GETPOST('action','aZ09'); diff --git a/htdocs/expensereport/payment/info.php b/htdocs/expensereport/payment/info.php index bcecc54276b..97098ef2340 100644 --- a/htdocs/expensereport/payment/info.php +++ b/htdocs/expensereport/payment/info.php @@ -29,8 +29,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/paymentexpensereport.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php'; -$langs->load("bills"); -$langs->load("trips"); +// Load translation files required by the page +$langs->loadLangs(array('bills', 'trips')); $id=GETPOST('id'); $ref=GETPOST('ref', 'alpha'); diff --git a/htdocs/expensereport/payment/payment.php b/htdocs/expensereport/payment/payment.php index 84cf798285d..380752daff9 100644 --- a/htdocs/expensereport/payment/payment.php +++ b/htdocs/expensereport/payment/payment.php @@ -27,9 +27,8 @@ require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/paymentexpensereport.class.php'; require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'; -$langs->load("bills"); -$langs->load("banks"); -$langs->load("trips"); +// Load translation files required by the page +$langs->loadLangs(array('bills', 'banks', 'trips')); $id=GETPOST("id",'int'); $ref=GETPOST('ref','alpha'); diff --git a/htdocs/expensereport/stats/index.php b/htdocs/expensereport/stats/index.php index 819f0d4d351..8e0df834a3f 100644 --- a/htdocs/expensereport/stats/index.php +++ b/htdocs/expensereport/stats/index.php @@ -27,8 +27,8 @@ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereportstats.class.php'; -$langs->load("trips"); -$langs->load("companies"); +// Load translation files required by the page +$langs->loadLangs(array('trips', 'companies')); $WIDTH=DolGraph::getDefaultGraphSizeForStats('width'); $HEIGHT=DolGraph::getDefaultGraphSizeForStats('height'); diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index 6cbc1836d0b..0a0d225e750 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -32,11 +32,8 @@ require_once DOL_DOCUMENT_ROOT.'/exports/class/export.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/export/modules_export.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; -$langs->load("exports"); -$langs->load("other"); -$langs->load("users"); -$langs->load("companies"); -$langs->load("projects"); +// Load translation files required by the page +$langs->loadlangs(array('exports', 'other', 'users', 'companies', 'projects')); // Everybody should be able to go on this page //if (! $user->admin) diff --git a/htdocs/exports/index.php b/htdocs/exports/index.php index 0fea98fcec7..01a663dc484 100644 --- a/htdocs/exports/index.php +++ b/htdocs/exports/index.php @@ -24,18 +24,15 @@ require_once '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/exports/class/export.class.php'; +// Load translation files required by the page $langs->load("exports"); - // Security check $result=restrictedArea($user,'export'); - - $export=new Export($db); $export->load_arrays($user); - /* * View */ diff --git a/htdocs/externalsite/admin/externalsite.php b/htdocs/externalsite/admin/externalsite.php index 29b840df3b8..d76c23e11b0 100644 --- a/htdocs/externalsite/admin/externalsite.php +++ b/htdocs/externalsite/admin/externalsite.php @@ -35,10 +35,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; if (!$user->admin) accessforbidden(); - -$langs->load("admin"); -$langs->load("other"); -$langs->load("externalsite"); +// Load translation files required by the page +$langs->loadLangs(array('admin', 'other', 'externalsite')); $def = array(); diff --git a/htdocs/externalsite/frames.php b/htdocs/externalsite/frames.php index 383bfb0228e..611e84fe9c3 100644 --- a/htdocs/externalsite/frames.php +++ b/htdocs/externalsite/frames.php @@ -27,6 +27,7 @@ require '../main.inc.php'; +// Load translation files required by the page $langs->load("externalsite"); diff --git a/htdocs/externalsite/frametop.php b/htdocs/externalsite/frametop.php index 3fb50ec6745..5abc4e840a3 100644 --- a/htdocs/externalsite/frametop.php +++ b/htdocs/externalsite/frametop.php @@ -24,6 +24,7 @@ require ("../main.inc.php"); +// Load translation files required by the page $langs->load("externalsite"); top_htmlhead("","");