Standardize and update code

This commit is contained in:
Philippe GRAND
2018-09-11 10:36:39 +02:00
parent f0a3d64492
commit b4cbb0561d
6 changed files with 21 additions and 21 deletions

View File

@@ -194,9 +194,10 @@ function dol_print_file($langs,$filename,$searchalt=0)
*/
function dol_print_object_info($object, $usetable=0)
{
global $langs,$db;
$langs->load("other");
$langs->load("admin");
global $langs, $db;
// Load translation files required by the page
$langs->loadLangs(array('other', 'admin'));
include_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';