Fixed bug #9994: ereg* is deprecated in PHP 5.3 alpha3
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_rteapi.php
index 5a5975c..5e8a2dc 100644 (file)
@@ -196,7 +196,7 @@ class t3lib_rteapi {
         */
        function triggerField($fieldName)       {
 
-               $triggerFieldName = ereg_replace('\[([^]]+)\]$','[_TRANSFORM_\1]', $fieldName);
+               $triggerFieldName = preg_replace('/\[([^]]+)\]$/','[_TRANSFORM_\1]', $fieldName);
                return '<input type="hidden" name="'.htmlspecialchars($triggerFieldName).'" value="RTE" />';
        }
 }