lhc/web/wiklou.git
7 years agoresourceloader: Move queue formatting out of OutputPage
Timo Tijhof [Fri, 15 Jul 2016 14:13:09 +0000 (15:13 +0100)]
resourceloader: Move queue formatting out of OutputPage

HTML formatting of the queue was distributed over several OutputPage methods.
Each method demanding a snippet of HTML by calling makeResourceLoaderLink()
with a limited amount of information. As such, makeResourceLoaderLink() was
unable to provide the client with the proper state information.

Centralising it also allows it to better reduce duplication in HTML output
and maintain a more accurate state.

Problems fixed by centralising:

1. The 'user' module is special (due to per-user 'version' and 'user' params).
   It is manually requested via script-src. To avoid a separate (and wrong)
   request from something that requires it, we set state=loading directly.
   However, because the module is in the bottom, the old HTML formatter could
   only put state=loading in the bottom also. This sometimes caused a wrong
   request to be fired for modules=user if something in the top queue
   triggered a requirement for it.

2. Since a464d1d4 (T87871) we track states of page-style modules, with purpose
   of allowing dependencies on style modules without risking duplicate loading
   on pages where the styles are loaded already. This didn't work, because the
   state information about page-style modules is output near the stylesheet,
   which is after the script tag with mw.loader.load(). That runs first, and
   mw.loader would still make a duplicate request before it learns the state.

Changes:

* Document reasons for style/script tag order in getHeadHtml (per 09537e83).

* Pass $type from getModuleStyles() to getAllowedModules(). This wasn't needed
  before since a duplicate check in makeResourceLoaderLink() verified the
  origin a second time.

* Declare explicit position 'top' on 'user.options' and 'user.tokens' module.
  Previously, OutputPage hardcoded them in the top. The new formatter doesn't.

* Remove getHeadScripts().
* Remove getInlineHeadScripts().
* Remove getExternalHeadScripts().
* Remove buildCssLinks().
* Remove getScriptsForBottomQueue().

* Change where Skin::setupSkinUserCss() is called. This methods lets the skin
  add modules to the queue. Previously it was called from buildCssLinks(),
  via headElement(), via prepareQuickTemplate(), via OutputPage::output().
  It's now in OutputPage::output() directly (slightly earlier). This is needed
  because prepareQuickTemplate() calls bottomScripts() before headElement().
  And bottomScript() would lazy-initialise the queue and lock it before
  setupSkinUserCss() is called from headElement().
  This makes execution order more predictable instead of being dependent on
  the arbitrary order of data extraction in prepareQuickTemplate (which varies
  from one skin to another).

* Compute isUserModulePreview() and isKnownEmpty() for the 'user' module early
  on so. This avoids wrongful loading and fixes problem 1.

Effective changes in output:

* mw.loader.state() is now before mw.loader.load(). This fixes problem 2.
* mw.loader.state() now sets 'user.options' and 'user.tokens' to "loading".
* mw.loader.state() now sets 'user' (as "loading" or "ready"). Fixes problem 1.

* The <script async src> tag for 'startup' changed position (slightly).
  Previously it was after all inline scripts and stylesheets. It's still after
  all inline scripts and after most stylesheets, but before any user styles.
  Since the queue is now formatted outside OutputPage, it can't inject the
  meta-ResourceLoaderDynamicStyles tag and user-stylesheet hack in the middle
  of existing output. This shouldn't have any noticable impact.

Bug: T87871
Change-Id: I605b8cd1e1fc009b4662a0edbc54d09dd65ee1df

7 years agoMerge "Pass $archivedRevisionCount to the ArticleDeleteComplete hook"
jenkins-bot [Thu, 4 Aug 2016 01:18:54 +0000 (01:18 +0000)]
Merge "Pass $archivedRevisionCount to the ArticleDeleteComplete hook"

7 years agoPass $archivedRevisionCount to the ArticleDeleteComplete hook
Andrew Otto [Tue, 12 Jul 2016 18:42:33 +0000 (14:42 -0400)]
Pass $archivedRevisionCount to the ArticleDeleteComplete hook

Bug: T134502
Change-Id: I1df89beeadbec2a3592e51fbb525ed6db2424619

7 years agoMerge "phpdoc File::makeTransformTmpFile can return null"
jenkins-bot [Thu, 4 Aug 2016 00:14:34 +0000 (00:14 +0000)]
Merge "phpdoc File::makeTransformTmpFile can return null"

7 years agoMerge "Wrap revision info and nav in a div for easy formatting in MobileFrontend"
jenkins-bot [Wed, 3 Aug 2016 21:17:02 +0000 (21:17 +0000)]
Merge "Wrap revision info and nav in a div for easy formatting in MobileFrontend"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 3 Aug 2016 19:59:27 +0000 (21:59 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0ac53363139c522e4b35b8fbe49a7ac8d5ccbf45

7 years agoMerge "Pingback: Fix phpdoc"
jenkins-bot [Wed, 3 Aug 2016 18:31:23 +0000 (18:31 +0000)]
Merge "Pingback: Fix phpdoc"

7 years agoMerge "auth: Fix case of function call"
jenkins-bot [Wed, 3 Aug 2016 18:27:27 +0000 (18:27 +0000)]
Merge "auth: Fix case of function call"

7 years agophpdoc File::makeTransformTmpFile can return null
addshore [Wed, 3 Aug 2016 17:42:54 +0000 (18:42 +0100)]
phpdoc File::makeTransformTmpFile can return null

Change-Id: Ibeefb87919dfa2e5f850570942cbeab01e84e8a7

7 years agoUpdate OOjs UI to v0.17.7
James D. Forrester [Wed, 3 Aug 2016 16:41:35 +0000 (09:41 -0700)]
Update OOjs UI to v0.17.7

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.7

Change-Id: I0f36a3485a75ad0346eef9ae98aa47eddb099faf

7 years agoStructure test: Add autoload.php order check
Florian [Wed, 20 Jan 2016 18:27:47 +0000 (19:27 +0100)]
Structure test: Add autoload.php order check

If a class is added manually to the autoload.php another run of
the maintenance script will probably add unnecessary noise to
another change. The added structure test checks, if the output of
the maintenance script equals to the contents of the commited
autoload.php.

Bug: T121921
Change-Id: I3a426b92892f4c00cab33a13f6a717751120367c

7 years agoPingback: Fix phpdoc
Kunal Mehta [Wed, 3 Aug 2016 08:56:28 +0000 (01:56 -0700)]
Pingback: Fix phpdoc

Change-Id: Ib4fd932a9b65e46e9b43e594a6e1ab5a4dac76d9

7 years agoauth: Fix case of function call
Kunal Mehta [Wed, 3 Aug 2016 06:53:51 +0000 (23:53 -0700)]
auth: Fix case of function call

Change-Id: I415a7f7ba2ea97515a110cd963ed96bb77ec7b97

7 years agoWrap revision info and nav in a div for easy formatting in MobileFrontend
Baha [Tue, 2 Aug 2016 18:45:22 +0000 (14:45 -0400)]
Wrap revision info and nav in a div for easy formatting in MobileFrontend

Revision info and nav used to be combined with breadcrumbs which made
styling the revision info and nav complicated. The patch wraps these
two divs into an outer div so that MF can style them together easily.

Also make sure rev info and nav appear on different lines as the
`br` tag between them has been removed because of wrapping.

Bug: T139930
Change-Id: Ic7ecf3be7eac6500c20cfc3b3b1fa49d4b4e0d19

7 years agoMerge "UploadBase: Formally deprecate old methods for stashing files"
jenkins-bot [Wed, 3 Aug 2016 00:10:52 +0000 (00:10 +0000)]
Merge "UploadBase: Formally deprecate old methods for stashing files"

7 years agoUploadBase: Formally deprecate old methods for stashing files
Bartosz Dziewoński [Tue, 2 Aug 2016 21:24:32 +0000 (23:24 +0200)]
UploadBase: Formally deprecate old methods for stashing files

Change-Id: I4c60083a4e773e401aae8c90b99a051cbca4c961

7 years agoMerge "Add 'targets' => [ 'desktop', 'mobile' ] to all UploadWizard dependencies"
jenkins-bot [Tue, 2 Aug 2016 23:28:25 +0000 (23:28 +0000)]
Merge "Add 'targets' => [ 'desktop', 'mobile' ] to all UploadWizard dependencies"

7 years agoMerge "Skin: Remove long-deprecated aliases for Linker methods"
jenkins-bot [Tue, 2 Aug 2016 23:03:39 +0000 (23:03 +0000)]
Merge "Skin: Remove long-deprecated aliases for Linker methods"

7 years agoMerge "Canonicalise '@deprecated since' doc comments"
jenkins-bot [Tue, 2 Aug 2016 22:55:19 +0000 (22:55 +0000)]
Merge "Canonicalise '@deprecated since' doc comments"

7 years agoCanonicalise '@deprecated since' doc comments
Bartosz Dziewoński [Tue, 2 Aug 2016 21:53:25 +0000 (23:53 +0200)]
Canonicalise '@deprecated since' doc comments

Change-Id: I440041512feb47a998efb45e76e3fd00e0655752

7 years agoresourceloader: Separate 'user.styles' module from 'user'
Timo Tijhof [Tue, 26 Jul 2016 23:54:30 +0000 (00:54 +0100)]
resourceloader: Separate 'user.styles' module from 'user'

Fixes addModuleStyles() violation from T92459 (a464d1d41).

Similar to 93ed259cf and Id2342454b for the 'site' module.
Doesn't need to be in separate commits since per-user HTML isn't
cached the same way.

Bug: T92459
Bug: T108590
Change-Id: I195f67d061de1306c97413aada7919e9f1b1d12c

7 years agoSkin: Remove long-deprecated aliases for Linker methods
Bartosz Dziewoński [Tue, 2 Aug 2016 21:48:24 +0000 (23:48 +0200)]
Skin: Remove long-deprecated aliases for Linker methods

They don't seem to be used anymore in any skins in our version control.
I searched for:

  (->|(?<!Linker)::)(commentBlock|generateRollback|link|linkKnown|userLink|userToolLinks)

Change-Id: Id558c2d307dc6e9fbf0e642d5d638f7c2c9544b2

7 years agoMerge "Remove unused conds.mustache test file"
jenkins-bot [Tue, 2 Aug 2016 21:16:17 +0000 (21:16 +0000)]
Merge "Remove unused conds.mustache test file"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 2 Aug 2016 20:08:19 +0000 (22:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If70dbb59179e6529b838f963aca55c4dab68f663

7 years agoMerge "Provide missing system message corresponding to "right-purge""
jenkins-bot [Tue, 2 Aug 2016 19:23:35 +0000 (19:23 +0000)]
Merge "Provide missing system message corresponding to "right-purge""

7 years agoMerge "Move HTMLFormField subclasses to a separate directory"
jenkins-bot [Tue, 2 Aug 2016 19:06:30 +0000 (19:06 +0000)]
Merge "Move HTMLFormField subclasses to a separate directory"

7 years agoMerge "Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache"
jenkins-bot [Tue, 2 Aug 2016 13:19:50 +0000 (13:19 +0000)]
Merge "Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache"

7 years agoAvoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache
Aaron Schulz [Tue, 2 Aug 2016 10:57:52 +0000 (03:57 -0700)]
Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache

* Add the ability to expose key BagOStuff attributes like whether the
  emulation SQL cache is being used. Several callers use hacks to detect
  this and can be updated later.
* Fallback to a safe empty WAN cache in the CACHE_DB case. This fixes
  a regression from f4bf52e8438.
* Also add this protection to the server cache, which could break
  similarly before too.
* Also fix CACHE_ANYTHING by avoid the recursion risk from
  fc1d4d796024 by just checking the disabled service map.

Bug: T123829
Bug: T141804
Change-Id: I17ee26138f69e01ec1aaddb55ab27caa4d542193

7 years agoMerge "MessagesGom_deva: Correct syntax in namespace alias"
jenkins-bot [Tue, 2 Aug 2016 11:10:47 +0000 (11:10 +0000)]
Merge "MessagesGom_deva: Correct syntax in namespace alias"

7 years agoMerge "resourceloader: Remove styles from 'site', depend on 'site.styles'"
jenkins-bot [Tue, 2 Aug 2016 09:18:30 +0000 (09:18 +0000)]
Merge "resourceloader: Remove styles from 'site', depend on 'site.styles'"

7 years agoMerge "Unification of Czech terminology in Special:Listgrants"
jenkins-bot [Tue, 2 Aug 2016 09:06:45 +0000 (09:06 +0000)]
Merge "Unification of Czech terminology in Special:Listgrants"

7 years agoProvide missing system message corresponding to "right-purge"
Kghbln [Tue, 2 Aug 2016 08:57:51 +0000 (10:57 +0200)]
Provide missing system message corresponding to "right-purge"

Change-Id: I2f98da7e1537da9d9b9a02f881465be11c31d698

7 years agoUnification of Czech terminology in Special:Listgrants
Martin Urbanec [Mon, 1 Aug 2016 20:03:27 +0000 (22:03 +0200)]
Unification of Czech terminology in Special:Listgrants

The title of Special:Listgrants was "Svolení" in Czech
and the name of the special page was "Seznam grantů".
None of this has the exact meaning as the original title/name.
The Czech word "Grant" (another form of "grantů")
usualy means a financial gift from somebody limited by its purpose.

The Czech word "Svolení" has similar meaning as "agreement" in English.

"Skupina oprávnění" can be translated as "Group of permissions".

I've changed related pages in translatewiki.net to update
the description, displayed title and the title of the first
column in table which is generated by this special page.

It has been suggested by Dvorapa at my talk page in cswiki, see
https://cs.wikipedia.org/?oldid=13980091#Granty.3F_Svolen.C3.AD.3F
(in Czech).

Change-Id: Ic3148fc689de32bcba6344ad1f98491c5f540973

7 years agoRemove unused conds.mustache test file
Timo Tijhof [Tue, 2 Aug 2016 00:16:52 +0000 (17:16 -0700)]
Remove unused conds.mustache test file

Follows-up 2b7d281 which added the file but no use of it.

Change-Id: I59faab7f50abedeb1d57663128872032b6ec28a2

7 years agoMerge "phpdoc File::transform can return ThumbnailImage"
jenkins-bot [Mon, 1 Aug 2016 22:58:54 +0000 (22:58 +0000)]
Merge "phpdoc File::transform can return ThumbnailImage"

7 years agophpdoc File::transform can return ThumbnailImage
addshore [Mon, 1 Aug 2016 21:18:24 +0000 (22:18 +0100)]
phpdoc File::transform can return ThumbnailImage

Change-Id: I463176d06c8d519a52c5713eacd44bff87e72f56

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 1 Aug 2016 20:03:35 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If2dbb58d65cef8c68255275a70d3ecc96bc47488

7 years agoMerge "Allow SVGs encoded as WINDOWS-125[0-8]."
jenkins-bot [Mon, 1 Aug 2016 13:06:35 +0000 (13:06 +0000)]
Merge "Allow SVGs encoded as WINDOWS-125[0-8]."

7 years agoMerge "$namespaceNames for tcy language"
jenkins-bot [Mon, 1 Aug 2016 12:26:53 +0000 (12:26 +0000)]
Merge "$namespaceNames for tcy language"

7 years agoAllow SVGs encoded as WINDOWS-125[0-8].
Brian Wolff [Mon, 1 Aug 2016 08:01:46 +0000 (08:01 +0000)]
Allow SVGs encoded as WINDOWS-125[0-8].

The check is meant to prevent weird encodings like UTF-7 or HZ.
Encodings like the WINDOWS-125X family which are extensions of ascii
are safe. Additionally people still use windows-1252 on rare occasion.

Bug: T72937
Change-Id: I6cd63274cc04a7fca3afd244b4122ea64042dced

7 years agoMove HTMLFormField subclasses to a separate directory
Bartosz Dziewoński [Sat, 30 Jul 2016 21:59:24 +0000 (23:59 +0200)]
Move HTMLFormField subclasses to a separate directory

It's getting more difficult to navigate the files in includes/htmlform/
with every new field and every new helper class that is being added.

Change-Id: I92ce2356baf6151f17b2440970d5abdf86503820

7 years ago$namespaceNames for tcy language
MarcoAurelio [Sun, 31 Jul 2016 10:43:27 +0000 (12:43 +0200)]
$namespaceNames for tcy language

Bug: T140898
See-also: I3ddfc12efff0911b547ac93ab31c92d49447b224
Change-Id: Ie8a22d4d679d368aa5777a485ab5e18282c55a4c

7 years agoMerge "Make recordUpload2() deferred updates PRESEND again"
jenkins-bot [Mon, 1 Aug 2016 05:21:05 +0000 (05:21 +0000)]
Merge "Make recordUpload2() deferred updates PRESEND again"

7 years agoMake recordUpload2() deferred updates PRESEND again
Aaron Schulz [Mon, 1 Aug 2016 02:55:45 +0000 (19:55 -0700)]
Make recordUpload2() deferred updates PRESEND again

Bug: T141687
Change-Id: Ica1a09a6e580b9da659d22183f396d88f694f256

7 years agoMerge "Revert "README: Changed link from bugs.mediawiki.org...""
jenkins-bot [Sun, 31 Jul 2016 23:39:42 +0000 (23:39 +0000)]
Merge "Revert "README: Changed link from bugs.mediawiki.org...""

7 years agoRevert "README: Changed link from bugs.mediawiki.org..."
Legoktm [Sun, 31 Jul 2016 23:30:29 +0000 (23:30 +0000)]
Revert "README: Changed link from bugs.mediawiki.org..."

The link is intentional as that is the canonical location
of where bugs should be filed, and is independent of any
future software change.

Finally, changes to the README should be drafted on-wiki first
at [[mw:README]].

This reverts commit af9258794cfd59d1209b97080c365060cbbd2e89.

Change-Id: Ie453cee5218261cba4f6e18d13c4089c23ff2166

7 years agoMerge "Remove DifferenceEngine::generateDiffBody()"
jenkins-bot [Sun, 31 Jul 2016 23:17:13 +0000 (23:17 +0000)]
Merge "Remove DifferenceEngine::generateDiffBody()"

7 years agoMerge "Localisation, minior cleanup, minor changes"
jenkins-bot [Sun, 31 Jul 2016 22:56:15 +0000 (22:56 +0000)]
Merge "Localisation, minior cleanup, minor changes"

7 years agoLocalisation, minior cleanup, minor changes
zppix1 [Sun, 31 Jul 2016 20:51:47 +0000 (15:51 -0500)]
Localisation, minior cleanup, minor changes

Bug: T141743
Change-Id: I6eb7a4ae2bba0708ec96568d90b43170dbde7f6b

7 years agoRemove DifferenceEngine::generateDiffBody()
Florian [Sat, 2 Apr 2016 11:44:17 +0000 (13:44 +0200)]
Remove DifferenceEngine::generateDiffBody()

Bug: T122754
Change-Id: Iedd319fa5e7b7218ee5341f18f31a8f1101b5eee

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 31 Jul 2016 19:53:32 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4d1981aaef6072be3d26f7be3c068b7ef65aacfe

7 years agoMerge "Added a link to Developer Hub in docs/README, Sectioning minor rewording,...
jenkins-bot [Sun, 31 Jul 2016 19:01:17 +0000 (19:01 +0000)]
Merge "Added a link to Developer Hub in docs/README, Sectioning minor rewording, localisation links added to extentsions/README. Other minor changes"

7 years agoMerge "mw.htmlform.ooui: Correctly support flatlist for non-infused widgets"
jenkins-bot [Sun, 31 Jul 2016 18:55:51 +0000 (18:55 +0000)]
Merge "mw.htmlform.ooui: Correctly support flatlist for non-infused widgets"

7 years agoUse PRESEND for WikiPage::doCreate updates
Aaron Schulz [Sun, 31 Jul 2016 17:54:47 +0000 (10:54 -0700)]
Use PRESEND for WikiPage::doCreate updates

Regression from Idf7d54fdac648

Bug: T141687
Change-Id: I9d6d6137ae324547eb45474dc58bc90bf8ccb78f

7 years agoMerge "Make WikiPage::doEditUpdates and related functions be run PRESEND again"
jenkins-bot [Sun, 31 Jul 2016 17:38:59 +0000 (17:38 +0000)]
Merge "Make WikiPage::doEditUpdates and related functions be run PRESEND again"

7 years agoAdded a link to Developer Hub in docs/README, Sectioning minor rewording, localisatio...
zppix1 [Sun, 31 Jul 2016 17:18:30 +0000 (12:18 -0500)]
Added a link to Developer Hub in docs/README, Sectioning minor rewording, localisation links added to extentsions/README. Other minor changes

Change-Id: Iec401322fbaa0a69d6d0eb368d2b5e109a05b01e

7 years agoMake WikiPage::doEditUpdates and related functions be run PRESEND again
Glaisher [Sun, 31 Jul 2016 17:22:27 +0000 (22:22 +0500)]
Make WikiPage::doEditUpdates and related functions be run PRESEND again

Regression from Idf7d54fdac648

Bug: T141687
Change-Id: I736fd6c0a9c4595ba0bba6a5b8d7f795b57fda60

7 years agoMerge "Changed link from bugs.mediawiki.org to phabricator.wikimedia.org as bug...
jenkins-bot [Sun, 31 Jul 2016 17:17:02 +0000 (17:17 +0000)]
Merge "Changed link  from bugs.mediawiki.org to phabricator.wikimedia.org as bug.mediawiki.org is no longer a link its just a redirect to the phab."

7 years agoChanged link from bugs.mediawiki.org to phabricator.wikimedia.org as bug.mediawiki...
zppix1 [Sun, 31 Jul 2016 16:49:05 +0000 (11:49 -0500)]
Changed link  from bugs.mediawiki.org to phabricator.wikimedia.org as bug.mediawiki.org is no longer a link its just a redirect to the phab.

Change-Id: Id6ae73a0edbbdc85c7c769494aa26a9a21734693

7 years agoMerge "ImageListPager: Don't fatal when unable to thumbnail a file"
jenkins-bot [Sun, 31 Jul 2016 13:08:28 +0000 (13:08 +0000)]
Merge "ImageListPager: Don't fatal when unable to thumbnail a file"

7 years agoMerge "Silence the TransactionProfiler in masterRunningReadOnly()"
jenkins-bot [Sun, 31 Jul 2016 05:27:57 +0000 (05:27 +0000)]
Merge "Silence the TransactionProfiler in masterRunningReadOnly()"

7 years agoMerge "mw.Title: Use $wgIllegalFileChars for file title checking"
jenkins-bot [Sun, 31 Jul 2016 05:03:13 +0000 (05:03 +0000)]
Merge "mw.Title: Use $wgIllegalFileChars for file title checking"

7 years agoImageListPager: Don't fatal when unable to thumbnail a file
Bartosz Dziewoński [Sun, 31 Jul 2016 00:06:10 +0000 (02:06 +0200)]
ImageListPager: Don't fatal when unable to thumbnail a file

Change-Id: I2e2879de2b0dd4cd347bf545c46c98b891def9eb

7 years agomw.htmlform.ooui: Correctly support flatlist for non-infused widgets
Bartosz Dziewoński [Sat, 30 Jul 2016 20:55:12 +0000 (22:55 +0200)]
mw.htmlform.ooui: Correctly support flatlist for non-infused widgets

Spotted in code review of I46dc6cc8f7ddf8552a726202df136cbbff66588c.
Follow-up to 5f67d80afd86a4a7d76c6c98f0b3490da25ff179.

Change-Id: I223c4d1b022aac6b13a8904bfc8f0f50c75da94f

7 years agoSilence the TransactionProfiler in masterRunningReadOnly()
Aaron Schulz [Sat, 30 Jul 2016 20:42:44 +0000 (13:42 -0700)]
Silence the TransactionProfiler in masterRunningReadOnly()

Change-Id: I93a5cce8c781c1e2ab4fb6bcefd3720e61f8a4dd

7 years agoMerge "Convert Special:NewFiles to use OOUI."
jenkins-bot [Sat, 30 Jul 2016 20:41:47 +0000 (20:41 +0000)]
Merge "Convert Special:NewFiles to use OOUI."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 30 Jul 2016 19:53:06 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I47121cdf937af7abdfdf27fa876926149ed08c83

7 years agomw.Title: Use $wgIllegalFileChars for file title checking
Bartosz Dziewoński [Sun, 24 Jul 2016 20:28:56 +0000 (22:28 +0200)]
mw.Title: Use $wgIllegalFileChars for file title checking

mw.Title.newFromFileName() will now correctly use $wgIllegalFileChars,
rather than partially and incorrectly duplicating it.

$wgIllegalFileChars is currently defined to contain ':', '/' and '\'.
Previously we incorrectly did not filter out backslashes '\'. The hash
'#' is already disallowed by $wgLegalTitleChars.

Bug: T140222
Change-Id: I17e3ef61e04ae002ef576c9416c8f265ee000e89

7 years agomaintenance: Allow having a nicer error message if an extension isn't enabled
Kunal Mehta [Thu, 28 Jul 2016 21:44:06 +0000 (14:44 -0700)]
maintenance: Allow having a nicer error message if an extension isn't enabled

Maintenance scripts can be invoked regardless of whether an extension is
enabled on a wiki or not. On wiki farms where some wikis may have an
extension or not, this can potentially be rather confusing. Especially
when the script bails out with a fatal class missing error or a database
table missing.

This allows maintenance scripts to specify that they require an
extension by calling:
 $this->requireExtension( 'ExtensionName' );
in the script's constructor.

Bug: T141531
Change-Id: Icfbf063bb9c9ac9e55c3a5a8ed815528a2c1ce1e

7 years agoMerge "Unbreak file caching"
jenkins-bot [Sat, 30 Jul 2016 03:29:01 +0000 (03:29 +0000)]
Merge "Unbreak file caching"

7 years agoUnbreak file caching
Aaron Schulz [Sat, 30 Jul 2016 03:03:24 +0000 (20:03 -0700)]
Unbreak file caching

This was totally broken by 796d62d0

Change-Id: I34ee08e926117b9472151d9fd415c1dfc6a57de1

7 years agoAutomatically detect READ_ONLY mode for MySQL/MariaDB
Aaron Schulz [Fri, 22 Jul 2016 05:15:30 +0000 (22:15 -0700)]
Automatically detect READ_ONLY mode for MySQL/MariaDB

This avoids having users think they can make edits when an
exception will just be thrown when they try to save. Likewise
for other write actions.

Bug: T24923
Change-Id: I49c4057b672875ec6f34681a5668a509cec05677

7 years agoMerge "Remove return by reference in Title::makeTitle"
jenkins-bot [Sat, 30 Jul 2016 00:34:36 +0000 (00:34 +0000)]
Merge "Remove return by reference in Title::makeTitle"

7 years agoMerge "Use mw.notification for success message on Special:UserRights"
jenkins-bot [Fri, 29 Jul 2016 21:24:47 +0000 (21:24 +0000)]
Merge "Use mw.notification for success message on Special:UserRights"

7 years agoUse mw.notification for success message on Special:UserRights
Florian [Wed, 14 Oct 2015 17:20:28 +0000 (19:20 +0200)]
Use mw.notification for success message on Special:UserRights

Split out Special:Preferences handling of successbox into it's own
mediawiki.notification.convertmessagebox module and make it reuseable.

Use this module on Special:UserRights.

Bug: T115463
Change-Id: I87054b55053d209835d6fdea1f6e3e67f10e3ac8

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Fri, 29 Jul 2016 20:49:09 +0000 (20:49 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoMerge "registration: Support conditionally registered namespaces"
jenkins-bot [Fri, 29 Jul 2016 20:47:09 +0000 (20:47 +0000)]
Merge "registration: Support conditionally registered namespaces"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 29 Jul 2016 20:40:34 +0000 (22:40 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iab10db9d190dbbf1f46fbf9726e7b78210f4ddab

7 years agoRemove return by reference in Title::makeTitle
Erik Bernhardson [Fri, 29 Jul 2016 20:30:32 +0000 (13:30 -0700)]
Remove return by reference in Title::makeTitle

This made sense back in php4, but has no useful effect anymore
with our minimum php version being 5.5. This also has the effect
of searching for 'function makeTitle' now actually finding something.

Change-Id: I0ea02a2e7dff285341b0e5b5b7773da78bfaaff3

7 years agoMerge "Special:Search replace visualClear with mw-search-visualclear"
jenkins-bot [Fri, 29 Jul 2016 17:08:59 +0000 (17:08 +0000)]
Merge "Special:Search replace visualClear with mw-search-visualclear"

7 years agoSpecial:Search replace visualClear with mw-search-visualclear
Florian [Thu, 28 Jul 2016 22:28:58 +0000 (00:28 +0200)]
Special:Search replace visualClear with mw-search-visualclear

Bug: T140951
Change-Id: I41b135fd14011045fc8c9584d52d0b853c2ef49e

7 years agoMerge "Add Wikidata to default interwikis"
jenkins-bot [Fri, 29 Jul 2016 12:56:45 +0000 (12:56 +0000)]
Merge "Add Wikidata to default interwikis"

7 years agoMerge "API: Document a level of 'all' in action=protect"
jenkins-bot [Fri, 29 Jul 2016 09:57:55 +0000 (09:57 +0000)]
Merge "API: Document a level of 'all' in action=protect"

7 years agoMerge "API: Remove deprecated response values from action=login"
jenkins-bot [Fri, 29 Jul 2016 09:57:51 +0000 (09:57 +0000)]
Merge "API: Remove deprecated response values from action=login"

7 years agoregistration: Support conditionally registered namespaces
Kunal Mehta [Fri, 29 Jul 2016 08:09:24 +0000 (01:09 -0700)]
registration: Support conditionally registered namespaces

Some extensions (e.g. EventLogging) conditionally register a namespace
depending upon the wiki's configuration using the CanonicalNamespaces
hook. Since the "namespaces" key automatically registers the namespace,
we need an option to not register it and let the extension take care of
that manually using the hook.

All of the other namespace related settings are safe to unconditionally
set since they won't do anything if the namespace doesn't actually
exist.

Bug: T141604
Change-Id: Ie8c217fdc8bd783b30f98210309ea56fef39c0da

7 years agoMerge "Add User::findUsersByGroup()"
jenkins-bot [Fri, 29 Jul 2016 05:27:33 +0000 (05:27 +0000)]
Merge "Add User::findUsersByGroup()"

7 years agoAdd/update doc blocks for MWTidy
Reedy [Fri, 29 Jul 2016 00:24:34 +0000 (01:24 +0100)]
Add/update doc blocks for MWTidy

Change-Id: I0b87e119048fd993f8bfda25a6c6b744d59804d1

7 years agoMerge "Clean up array() in docs, Part I"
jenkins-bot [Fri, 29 Jul 2016 00:19:45 +0000 (00:19 +0000)]
Merge "Clean up array() in docs, Part I"

7 years agoMerge "ParserTest: Declare $recorder property"
jenkins-bot [Thu, 28 Jul 2016 22:57:06 +0000 (22:57 +0000)]
Merge "ParserTest: Declare $recorder property"

7 years agoresourceloader: Log each deprecation only once from mw.log.deprecate
Lee Bousfield [Thu, 4 Feb 2016 20:12:41 +0000 (13:12 -0700)]
resourceloader: Log each deprecation only once from mw.log.deprecate

Bug: T100412
Change-Id: I0111f0ed84b74774b6665aca2625d07ea53cfc8c

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Thu, 28 Jul 2016 20:10:40 +0000 (20:10 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 28 Jul 2016 20:00:59 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I8bc7496b6c811cd32810d67239ce7788c4934e71

7 years agoMerge "Improve how slashes are stripped from filenames"
jenkins-bot [Thu, 28 Jul 2016 19:58:31 +0000 (19:58 +0000)]
Merge "Improve how slashes are stripped from filenames"

7 years agoMerge "ApiParse: Deprecate prop=headitems"
jenkins-bot [Thu, 28 Jul 2016 17:54:50 +0000 (17:54 +0000)]
Merge "ApiParse: Deprecate prop=headitems"

7 years agoRename OpenSearch qiprofile parameter back to profile
Erik Bernhardson [Thu, 28 Jul 2016 17:15:07 +0000 (10:15 -0700)]
Rename OpenSearch qiprofile parameter back to profile

In I6f987db this parameter was inadvertantly renamed to qiprofile. The
qiprofile is something different, and is also a BC break. The BC break is
pretty minor, for a randomly chosen day this looks to be used 157 times
out of 28.7M requests, but since this really isn't a qiprofile rename
it back to what it was.

Change-Id: I1cc07945888c15ea4b4c9596eea447b706606fae

7 years agoApiParse: Deprecate prop=headitems
Timo Tijhof [Thu, 21 Jul 2016 22:52:29 +0000 (23:52 +0100)]
ApiParse: Deprecate prop=headitems

This code has been rotting for a while. It is important missing stylesheets
and critical inline scripts. Consuming these items is quite risky.
One can't safely use it to update an existing document (as some parts are
duplicative or conflicting). One also can't use it to build a new document as
several critical pieces are missing.

* Since ResourceLoader was introduced in 2011, buildCssLinksArray() doesn't have any stylesheets.

For most pages, this will produce an empty array for headitems.

Mark it as deprecated since in favour of 'prop=headhtml' or 'prop=modules'.

Change-Id: I6084e4454e245f59bf3c82d6db830977725f71e5

7 years agoUse isset in WikiPage prepareContentForEdit for newContent
addshore [Thu, 28 Jul 2016 16:22:05 +0000 (17:22 +0100)]
Use isset in WikiPage prepareContentForEdit for newContent

This will stop the following:

Undefined property: stdClass::$newContent in
includes/page/WikiPage.php on line 2056

Bug: T75474
Change-Id: I1bc840faff1b4dc1444434b4edec223950bc6eb1

7 years agoMerge "Fix Undefined variable issue in ApiQueryUserContributions"
jenkins-bot [Thu, 28 Jul 2016 13:37:09 +0000 (13:37 +0000)]
Merge "Fix Undefined variable issue in ApiQueryUserContributions"

7 years agoMerge "Remove missed WatchedItem::resetNotificationTimestamp in test"
jenkins-bot [Thu, 28 Jul 2016 10:22:59 +0000 (10:22 +0000)]
Merge "Remove missed WatchedItem::resetNotificationTimestamp in test"

7 years agoRemove missed WatchedItem::resetNotificationTimestamp in test
addshore [Thu, 28 Jul 2016 08:56:05 +0000 (09:56 +0100)]
Remove missed WatchedItem::resetNotificationTimestamp in test

Change-Id: I3ece74fecd55f248025d9c10aaf1960d5cd3fd7a