X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FLinksUpdate.php;h=141888cda6e2a241de1791caee6275826696a347;hb=62f7cdc33169d8abf590e8e2f70c8ddf43aeec14;hp=39e8bd989e8f474dccd8ca8c9c7350efce8bec16;hpb=fc17ad555c430ece410264ecbd2d425765e720d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index 39e8bd989e..141888cda6 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -141,14 +141,9 @@ class LinksUpdate extends DataUpdate implements EnqueueableDataUpdate { } foreach ( $this->mCategories as &$sortkey ) { - # If the sortkey is longer then 255 bytes, - # it truncated by DB, and then doesn't get - # matched when comparing existing vs current - # categories, causing T27254. - # Also. substr behaves weird when given "". - if ( $sortkey !== '' ) { - $sortkey = substr( $sortkey, 0, 255 ); - } + # If the sortkey is longer then 255 bytes, it is truncated by DB, and then doesn't match + # when comparing existing vs current categories, causing T27254. + $sortkey = mb_strcut( $sortkey, 0, 255 ); } $this->mRecursive = $recursive;