summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorblizzz <blizzz@owncloud.com>2015-07-16 11:35:25 +0200
committerblizzz <blizzz@owncloud.com>2015-07-16 11:35:25 +0200
commitbfb90d10edfc863213522c704f7d0b8bad8c8646 (patch)
treec5db88dab3beb85fb320d7249b8f436dd5f20e14 /lib/public/util.php
parentdce462c28db1d5e5b144efcfb26a466bd290621c (diff)
parent472d48f6e32168bb7309a4869e469eb305d95f14 (diff)
downloadnextcloud-server-bfb90d10edfc863213522c704f7d0b8bad8c8646.tar.gz
nextcloud-server-bfb90d10edfc863213522c704f7d0b8bad8c8646.zip
Merge pull request #17046 from nicolas-grekas/fix-16654
Do not use OC*::mb_*_replace(), they are useless
Diffstat (limited to 'lib/public/util.php')
-rw-r--r--lib/public/util.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 06ad5de60ca..c32668b14a8 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));