Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin
2009-10-21 17:42:31 +00:00
parent 47670f5f97
commit a62ef03fa9
23 changed files with 141 additions and 138 deletions

View File

@@ -104,7 +104,7 @@ function commande_prepare_head($commande)
{
$values=explode(':',$value);
if ($values[2]) $langs->load($values[2]);
$head[$h][0] = eregi_replace('__ID__',$commande->id,$values[3]);
$head[$h][0] = preg_replace('/__ID__/i',$commande->id,$values[3]);
$head[$h][1] = $langs->trans($values[1]);
$head[$h][2] = 'tab'.$values[1];
$h++;