X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoryViewer.php;h=389b07747499bdbaee391d743cbcc7c1f59c934f;hb=f47b7d6afc77ad8b08ba803289852f7c11ea1905;hp=f7490033d456897991a8d7ce285d57f800297ed7;hpb=929fad38095b1e10dae3d7af385afd4bfd223c25;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index f7490033d4..389b077474 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -138,9 +138,13 @@ class CategoryViewer extends ContextSource { } $lang = $this->getLanguage(); - $langAttribs = [ 'lang' => $lang->getHtmlCode(), 'dir' => $lang->getDir() ]; + $attribs = [ + 'class' => 'mw-category-generated', + 'lang' => $lang->getHtmlCode(), + 'dir' => $lang->getDir() + ]; # put a div around the headings which are in the user language - $r = Html::openElement( 'div', $langAttribs ) . $r . ''; + $r = Html::openElement( 'div', $attribs ) . $r . ''; return $r; }