2
0
forked from Wavyzz/dolibarr

Including other.lang in files using FeaturesSupported string, also removed duplicated code

This commit is contained in:
Marcos García
2012-07-30 20:39:47 +02:00
parent a71840bbd9
commit 237d7b744c
9 changed files with 13 additions and 5 deletions

View File

@@ -36,6 +36,7 @@ require_once(DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php');
$langs->load("admin");
$langs->load("errors");
$langs->load("orders");
$langs->load('other');
if (! $user->admin) accessforbidden();
@@ -289,7 +290,7 @@ foreach ($dirmodels as $reldir)
// Show example of numbering module
print '<td nowrap="nowrap">';
$tmp=$module->getExample();
if (preg_match('/^Error/',$tmp)) { $langs->load("errors"); print '<div class="error">'.$langs->trans($tmp).'</div>'; }
if (preg_match('/^Error/',$tmp)) print '<div class="error">'.$langs->trans($tmp).'</div>';
elseif ($tmp=='NotConfigured') print $langs->trans($tmp);
else print $tmp;
print '</td>'."\n";