2
0
forked from Wavyzz/dolibarr

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

This commit is contained in:
Regis Houssin
2009-10-24 06:10:00 +00:00
parent cb380db18d
commit 960afb50ed
14 changed files with 101 additions and 101 deletions

View File

@@ -927,7 +927,7 @@ function version_os()
phpinfo();
$chaine = ob_get_contents();
ob_end_clean();
preg_match('/System </td><td class="v">([^<]*)</td>/i',$chaine,$reg);
preg_match('/System <\/td><td class="v">([^<]*)<\/td>/i',$chaine,$reg);
$osversion=$reg[1];
return $osversion;
}