X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate%2Fsrc%2FPlugin%2Fmigrate%2Fprocess%2FMakeUniqueBase.php;h=861a6b6f8890dcfa7a4e9c0aa96eb07a5cab2eda;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=a69fa654b26034b7d696893a60d625aadff75223;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/migrate/src/Plugin/migrate/process/MakeUniqueBase.php b/web/core/modules/migrate/src/Plugin/migrate/process/MakeUniqueBase.php index a69fa654b..861a6b6f8 100644 --- a/web/core/modules/migrate/src/Plugin/migrate/process/MakeUniqueBase.php +++ b/web/core/modules/migrate/src/Plugin/migrate/process/MakeUniqueBase.php @@ -6,7 +6,6 @@ use Drupal\migrate\ProcessPluginBase; use Drupal\migrate\MigrateExecutableInterface; use Drupal\migrate\Row; use Drupal\migrate\MigrateException; -use Drupal\Component\Utility\Unicode; /** * This plugin ensures the source value is unique. @@ -56,7 +55,7 @@ abstract class MakeUniqueBase extends ProcessPluginBase { throw new MigrateException('The character length configuration key should be an integer. Omit this key to capture the entire string.'); } // Use optional start or length to return a portion of the unique value. - $value = Unicode::substr($value, $start, $length); + $value = mb_substr($value, $start, $length); $new_value = $value; while ($this->exists($new_value)) { $new_value = $value . $postfix . $i++;