Timo Tijhof [Mon, 15 Jun 2015 17:15:28 +0000 (18:15 +0100)]
database: Don't treat $defaultSchemas as containing all types/drivers
The Database::factory() method treats $dbType as of one of
predefined "canonicalDBTypes", and defaults to using it as driver.
Which is then used for the name of the Database subclass.
This allows extensions and wiki farms to have custom subclasses
to override certain methods, or even provide new drivers.
The $defaultSchemas array added in
f7174057a4 was given all canonical
keys (with null values) to allow unconditionally access. This
doesn't scale very well and is error-prone. Reduce it to the
override only and fallback make the fallback to null explicitly.
See T102285 for where this would help prevent a PHP Notice.
Change-Id: I3f1e1f59c300d34de30f6480ff4e54f159d51b16
jenkins-bot [Mon, 15 Jun 2015 06:35:58 +0000 (06:35 +0000)]
Merge "Update mediawiki/mediawiki-codesniffer dependency to 0.2.0"
paladox [Sat, 13 Jun 2015 20:06:44 +0000 (22:06 +0200)]
Update mediawiki/mediawiki-codesniffer dependency to 0.2.0
Change-Id: If6887ce9d445fd6b7dc036f68e803f4c5d86dce7
jenkins-bot [Sun, 14 Jun 2015 20:51:15 +0000 (20:51 +0000)]
Merge "Disable Preferences save button before setting change"
jenkins-bot [Sun, 14 Jun 2015 20:19:21 +0000 (20:19 +0000)]
Merge "Avoid muliple cache calls to explicitly defined tags"
Kunal Mehta [Wed, 28 Jan 2015 21:11:40 +0000 (13:11 -0800)]
composer.json: Set classmap-authoritative: true
For developers with older versions of composer the setting will
just be ignored.
Bug: T85182
Change-Id: I66d4eace301eb4319e4c0137c8f3ee6f35fe4e51
Translation updater bot [Sun, 14 Jun 2015 18:47:15 +0000 (18:47 +0000)]
Merge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sun, 14 Jun 2015 18:44:16 +0000 (20:44 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Iaddc25ac27e8fa35a69b8751ae9890adf31fb101
cenarium [Sun, 14 Jun 2015 18:00:52 +0000 (20:00 +0200)]
Avoid muliple cache calls to explicitly defined tags
This avoids muliple cache calls to explicitly defined tags by
calling the showTagEditUI of ChangeTags only once in logs and
histories.
Change-Id: I2e36dbd96d3fcca06de0bf418bc6dc294d8d18d3
jenkins-bot [Sun, 14 Jun 2015 15:40:13 +0000 (15:40 +0000)]
Merge "Add Goan Konkani Language"
jenkins-bot [Sun, 14 Jun 2015 07:57:29 +0000 (07:57 +0000)]
Merge "specials: Simplify return logic of various SpecialUserlogin methods"
Timo Tijhof [Sun, 31 May 2015 15:30:01 +0000 (16:30 +0100)]
specials: Simplify return logic of various SpecialUserlogin methods
* Handle exceptional case before common case in makeLanguageSelector
by using early returns. Better reflects the intended effect
of the exception by making it harder to accidentally run code
after the 'else' statement.
Change-Id: I710a94adf22bc4e6dc539e12c69e4ba96bf1068c
Timo Tijhof [Sun, 14 Jun 2015 02:19:29 +0000 (03:19 +0100)]
Update jQuery Client to v2.0.0
Project
* https://github.com/wikimedia/jquery-client
Release
* https://github.com/wikimedia/jquery-client/releases/tag/v2.0.0
* https://github.com/wikimedia/jquery-client/blob/v2.0.0/jquery.client.js
Breaking changes:
* Microsoft's new Edge browser is now identified as "edge" instead of "msie".
Change-Id: Id3df3e637cd9751a293ca655c51d39492d04d7f6
Translation updater bot [Sat, 13 Jun 2015 20:06:44 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I47268e9b17dfaa6b274ef28577b3a3e717fa486b
jenkins-bot [Sat, 13 Jun 2015 17:14:31 +0000 (17:14 +0000)]
Merge "Tablesorter: Replace wgContentLanguage by wgPageContentLanguage"
Fomafix [Tue, 3 Feb 2015 13:51:32 +0000 (13:51 +0000)]
Tablesorter: Replace wgContentLanguage by wgPageContentLanguage
wgContentLanguage contains the language code of whole project.
wgPageContentLanguage contains the language code of the content of the page.
For example https://translatewiki.net/wiki/Project:About/de?uselang=eo has
* wgContentLanguage en
* wgPageContentLanguage de
* wgUserLanguage eo
The tablesorter works on the content of the page.
Change-Id: I3e51d96c838a3a4f4562c1f27c360d515e4d8ca6
jenkins-bot [Sat, 13 Jun 2015 13:10:13 +0000 (13:10 +0000)]
Merge "Use XmlSelect to simplify Xml::monthSelector"
jenkins-bot [Sat, 13 Jun 2015 01:57:25 +0000 (01:57 +0000)]
Merge "Rename testBug25702() to testPrefixNormalizationSearchBug()"
jenkins-bot [Sat, 13 Jun 2015 01:53:28 +0000 (01:53 +0000)]
Merge "Add "rel=discussion" attribute to talk page tabs in skin template"
Robert Hoenig [Tue, 30 Dec 2014 06:37:25 +0000 (00:37 -0600)]
Rename testBug25702() to testPrefixNormalizationSearchBug()
Change-Id: If17a2cd2c1481cc564c61be73af64938824d9a9c
jenkins-bot [Sat, 13 Jun 2015 01:18:56 +0000 (01:18 +0000)]
Merge "Omit 'external' changes from ChangesFeed"
Matěj Grabovský [Sun, 15 Feb 2015 11:12:22 +0000 (12:12 +0100)]
Add "rel=discussion" attribute to talk page tabs in skin template
Bug: T65198
Change-Id: Ifd1a7333c7b657d74860d206ea5b82d29bf97851
jenkins-bot [Sat, 13 Jun 2015 01:08:48 +0000 (01:08 +0000)]
Merge "ApiQueryRevisions: Remove bogus query optimization"
jenkins-bot [Sat, 13 Jun 2015 01:05:27 +0000 (01:05 +0000)]
Merge "Consistency tweaks: xml -> XML, Href -> href"
jenkins-bot [Sat, 13 Jun 2015 00:08:48 +0000 (00:08 +0000)]
Merge "Fix rel="copyright" for ApiHelp"
Ricordisamoa [Mon, 8 Jun 2015 13:39:06 +0000 (15:39 +0200)]
Fix rel="copyright" for ApiHelp
Bug: T94038
Bug: T93995
Change-Id: I06e9bb6797c4e4ee00e5d72eda1e273800b2c7f4
jenkins-bot [Fri, 12 Jun 2015 23:52:43 +0000 (23:52 +0000)]
Merge "Allow 'uselang', 'useskin', 'debug' as query parameters in RedirectSpecialPages"
jenkins-bot [Fri, 12 Jun 2015 23:50:57 +0000 (23:50 +0000)]
Merge "StashEdit: Use postWithToken"
jenkins-bot [Fri, 12 Jun 2015 23:36:50 +0000 (23:36 +0000)]
Merge "Check for link-local addresses in isPublic"
jenkins-bot [Fri, 12 Jun 2015 22:15:44 +0000 (22:15 +0000)]
Merge "Add image/pjpeg as an alias for image/jpeg"
jenkins-bot [Fri, 12 Jun 2015 20:49:56 +0000 (20:49 +0000)]
Merge "Do not support new installations via .php5 entrypoint any longer"
Translation updater bot [Fri, 12 Jun 2015 19:30:42 +0000 (21:30 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I5cc62b447fa6116ba6bab21556e4a0abc0d8738c
Bartosz Dziewoński [Fri, 12 Jun 2015 18:27:51 +0000 (20:27 +0200)]
mediawiki.widgets: Add missing dependency on mediawiki.Title, mediawiki.api
Used by mw.widgets.TitleInputWidget.
Change-Id: Ic47fb914c62c227f37c7eadb7bb6fbb846ebf3ad
jenkins-bot [Fri, 12 Jun 2015 18:14:40 +0000 (18:14 +0000)]
Merge "Simplify SpecialBlockList::preprocessResults"
Geoffrey Mon [Sun, 7 Jun 2015 01:03:37 +0000 (21:03 -0400)]
Disable Preferences save button before setting change
Disable the Special:Preferences 'Save' button if no
settings have been changed (uses keydown and mousedown
events as an alternative to change event, so is not perfect)
This prevents unnecessary saving when you can't remember
if you saved the settings or not.
Bug: T89457
Change-Id: I7c2e11302099280c561e435425b23afb9fb760b5
Ori Livneh [Fri, 12 Jun 2015 17:41:52 +0000 (10:41 -0700)]
Job queue: prefix metric keys with 'jobqueue'; segment with '.'
Currently names are segmented with a dash (for legacy reasons), which
makes them clutter the top-level MediaWiki.* metric namespace.
Change-Id: I785819723808368fbf9c3f5ea167f50f40733a3a
jenkins-bot [Fri, 12 Jun 2015 13:30:29 +0000 (13:30 +0000)]
Merge "Add login error browser test"
jenkins-bot [Thu, 11 Jun 2015 23:58:53 +0000 (23:58 +0000)]
Merge "Instrument edit failures"
Ori Livneh [Thu, 11 Jun 2015 23:38:46 +0000 (16:38 -0700)]
Instrument edit failures
Users on enwiki's VPT are reporting a spike in the frequency of rejected edits
due to loss of session data. It is difficult to corroborate these reports when
we don't have any instrumentation for them in the code, and thus no visibility
into how frequently they are occurring in the wild.
Bug: T102199
Change-Id: I0c99f292002209cf2bf4376f97b8c70a6b1ec021
Kunal Mehta [Thu, 11 Jun 2015 23:34:37 +0000 (16:34 -0700)]
Add release notes for
f6e5079
Change-Id: I4ccfebe6a59148c9825521f98b0f3654e87f3e11
jenkins-bot [Thu, 11 Jun 2015 22:14:45 +0000 (22:14 +0000)]
Merge "Live preview: Don't show empty summary preview"
mjbmr [Thu, 11 Jun 2015 20:15:07 +0000 (20:15 +0000)]
Add Goan Konkani Language
Bug: T96468
Change-Id: I12857c36baa2b931f2db86f6be9a50e5e3057967
jenkins-bot [Thu, 11 Jun 2015 18:59:11 +0000 (18:59 +0000)]
Merge "Use mediawiki/at-ease library for suppressing warnings"
Kunal Mehta [Wed, 10 Jun 2015 18:29:05 +0000 (11:29 -0700)]
Use mediawiki/at-ease library for suppressing warnings
wfSuppressWarnings() and wfRestoreWarnings() were split out into a
separate library. All usages in core were replaced with the new
functions, and the wf* global functions are marked as deprecated.
Additionally, some uses of @ were replaced due to composer's autoloader
being loaded even earlier.
Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to
mediawiki/vendor.
Bug: T100923
Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
Translation updater bot [Thu, 11 Jun 2015 18:45:08 +0000 (20:45 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Ifee61df93c4c0ceaf8c410e11429ec41d953dd35
Fred Emmott [Tue, 9 Jun 2015 21:24:15 +0000 (14:24 -0700)]
Add LCStore implementation that uses static arrays in PHP files
Implementation written by Fred Emmott of Facebook. Quoting Fred:
As well as array access being faster, the main advantage is actually
that this significantly reduces the use of unserialize(), which does a
lot of memcpys when making the strings.
Benchmarks compared to LCStoreCDB:
* HHVM (no repo-auth): ~7% improvement
* HHVM (with repo-auth): ~12% improvement
* PHP7: ~1% improvement
My (Legoktm) brief testing noted that the generated PHP files were
noticiably larger than the CDB ones:
* 1.5M en.l10n.php
* 932K l10n_cache-en.cdb
Bug: T99740
Change-Id: Ib2c5856d40cd928cab4a79cb935b3ce08c598300
Brian Wolff [Thu, 11 Jun 2015 18:09:09 +0000 (12:09 -0600)]
Add image/pjpeg as an alias for image/jpeg
image/pjpeg is a non-standard mime type for progressive jpegs
that is sometimes used. Not considering this an alias of normal
jpeg images was causing content type validation failures in
gwtoolset.
Bug: T102136
Change-Id: I505f16c4e8e4ee2e2a4675f4f07c4b8c12f9d187
jenkins-bot [Thu, 11 Jun 2015 15:53:27 +0000 (15:53 +0000)]
Merge "Made MessageCache::replace() ignore messages with content language suffix"
Bryan Davis [Thu, 11 Jun 2015 15:13:00 +0000 (09:13 -0600)]
AjaxResponse: Fix broken logic for extracting HTTP status codes
Follows-up
6584cef207 (r16266; 2006; MediaWiki 1.8.0).
This regex was just trimming whitespace from the start of the string. It
matched whitespace, then a match group for a first sequence of digits. The
replacement is just the digits match. This is essentially `ltrim()`. It didn't
account for the content after the match.
> echo preg_replace( '/^ *(\d+)/', '\1', '200 OK' );
> "200 OK"
This was causing:
> Warning: Unknown HTTP status code 200 OK in libs/HttpStatus.php:100
> Warning: Unknown HTTP status code 304 Not Modified OK in libs/HttpStatus.php:100
It defaults to HTTP 200. So presumbaly the impact was low. Though it may've caused
304 responses to have been broken (content body missing).
Bug: T102028
Change-Id: Iafff9982bbbee893c13f891901dde88f998db7a6
jenkins-bot [Thu, 11 Jun 2015 14:01:11 +0000 (14:01 +0000)]
Merge "Allow users with 'viewsuppressed' to view when limitTitle()d"
Glaisher [Thu, 11 Jun 2015 12:59:33 +0000 (17:59 +0500)]
Allow users with 'viewsuppressed' to view when limitTitle()d
This was probably missed when 'suppressrevision' was split into
'suppressrevision' and 'viewsuppressed'.
It was properly separated in limitPerformer() but not in limitTitle().
Bug: T101982
Change-Id: I9c62599124cbb74d2004b416f6e490c231dbd7b2
jenkins-bot [Thu, 11 Jun 2015 06:52:51 +0000 (06:52 +0000)]
Merge "Fix the autonym of Northern Luri and change Central to Northern"
jenkins-bot [Thu, 11 Jun 2015 06:46:48 +0000 (06:46 +0000)]
Merge "Update namespaces and special pages for Northern Luri (lrc) from translatewiki"
mjbmr [Fri, 5 Jun 2015 11:04:21 +0000 (11:04 +0000)]
Fix the autonym of Northern Luri and change Central to Northern
Change-Id: Ie60524ec5735fce03f0b8add635cf7c17798b0ab
jenkins-bot [Thu, 11 Jun 2015 03:23:17 +0000 (03:23 +0000)]
Merge "AutoloadGenerator.php: Update 'AutoloadClasses' in extension.json"
Derk-Jan Hartman [Wed, 10 Jun 2015 23:50:25 +0000 (01:50 +0200)]
Live preview: Don't show empty summary preview
Change-Id: I4334d02cb460fd0f995ba16f1170dd8500744692
Aaron Schulz [Wed, 10 Jun 2015 21:09:20 +0000 (14:09 -0700)]
Use instanceof in ParserCache::getKey to help IDEs
Change-Id: I772f53ee28ade5da499fe05259a17fed5cc52adb
Aaron Schulz [Wed, 10 Jun 2015 20:32:51 +0000 (13:32 -0700)]
Avoid section profiling in Hooks::run due to high overhead
* This wastes 60-70ms and is not really needed with flame graphs anyway
Change-Id: Ifc20ee6fb6439128195b025c652fa29c6f9fc25e
Translation updater bot [Wed, 10 Jun 2015 20:22:34 +0000 (22:22 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I699540faabd831a56e46973cf0849dde7c8383e8
jenkins-bot [Wed, 10 Jun 2015 19:33:55 +0000 (19:33 +0000)]
Merge "Chinese Conversion Table Update 2015-4"
jenkins-bot [Wed, 10 Jun 2015 19:30:18 +0000 (19:30 +0000)]
Merge "Encapsulate rc_params handling in RecentChange::parseParams"
umherirrender [Wed, 10 Jun 2015 19:24:32 +0000 (21:24 +0200)]
Simplify SpecialBlockList::preprocessResults
The main query is already joining on ipb_by to the user table,
no need for an extra query to get the user names for the LinkBatch
Change-Id: Id10fec72cdce9db27b0f366faa760bb34347dc7e
Darian Anthony Patrick [Wed, 10 Jun 2015 19:07:48 +0000 (12:07 -0700)]
Check for link-local addresses in isPublic
Bug: T102032
Change-Id: Id1b6b9efc2c47a94a1a81cf4479cd756d22a2c80
Stephane Bisson [Wed, 10 Jun 2015 12:39:17 +0000 (08:39 -0400)]
Encapsulate rc_params handling in RecentChange::parseParams
* Make MachineReadableRCFeedFormatter use it
* Some unit tests
* Also fixed some line-too-long warnings in RecentChange.php
Change-Id: I443d14f5d4cdac0945cb9c03608d55745bbb865b
mjbmr [Fri, 5 Jun 2015 10:48:19 +0000 (10:48 +0000)]
Update namespaces and special pages for Northern Luri (lrc) from translatewiki
See:
* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-Namespaces/lrc
* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-SpecialPageAliases/lrc
Bug: T102026
Change-Id: Ic4cca51a5a59dfe3580b66aa9cfcee3d8e3fea4b
jenkins-bot [Wed, 10 Jun 2015 18:40:37 +0000 (18:40 +0000)]
Merge "Convert mediawiki.action.edit.collapsibleFooter and mediawiki.special.changeslist.legend to using mw.cookie"
Glaisher [Tue, 9 Jun 2015 17:53:29 +0000 (22:53 +0500)]
Add some more allowedRedirectParams to MyContributions
+deletedOnly
+nsInvert
+associated
+newOnly
+topOnly
Change-Id: Ibde818e259a5511791dd60a15830973a90468ae8
jenkins-bot [Wed, 10 Jun 2015 17:49:40 +0000 (17:49 +0000)]
Merge "API: Add api-format-prettyprint-header-only-html"
jenkins-bot [Wed, 10 Jun 2015 17:46:20 +0000 (17:46 +0000)]
Merge "Password validity by policy per group"
csteipp [Thu, 23 Apr 2015 01:48:48 +0000 (18:48 -0700)]
Password validity by policy per group
Make password policies defined in a configurable policy, which is
defined by group. A user's password policy will be the maximum of
each group policy that the user belongs to.
Bug: T94774
Change-Id: Iad8e49ffcffed38df6293db0ef31a227d3962003
Derk-Jan Hartman [Wed, 10 Jun 2015 15:08:14 +0000 (17:08 +0200)]
StashEdit: Use postWithToken
Because it does caching and retry for token problems by itself.
Change-Id: Ic4e24f6c805de243225a23a3c445f578ed2d14ad
Bartosz Dziewoński [Wed, 10 Jun 2015 11:42:13 +0000 (13:42 +0200)]
Convert mediawiki.action.edit.collapsibleFooter and mediawiki.special.changeslist.legend to using mw.cookie
Remove redundant parameters, use sane defaults.
This changes the cookie name due to mw.cookie adding the standard
cookie prefix. This will cause existing values to be lost.
Bug: T67384
Change-Id: I00ba66b271cef4635ab4c31226c854583b8ba79e
jenkins-bot [Wed, 10 Jun 2015 09:35:50 +0000 (09:35 +0000)]
Merge "mediawiki.jqueryMsg: Phase out redundant data module and minor clean up"
jenkins-bot [Wed, 10 Jun 2015 09:26:09 +0000 (09:26 +0000)]
Merge "Convert mediawiki.toc and mediawiki.user to using mw.cookie"
Yaroslav Melnychuk [Tue, 2 Dec 2014 15:58:43 +0000 (17:58 +0200)]
Convert mediawiki.toc and mediawiki.user to using mw.cookie
* Remove redundant 'path' parameter (handled by mw.cookie)
* Remove redundant 'expires' parameter (handled by mw.cookie)
* Return value for absent cookie is now reliably 'null'.
This changes the cookie name due to mw.cookie adding the standard
cookie prefix. This will cause existing values to be lost. Make
use of this oppertunity to rename some cookie names.
* mw_hidetoc -> {wikiprefix} hidetoc
* mediaWiki.user.sessionId -> {wikiprefix} mwuser-sessionId
* mediaWiki.user.bucket -> {wikiprefix} mwuser-bucket
This is a re-submission of
a4d3d3b427713, which was reverted due
to T101857. Commit amended to use "sessionId" instead of "session".
Bug: T67384
Change-Id: Ibe88778cf3b6db90b3875c89305ffba53ac84104
Glaisher [Tue, 9 Jun 2015 17:24:44 +0000 (22:24 +0500)]
Allow 'uselang', 'useskin', 'debug' as query parameters in RedirectSpecialPages
These are special cases which can be used in all these
special pages so whitelist them.
Also fixed error in documentation.
Bug: T90390
Change-Id: Icc5e181533dc9825c877ccade4c80ea86ba19642
Timo Tijhof [Wed, 10 Jun 2015 03:53:41 +0000 (04:53 +0100)]
objectcache: Minor code clean up in ObjectCache.php
* Whitespace.
* Simplify logic.
* Apply coding conventions to documentation blocks (empty line
before annotations, no empty lines between annotation, consistent
order of annotations).
Change-Id: I3e5268d6a6295643d5725c66ea2a01bccf610ed8
Aaron Schulz [Wed, 10 Jun 2015 01:47:49 +0000 (18:47 -0700)]
Fixed "wfTimestamp() fed bogus time value" errors
* This broke OutputPage::checkLastModified() as the touched time was false
Change-Id: I118d3ddf07c7b69ad269f3aee0c70ab4159df192
jenkins-bot [Tue, 9 Jun 2015 23:02:11 +0000 (23:02 +0000)]
Merge "Fix variants for OO UI images"
Matthew Flaschen [Tue, 9 Jun 2015 20:55:50 +0000 (16:55 -0400)]
Fix variants for OO UI images
Fixes T101895, caused by https://gerrit.wikimedia.org/r/#/c/212917/
Bug: T101895
Change-Id: Icd9af0d2eba2a62a1761cb9c9dcd90fc736c2b39
jenkins-bot [Tue, 9 Jun 2015 22:44:00 +0000 (22:44 +0000)]
Merge "Update OOjs UI to v0.11.4"
jenkins-bot [Tue, 9 Jun 2015 22:24:44 +0000 (22:24 +0000)]
Merge "Html: Add buttonAttributes() more diligently"
James D. Forrester [Tue, 9 Jun 2015 22:05:33 +0000 (15:05 -0700)]
Update OOjs UI to v0.11.4
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.11.4/History.md
Change-Id: Id329e753412b33d5b4cf55bfc04ee072843bacc0
jenkins-bot [Tue, 9 Jun 2015 22:20:00 +0000 (22:20 +0000)]
Merge "Move several unit tests to directly subclass PHPUnit_Framework_TestCase"
Translation updater bot [Tue, 9 Jun 2015 20:11:11 +0000 (22:11 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Icfa21b09f24744c22245a540daa568a846592786
Timo Tijhof [Mon, 8 Jun 2015 14:47:21 +0000 (15:47 +0100)]
mediawiki.jqueryMsg: Phase out redundant data module and minor clean up
Follows-up
4a3e50a54.
* Merge mediawiki.jqueryMsg.data and mediawiki.jqueryMsg modules.
There's no need for this to be a separate module. The data is not for public consumption,
it's provided to jqueryMsg only.
* Remove unused default-default values for 'allowedHtmlElements'.
* Remove conditionals around data providing at initial run-time. Instead, expose
private method can call that. This way, we don't have two code paths claim
ownership over the namespace. And it makes the module easier to test and re-use
by not requiring the data to exist at first run time.
* Fix getDefinitionSummary() implementation to append data instead of setting
arbitary keys in parent data. ResourceLoader documentation of getDefinitionSummary()
has been updated to reflect this practice.
Change-Id: I40006d39514a997dce4930756a3dac84a0c9bb83
umherirrender [Sat, 6 Jun 2015 19:15:36 +0000 (21:15 +0200)]
API: Add api-format-prettyprint-header-only-html
Setting format=rawfm suggest to set format=raw ("To see the non-HTML
representation of the RAW format, set format=raw.") which does not
exists.
Add a new message for this case which does not contains the hint.
Change-Id: I40fe0b6e52dc0c70b07b368a3eace430e0c8f68c
jenkins-bot [Tue, 9 Jun 2015 17:07:27 +0000 (17:07 +0000)]
Merge "Revert "Implement MalformedTitleException for JS and use in constructor""
Chad Horohoe [Tue, 9 Jun 2015 17:02:48 +0000 (10:02 -0700)]
Move several unit tests to directly subclass PHPUnit_Framework_TestCase
Change-Id: I306166c116b9787a5568e5289799440dd1030345
jenkins-bot [Tue, 9 Jun 2015 14:07:13 +0000 (14:07 +0000)]
Merge "Consistent spacing after colon in apihelp"
Kevin Israel [Tue, 9 Jun 2015 12:28:56 +0000 (08:28 -0400)]
api/i18n: Fix a couple typos
Change-Id: I5990bd9e92b0ffb592ec7c3eb80280a2d3e2f19f
jenkins-bot [Tue, 9 Jun 2015 12:14:25 +0000 (12:14 +0000)]
Merge "Improve the srsearch API param doc"
Aaron Schulz [Wed, 20 May 2015 22:39:52 +0000 (15:39 -0700)]
Made MessageCache::replace() ignore messages with content language suffix
* This should not be used, and load() does not see them.
If the content language is 'de', then message overrides
will not include MediaWiki:<key>/de pages.
Change-Id: Ie4b6b356bd309814dd4a88040a29a7ebd509712a
jenkins-bot [Tue, 9 Jun 2015 09:25:55 +0000 (09:25 +0000)]
Merge "Fixed race condition in MessageCache::replace"
jenkins-bot [Tue, 9 Jun 2015 09:13:49 +0000 (09:13 +0000)]
Merge "resourceloader: Move packaging to a new getModuleContent() method"
Amir E. Aharoni [Tue, 9 Jun 2015 06:17:54 +0000 (09:17 +0300)]
Consistent spacing after colon in apihelp
Change-Id: Ic85554b29f78f1d26878879b9a408bbcbc702d8c
jenkins-bot [Tue, 9 Jun 2015 02:20:31 +0000 (02:20 +0000)]
Merge "resourceloader: Add context param to ResourceLoaderModule::getDependencies"
jenkins-bot [Tue, 9 Jun 2015 02:15:42 +0000 (02:15 +0000)]
Merge "Use assertSame in LogFormatterTestCase"
Andrew Green [Wed, 8 Apr 2015 21:34:08 +0000 (17:34 -0400)]
resourceloader: Add context param to ResourceLoaderModule::getDependencies
By providing context as a parameter in getDependencies, we allow
modules to dyanamically determine dependencies based on context.
Note: To ease rollout, the parameter is optional in this patch. It is expected
that it will be made non-optional in the near future.
The use case is for CentralNotice campaigns to be able to add special
modules ahead of deciding which banner to show a user. The dynamically
chosen RL modules would replace ad-hoc JS currently sent with some banners.
A list of possible campaigns and banners is already sent as a PHP-
implemented RL module; that's the module that will dynamically choose other
modules as dependencies when appropriate. This approach will save a round
trip as compared to dynamically loading the modules client-side.
For compatibility, extensions that override
ResourceLoaderModule::getDependencies() should be updated with the new
method signature. Here are changes for extensions currently deployed on
Wikimedia wikis:
* CentralNotice: I816bffa3815e2eab7e88cb04d1b345070e6aa15f
* Gadgets: I0a10fb0cbf17d095ece493e744296caf13dcee02
* EventLogging: I67e957f74d6ca48cfb9a41fb5144bcc78f885e50
* PageTriage: Ica3ba32aa2fc76d11a44f391b6edfc871e7fbe0d
* UniversalLanguageSelector: Ic63e617f51702c27104e123d4bed91983a726b7f
* VisualEditor: I0ac775ca286e64825e31a9213b94648e41a5bc30
For more on the CentralNotice use case, please see I9f80edcbcacca2.
Bug: T98924
Change-Id: Iee61e5b527321d01287baa03ad9b4d4f526ff3ef
S Page [Tue, 9 Jun 2015 01:21:03 +0000 (18:21 -0700)]
Improve the srsearch API param doc
Mention that it may be a way to invoke fancy search features.
Message-only change.
Change-Id: I6df02b53612f7c55f69a6bcad407a3a28a07bd2b