Skip to content

Commit

Permalink
Standardize and update code
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Sep 16, 2018
1 parent 120f823 commit cd8e0aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions htdocs/fourn/commande/index.php
Expand Up @@ -34,8 +34,8 @@
if ($user->societe_id) $socid=$user->societe_id;
$result = restrictedArea($user, 'fournisseur', $orderid, '', 'commande');

$langs->load("suppliers");
$langs->load("orders");
// Load translation files required by the page
$langs->loadLangs(array("suppliers", "orders"));


/*
Expand Down
6 changes: 2 additions & 4 deletions htdocs/fourn/commande/info.php
Expand Up @@ -33,10 +33,8 @@
require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php';
}

$langs->load("orders");
$langs->load("suppliers");
$langs->load("companies");
$langs->load('stocks');
// Load translation files required by the page
$langs->loadLangs(array("suppliers", "orders", "companies", "stocks"));

$id=GETPOST('id','int');
$ref=GETPOST('ref','alpha');
Expand Down

0 comments on commit cd8e0aa

Please sign in to comment.