Skip to content

Commit

Permalink
LuaError: Use ?: in more traditional way
Browse files Browse the repository at this point in the history
Change-Id: I68011e1420ae95127ef284d5044f9f125cc656c3
  • Loading branch information
reedy committed Oct 3, 2022
1 parent 70c21ea commit 5f007a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Engines/LuaCommon/LuaError.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public function getScriptTraceHtml( $options = [] ) {
$backtraceLineMsg = wfMessage( 'scribunto-lua-backtrace-line' )
->rawParams( "<strong>$src</strong>" )
->params( $function );
in_array( 'content', $msgOptions ) ?
$backtraceLine = $backtraceLineMsg->inContentLanguage()->parse() :
$backtraceLine = $backtraceLineMsg->parse();
$backtraceLine = in_array( 'content', $msgOptions ) ?
$backtraceLineMsg->inContentLanguage()->parse() :
$backtraceLineMsg->parse();

$s .= "<li>$backtraceLine</li>";
}
Expand Down

0 comments on commit 5f007a0

Please sign in to comment.