RCFilters: Output namespace class on log actions as well
authorMoriel Schottlender <moriel@gmail.com>
Thu, 14 Sep 2017 00:18:11 +0000 (17:18 -0700)
committerMoriel Schottlender <moriel@gmail.com>
Thu, 14 Sep 2017 00:18:11 +0000 (17:18 -0700)
Bug: T174732
Change-Id: Icaf7117d9566bb2bb31c69cf86078491d6c217cc

includes/changes/ChangesList.php

index cac4769..bc50096 100644 (file)
@@ -182,9 +182,9 @@ class ChangesList extends ContextSource {
                        $classes[] = self::CSS_CLASS_PREFIX . 'edit';
                        $classes[] = Sanitizer::escapeClass( self::CSS_CLASS_PREFIX . 'ns' .
                                $rc->mAttribs['rc_namespace'] . '-' . $rc->mAttribs['rc_title'] );
-                       $classes[] = Sanitizer::escapeClass( self::CSS_CLASS_PREFIX . 'ns-' .
-                               $rc->mAttribs['rc_namespace'] );
                }
+               $classes[] = Sanitizer::escapeClass( self::CSS_CLASS_PREFIX . 'ns-' .
+                       $rc->mAttribs['rc_namespace'] );
 
                // Indicate watched status on the line to allow for more
                // comprehensive styling.