Style change tags correctly on log extracts
authorMatěj Suchánek <matejsuchanek97@gmail.com>
Tue, 2 Apr 2019 20:06:34 +0000 (22:06 +0200)
committerMatěj Suchánek <matejsuchanek97@gmail.com>
Tue, 2 Apr 2019 20:06:34 +0000 (22:06 +0200)
You can see them when you view a previously deleted page
and some of those events have been tagged.

Bug: T212613
Change-Id: I88e637a0ee688dd23c0ec90790e8189ecf1a8789

includes/logging/LogEventsList.php

index c66aa59..3fd52af 100644 (file)
@@ -692,6 +692,8 @@ class LogEventsList extends ContextSource {
                        $s .= $loglist->beginLogEventsList() .
                                $logBody .
                                $loglist->endLogEventsList();
+                       // add styles for change tags
+                       $context->getOutput()->addModuleStyles( 'mediawiki.interface.helpers.styles' );
                } elseif ( $showIfEmpty ) {
                        $s = Html::rawElement( 'div', [ 'class' => 'mw-warning-logempty' ],
                                $context->msg( 'logempty' )->parse() );