Index: trunk/extensions/CategoryMultisort/CategoryMultisort.hooks.php |
— | — | @@ -403,7 +403,7 @@ |
404 | 404 | continue; |
405 | 405 | } |
406 | 406 | list( $skn, $skv ) = $sk; |
407 | | - $skn = $this->cleanSortkey( trim( $skn ) ); |
| 407 | + $skn = $this->cleanSortkey( $skn ); |
408 | 408 | $skv = $this->cleanSortkey( $skv ); |
409 | 409 | if ( $skn ) { |
410 | 410 | $arr[$skn] = $skv; |
— | — | @@ -416,6 +416,7 @@ |
417 | 417 | function cleanSortkey( $skx ) { |
418 | 418 | global $wgContLang; |
419 | 419 | |
| 420 | + $skx = trim( $skx ); |
420 | 421 | $skx = Sanitizer::decodeCharReferences( $skx ); |
421 | 422 | $skx = str_replace( "\n", '', $skx ); |
422 | 423 | $skx = $wgContLang->convertCategoryKey( $skx ); |