Skip to content

Commit

Permalink
fix: single option in #drilldownlink produces error
Browse files Browse the repository at this point in the history
* Update ProcessTemplate.php

Fixing fatal error while going to Special:BrowseData/Thing?_single since $vm is null (and null values can't be concated to an array)
  • Loading branch information
YOUR1 authored Dec 8, 2023
1 parent c24361c commit e27b5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Specials/BrowseData/ProcessTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __invoke( $template, $vm ) {
$msg[ "msg_$message" ] = wfMessage( $message )->text();
}

$html = $templateParser->processTemplate( $template, $vm + $msg );
$html = $templateParser->processTemplate( $template, (array)$vm + $msg );

// Remove leading whitespace from all lines as the parser will interpret lines containing
// text starting with whitespace as preformatted text later;
Expand Down

0 comments on commit e27b5af

Please sign in to comment.