Follows up I217c42656fb877ff35a36eb446a22bdaf119faac
That change introduced a syntax error during update. I have verified
that this fixes the syntax problem so that update.php runs, but have
not verified that the new functionality behaves as intended.
Also, the PostgreSQL schema changes introduced during the update
process were not present at all in a fresh install to PostgreSQL. Add
analogous changes to tables.sql.
Bug: 64807
Change-Id: I736344839ec478216402fdfe260968afbd663498
action=query&meta=siteinfo&siprop=extensions calls
$gitInfo->getHeadCommitDate() to attempt to find the commit date, but
does not check whether that function returned false before using the
value. This resulted in displaying the current date for "vcs-date" when
the function failed.
Bug: 64821
Change-Id: Ic39a74abe5160b3b7fbfb7c15323328d6b317560
Follows-up db13c65 and c3d544412, which removed the
collapsibleNav module. However it also undid various design
changes that really should not have been part of the
collapsibleNav module but were significant, I've restored those.
Basically, this merges the old collapsibleNav.less into
navigation.less. I won't list all chnages, but here's a few:
* Increase spacing between heading and side of portal (via margin and
padding on the portal, not on the heading itself).
The headings were almost against the browser edge.
* Change color of heading slightly (#4d4d4d instead of #444).
* Move separator line from below each heading to between sidebar
sections.
* Change spacing between list items from 0.5 on the bottom to
0.25em on top and bottom (effectively the same, except aligns
the first and last item better in relation to the heading and
the separator line).
* (js-only enhancement) Mark first section with class "first",
and remove the separator line, heading and offset from that one.
Also:
* Clean up 'h3' padding/margin situation.
They were inheriting 0.3em of bottom margin from the global
'h3' selector for content. This was a bit of a fragile
dependency and was just a coincidence. Reset the margin against
the global selector and added it to the local padding instead.
No visual change.
* Remove unused less variables.
Change-Id: I979179a82c1de9b1b7d66310ebd5daf8e6aa1802
`mw.Title#getNameText()` strips anything following a dot (.), assuming
it's a file name (which doesn't make sense for category names).
C.f. https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Title-method-getMainText
This causes some trouble in UploadWizard's category-suggestion system.
This bug has been there since the very first version (cb0cf72eba)
which, ironically, was specifically written for UploadWizard.
Bug: 64764
Change-Id: I2925e1050215272cdf03c8c6b1de6ba79348f6a5
- Adds mw.special.recentchanges to the index.
- Adds mw.special.upload to the index.
- Register File as valid value type. Relates to the
"File" interface (from HTML5 File APIs; http://dev.w3.org/2006/webapi/FileAPI/#dfn-file)
- Sort directories in jsduck/config.json alphabetically.
Change-Id: I282cbeeec60b9f527879aedd90ba824a833438b7
* RedisPubSubFeedEngine uses 'redis://' URLs. So does redis-py and many other
client libraries. It should be recognized by MediaWiki. So add it.
* Remove in-line comments justifying each individual URL scheme.
DefaultSettings.php is long enough; it doesn't need to moonlight as
the annals of the history of MediaWiki development.
* Make the documentation of $wgUrlProtocols a bit more useful.
Change-Id: I4c2de67cc4e243659b0bed674e0ccd48221c57f3
This bash script is supposed to abort early with a non-zero
exit code if the jsduck test found any errors or warnings.
Change-Id: I2ae0976be866519dd9f41f4c02d78d300a494328
displayname is used in user interface texts to tell the user what
is the source of a file so returning null does not make sense
here.
Bug: 64800
Change-Id: Iafbc1a8e63b512d1515215fa1295e5b7434f1861
The helppage can be a full URL, which canonicalurl doesn't like.
This means that if a wiki
* has a custom enotif_body which uses canonicalurl + helppage, but
* doesn't have helppage defined locally (as local/interwiki title),
then it will still have to fix either of the two locally.
Bug: 63269
Change-Id: I82d26b648ef23b69ae4fbd0a74ffa23eb7a93dae
Fix regression from https://gerrit.wikimedia.org/r/#/c/94614/
Ensure that when users login with "remember me" selected, they get a
new remember me token after changing their password.
Change-Id: Ibbf0d823bd5ef5304bf6ad1b67966d18dfb3580c
Follows-up If0438b7b6f4649, which broken the toc toggle module
since it was no longer part of a global module (mediawiki.util)
but only added to individual pages by the parser.
While that is a superior load mechanism, it broke existing pages
due to parser cache. Not the general html cache for logged-out
users but the main parser cache, which affects logged-in users
as well.
Bug: 64765
Change-Id: Ia12998fb11c686e1cc965578f7beb31c79b1b12c