Merge "Ability to create tests with nested modules"
[lhc/web/wiklou.git] / includes / Sanitizer.php
index 5aaa3ed..8920e92 100644 (file)
@@ -1207,7 +1207,7 @@ class Sanitizer {
                ];
 
                $id = urlencode( strtr( $id, ' ', '_' ) );
-               $id = str_replace( array_keys( $replace ), array_values( $replace ), $id );
+               $id = strtr( $id, $replace );
 
                if ( !preg_match( '/^[a-zA-Z]/', $id ) && !in_array( 'noninitial', $options ) ) {
                        // Initial character must be a letter!