X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialVersion.php;h=3ea1d03aebe6911717d98fa8f518b41ded8d61ca;hb=e7720b8f8e09287384ddee271641d1b1721318bb;hp=caa0e1fe8bcb941a7e1f6d31ef1799993594b841;hpb=eb04b990fedf02de878a73b7c40de9e60a1fa2fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index caa0e1fe8b..3ea1d03aeb 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -511,7 +511,7 @@ class SpecialVersion extends SpecialPage { // in their proper section continue; } - $authors = array_map( function( $arr ) { + $authors = array_map( function ( $arr ) { // If a homepage is set, link to it if ( isset( $arr['homepage'] ) ) { return "[{$arr['homepage']} {$arr['name']}]"; @@ -840,7 +840,7 @@ class SpecialVersion extends SpecialPage { // Finally! Create the table $html = Html::openElement( 'tr', [ 'class' => 'mw-version-ext', - 'id' => Sanitizer::escapeId( 'mw-version-ext-' . $type . '-' . $extension['name'] ) + 'id' => Sanitizer::escapeIdForAttribute( 'mw-version-ext-' . $type . '-' . $extension['name'] ) ] );