Remove usage of $_ENV

This commit is contained in:
Laurent Destailleur 2010-04-18 16:16:31 +00:00
parent 9935122b67
commit 88fd8c701e
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ print '<td>&nbsp;</td>';
print '</tr>';
// Chemin du binaire genbarcode sous linux
if (!isset($_ENV['windir']) && !file_exists($_ENV['windir']))
if (! isset($_SERVER['WINDIR']))
{
$var=!$var;
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';

View File

@ -93,7 +93,7 @@ class modPhpbarcode extends ModeleBarCode
*/
function buildBarCode($code,$encoding,$readable='Y')
{
global $_GET,$_ENV,$_SERVER;
global $_GET,$_SERVER;
global $conf;
global $genbarcode_loc, $bar_color, $bg_color, $text_color, $font_loc;