dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
dad254d
)
Merge "Add class to div wrapper around category lists"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 29 Apr 2016 21:48:19 +0000
(21:48 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 29 Apr 2016 21:48:19 +0000
(21:48 +0000)
includes/CategoryViewer.php
patch
|
blob
|
history
diff --git
a/includes/CategoryViewer.php
b/includes/CategoryViewer.php
index
f749003
..
389b077
100644
(file)
--- 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', $
langA
ttribs ) . $r . '</div>';
+ $r = Html::openElement( 'div', $
a
ttribs ) . $r . '</div>';
return $r;
}