X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogFormatter.php;h=54f2d5880677d1686af402bec7e146903da54382;hb=a93cf8f4eee40a448bcd99b8fe1c32dc80775b6b;hp=bc0491f4cf01de4f414edf1c942e50c04d617aa4;hpb=a54c5ba2befabe60aa4c78a57b4d6b3cf2c81628;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index bc0491f4cf..54f2d58806 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -19,7 +19,7 @@ * * @file * @author Niklas Laxström - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + * @license GPL-2.0-or-later * @since 1.19 */ use MediaWiki\Linker\LinkRenderer; @@ -108,6 +108,12 @@ class LogFormatter { */ private $linkRenderer; + /** + * @see LogFormatter::getMessageParameters + * @var array + */ + protected $parsedParameters; + protected function __construct( LogEntry $entry ) { $this->entry = $entry; $this->context = RequestContext::getMain(); @@ -371,7 +377,7 @@ class LogFormatter { // new key (5::duration/6::flags) or old key (0/optional 1) if ( $entry->isLegacy() ) { $rawDuration = $parameters[0]; - $rawFlags = isset( $parameters[1] ) ? $parameters[1] : ''; + $rawFlags = $parameters[1] ?? ''; } else { $rawDuration = $parameters['5::duration']; $rawFlags = $parameters['6::flags'];