Fixed bug #9994: ereg* is deprecated in PHP 5.3 alpha3
[Packages/TYPO3.CMS.git] / typo3 / class.filelistfoldertree.php
index dcc1ed0..538e679 100644 (file)
@@ -380,7 +380,7 @@ class filelistFolderTree extends t3lib_folderTree {
                        end($this->tree);
                        $treeKey = key($this->tree);    // Get the key for this space
 
-                       $val = ereg_replace('^\./','',$val);
+                       $val = preg_replace('/^\.\//','',$val);
                        $title = $val;
                        $path = $files_path.$val.'/';