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

This commit is contained in:
Regis Houssin
2009-10-22 15:09:04 +00:00
parent 8c9dd5dff0
commit 37c2825f93
68 changed files with 183 additions and 183 deletions

View File

@@ -240,7 +240,7 @@ class Commande extends CommonObject
$result=$soc->set_as_client();
// Define new ref
if (! $error && (eregi('^\(PROV', $this->ref) || eregi('^PROV', $this->ref)))
if (! $error && (preg_match('/^\(PROV/i', $this->ref) || preg_match('/^PROV/i', $this->ref)))
{
$num = $this->getNextNumRef($soc);
}
@@ -291,7 +291,7 @@ class Commande extends CommonObject
if (! $error)
{
// Rename directory if dir was a temporary ref
if (eregi('^\(PROV', $this->ref) || eregi('^PROV', $this->ref))
if (preg_match('/^\(PROV/i', $this->ref) || preg_match('/^PROV/i', $this->ref))
{
// On renomme repertoire ($this->ref = ancienne ref, $numfa = nouvelle ref)
// afin de ne pas perdre les fichiers attaches