From 472d48f6e32168bb7309a4869e469eb305d95f14 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 19 Jun 2015 14:55:04 +0200 Subject: Do not use OC*::mb_*_replace(), they are useless --- lib/public/util.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/public/util.php') diff --git a/lib/public/util.php b/lib/public/util.php index 087bb639618..d7c67eaa2f5 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -542,6 +542,7 @@ class Util { * @param string $encoding The encoding parameter is the character encoding. Defaults to UTF-8 * @return string * @since 4.5.0 + * @deprecated 8.2.0 Use substr_replace() instead. */ public static function mb_substr_replace($string, $replacement, $start, $length = null, $encoding = 'UTF-8') { return(\OC_Helper::mb_substr_replace($string, $replacement, $start, $length, $encoding)); @@ -557,6 +558,7 @@ class Util { * @param int $count If passed, this will be set to the number of replacements performed. * @return string * @since 4.5.0 + * @deprecated 8.2.0 Use str_replace() instead. */ public static function mb_str_replace($search, $replace, $subject, $encoding = 'UTF-8', &$count = null) { return(\OC_Helper::mb_str_replace($search, $replace, $subject, $encoding, $count)); -- cgit v1.2.3