Add `@param-taint $content escapes_htmlnoent` annotation to
TimelessTemplate::getPortlet(). See explanation on
Id8ef73f2efbe8d4d5510917d55dbac4e41b2b3a1.
Change-Id: I2fc96ed7876292dd6bd1e7f4fe799bdb6d8cdfd1
option to set configurable background image for the skin as a whole
Defaults to the cat, but can ideally be set to anything appropriate
to the wiki in question. Recommendation is a 20-50% opacity black/
white background image, where the alpha values of the b/w parts are
likewise around 10-50/255.
Bug: T193330
Change-Id: Ica3e2ce2568557ef157d06d1b7127b030f3c38f0
SkinTemplateToolboxEnd hook really shouldn't be used and extensions should have been using BaseTemplateToolbox hook instead, for that hook's been around since MW 1.18.
Also this code was broken because $boxes was undefined.
Change-Id: I34537e8eb6ec0109253b5470d12d12d86c4dada0
It's easier to read and also type hint and do a lot of
things when class properties are declared this way. I think
this is the standard way and it's an improvement :)
Also, added soft type hint phpdoc for these class properties.
Change-Id: I6f2bee7d5cd771f25241abcaebfacd6eb540175f
The custom one as-is is never going to actually be accurate due to
caching, with an implementation that was basically just a bad joke.
A more thoughtful implementation with rounding and stuff per the
winter prototype is probably in order, but that will require a
different implementation anyway (T182345)...
bug: T160647
Change-Id: Id2776d69a7d42b9907b4363977134fea48dc2440
Notably, content passed to Language::convert() needs to be escaped beforehand.
Spotted by phan-taint-check-plugin.
Change-Id: Id8a5f8bbe635e2f321882296e40dd0c41cf91a3b
modes
Mostly affects extensions that add stuff after the content with them
hook dealies, such as flaggedrevisions etc.
bug: T200729
Change-Id: I5c46af8f4cab20b04930a0e25d380ec040557bb6
Switching from a unique approach -- getting category names, querying
the database, and then building links -- to the standard
OutputPage::getCategoryLinks() fixes the display of redlinks (T175713),
display order (T197852), and perhaps other bugs in the subtasks
of T160645.
A downside to this approach is that categories will not be shown on
history pages, but this is consistent with other skins (e.g. Vector
and Monobook) not displaying categories on history pages.
Bug: T186089
Bug: T175716
Bug: T175714
Bug: T175713
Bug: T197852
Bug: T160645
Change-Id: Ifad999033e8448615128cba4d6386045a9fc749b
* display:flex for three-column
* float content and some voodoo for two-column (same as monobook)
Also had to slightly rearrange dom to make the latter work. Content
is now before nav in dom.
Change-Id: I7209eb21473877592d89f8471f8f8ed1f6b87851