mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
replace ereg_ with str_
This commit is contained in:
parent
6d9fabe4ea
commit
83fa2e42a9
@ -313,7 +313,7 @@
|
||||
{
|
||||
//echo '<br>zip_entry_name==' . zip_entry_name($dirent);
|
||||
/* If an allowed extenstion based on conversion type */
|
||||
if(ereg($ext,zip_entry_name($dirent)))
|
||||
if(strstr(zip_entry_name($dirent),$ext))
|
||||
{
|
||||
/* Write the data to our temp file */
|
||||
$data = zip_entry_read($dirent,zip_entry_filesize($dirent));
|
||||
@ -349,8 +349,8 @@
|
||||
{
|
||||
if(substr($col,0,6) == 'extra_')
|
||||
{
|
||||
$field = ereg_replace('extra_','',$col);
|
||||
$field = ereg_replace(' ','_',$field);
|
||||
$field = str_replace('extra_','',$col);
|
||||
$field = str_replace(' ','_',$field);
|
||||
$customfields[$field] = ucfirst($field);
|
||||
}
|
||||
}
|
||||
|
@ -167,7 +167,7 @@
|
||||
sort($myfilearray);
|
||||
for($i=0;$i<count($myfilearray);$i++)
|
||||
{
|
||||
$fname = ereg_replace('_',' ',$myfilearray[$i]);
|
||||
$fname = str_replace('_',' ',$myfilearray[$i]);
|
||||
$conv .= '<OPTION VALUE="' . $myfilearray[$i].'">' . $fname . '</OPTION>';
|
||||
}
|
||||
|
||||
@ -272,7 +272,7 @@
|
||||
sort($myfilearray);
|
||||
for($i=0;$i<count($myfilearray);$i++)
|
||||
{
|
||||
$fname = ereg_replace('_',' ',$myfilearray[$i]);
|
||||
$fname = str_replace('_',' ',$myfilearray[$i]);
|
||||
$conv .= ' <option value="'.$myfilearray[$i].'">'.$fname.'</option>'."\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user