Index: binding/mediatag/class.tx_dam_tsfemediatag.php =================================================================== --- binding/mediatag/class.tx_dam_tsfemediatag.php (revision 27109) +++ binding/mediatag/class.tx_dam_tsfemediatag.php (working copy) @@ -109,7 +109,7 @@ $JSwindowParts = array(); $JSwindowParams = ''; $onClick = ''; - if ($forceTarget && ereg('^([0-9]+)x([0-9]+)(:(.*)|.*)$',$forceTarget,$JSwindowParts)) { + if ($forceTarget && preg_match('/^([0-9]+)x([0-9]+)(:(.*)|.*)$/', $forceTarget, $JSwindowParts)) { // Take all pre-configured and inserted parameters and compile parameter list, including width+height: $JSwindow_tempParamsArr = t3lib_div::trimExplode(',',strtolower($conf['JSwindow_params'].','.$JSwindowParts[4]),1); $JSwindow_paramsArr=array(); Index: class.tx_dam_browse_folder.php =================================================================== --- class.tx_dam_browse_folder.php (revision 27109) +++ class.tx_dam_browse_folder.php (working copy) @@ -355,7 +355,7 @@ // Initialize variabels: $filearray = array(); $sortarray = array(); - $path = ereg_replace('\/$','',$path); + $path = preg_replace('/\/$/', '', $path); // Find files+directories: if (@is_dir($path)) { Index: class.tx_dam_browse_media.php =================================================================== --- class.tx_dam_browse_media.php (revision 27109) +++ class.tx_dam_browse_media.php (working copy) @@ -1146,7 +1146,7 @@ $tscPID = $RTEtsConfigParts[5]; } else { $this->formFieldName = $pArr[0]; - $elementParts = explode('][', ereg_replace('\]$','',ereg_replace('^(TSFE_EDIT\[data\]\[|data\[)', '', $this->formFieldName))); + $elementParts = explode('][', preg_replace('/\]$/', '', preg_replace('/^(TSFE_EDIT\[data\]\[|data\[)/', '', $this->formFieldName))); list($tscPID,$thePid) = t3lib_BEfunc::getTSCpid(trim($elementParts[0]), trim($elementParts[1]), $thePidValue); } $this->modPageConfig = $GLOBALS['BE_USER']->getTSConfig('tx_dam.elementBrowser', t3lib_BEfunc::getPagesTSconfig($tscPID)); Index: components/class.tx_dam_selectionFolder.php =================================================================== --- components/class.tx_dam_selectionFolder.php (revision 27109) +++ components/class.tx_dam_selectionFolder.php (working copy) @@ -435,7 +435,7 @@ $treeKey = key($this->tree); // Get the key for this space $LN = ($a==$c)?'blank':'line'; - $val = ereg_replace('^\./','',$val); + $val = preg_replace('/^\.\//', '', $val); $title = $val; $path = $files_path.$val.'/'; Index: components/class.tx_dam_selectionStringSearch.php =================================================================== --- components/class.tx_dam_selectionStringSearch.php (revision 27109) +++ components/class.tx_dam_selectionStringSearch.php (working copy) @@ -177,7 +177,7 @@ // Traverse the configured columns and add all columns that can be searched: foreach($TCA[$table]['columns'] as $fieldName => $info) { - if ($info['config']['type'] === 'text' || ($info['config']['type'] === 'input' && !ereg('date|time|int',$info['config']['eval']))) { + if ($info['config']['type'] === 'text' || ($info['config']['type'] === 'input' && !preg_match('/date|time|int/', $info['config']['eval']))) { $sfields[]=$fieldName; } } Index: lib/class.tx_dam_indexing.php =================================================================== --- lib/class.tx_dam_indexing.php (revision 27109) +++ lib/class.tx_dam_indexing.php (working copy) @@ -1847,7 +1847,7 @@ // The tag name is cleaned up so only alphanumeric chars (plus -_) are in there and not longer than 100 chars either. $tagName = str_replace(':','-',$tagName); - $tagName = substr(ereg_replace('[^[:alnum:]_-]','',$tagName),0,100); + $tagName = substr(preg_replace('/[^[:alnum:]_-]/', '', $tagName), 0, 100); // If the value is an array then we will call this function recursively: if (is_array($v)) { Index: lib/class.tx_dam_querygen.php =================================================================== --- lib/class.tx_dam_querygen.php (revision 27109) +++ lib/class.tx_dam_querygen.php (working copy) @@ -541,7 +541,7 @@ // Traverse the configured columns and add all columns that can be searched: foreach($TCA[$table]['columns'] as $fieldName => $info) { - if ($info['config']['type'] === 'text' || ($info['config']['type'] === 'input' && !ereg('date|time|int',$info['config']['eval']))) { + if ($info['config']['type'] === 'text' || ($info['config']['type'] === 'input' && !preg_match('/date|time|int/', $info['config']['eval']))) { $sfields[] = $table.'.'.$fieldName; } } Index: lib/class.tx_dam_scbase.php =================================================================== --- lib/class.tx_dam_scbase.php (revision 27109) +++ lib/class.tx_dam_scbase.php (working copy) @@ -1156,7 +1156,7 @@ $parts = t3lib_div::getIndpEnv('SCRIPT_NAME'); $pString = t3lib_div::implodeArrayForUrl('',$params); - return $pString ? $parts.'?'.ereg_replace('^&','',$pString) : $parts; + return $pString ? $parts . '?' . preg_replace('/^&/', '', $pString) : $parts; } /** Index: modfunc_list_editsel/class.tx_dam_list_editsel.php =================================================================== --- modfunc_list_editsel/class.tx_dam_list_editsel.php (revision 27109) +++ modfunc_list_editsel/class.tx_dam_list_editsel.php (working copy) @@ -329,7 +329,7 @@ $opt[] = ''; foreach ($allFields as $fN) { // Field label - $fL = is_array($TCA[$table]['columns'][$fN]) ? ereg_replace(':$', '', $LANG->sL($TCA[$table]['columns'][$fN]['label'])) : '['.$fN.']'; + $fL = is_array($TCA[$table]['columns'][$fN]) ? preg_replace('/:$/', '', $LANG->sL($TCA[$table]['columns'][$fN]['label'])) : '['.$fN.']'; $opt[] = ' '; }