Aaron Schulz [Mon, 30 Mar 2015 18:15:01 +0000 (11:15 -0700)]
Removed unused parameter from User::checkNewtalk
Change-Id: I112fc32d9985664ab5edea842f52f62554c082ea
jenkins-bot [Mon, 30 Mar 2015 18:09:59 +0000 (18:09 +0000)]
Merge "ResourceLoaderImage: Add basic tests"
Bartosz Dziewoński [Sun, 29 Mar 2015 17:53:47 +0000 (19:53 +0200)]
ResourceLoaderImage: Add basic tests
Also remove some wrappers from ResourceLoaderImageModule tests that
are no longer necessary, since the files they were mocking now exist.
Bug: T86334
Change-Id: If02e58716ce8e6c8327c8939c6c6425bd48bb560
Aaron Schulz [Mon, 30 Mar 2015 16:36:49 +0000 (09:36 -0700)]
Made User::validateCache account for mQuickTouched
Change-Id: I3b733a0221462350f3a24d54ffe814357f379512
jenkins-bot [Mon, 30 Mar 2015 15:30:49 +0000 (15:30 +0000)]
Merge "Made user preferences load from the master by default"
jenkins-bot [Mon, 30 Mar 2015 13:42:35 +0000 (13:42 +0000)]
Merge "Update namespaces for Luri (lrc) from translatewiki.net"
mjbmr [Mon, 30 Mar 2015 00:27:07 +0000 (00:27 +0000)]
Update namespaces for Luri (lrc) from translatewiki.net
Change-Id: Icec87b9d08e7dce35e361f6250b28106aa4811f7
mjbmr [Sun, 29 Mar 2015 23:46:00 +0000 (23:46 +0000)]
Add list-style-type:persian for bgn, lrc, mzn and sdh
Change-Id: I9310a3b4a50c0b8ea6551d9f45e7a2e276a8a389
jenkins-bot [Sun, 29 Mar 2015 22:48:03 +0000 (22:48 +0000)]
Merge "Parser tests for page status indicators"
Bartosz Dziewoński [Sun, 2 Nov 2014 20:08:43 +0000 (21:08 +0100)]
Parser tests for page status indicators
https://www.mediawiki.org/wiki/Help:Page_status_indicators
Change-Id: Ic461fe889a3f8ef9f332019f72cfb732c0ec1eca
Bartosz Dziewoński [Sat, 28 Mar 2015 00:44:47 +0000 (01:44 +0100)]
ResourceLoaderImageModule: Rename 'image' in descriptors to 'file'
Like in OOjs UI. Less confusing. No one is using this yet.
Bug: T93669
Change-Id: Ib1c9af96b46ba660b3697d272129e071da1fdf18
Bartosz Dziewoński [Fri, 27 Mar 2015 17:27:47 +0000 (18:27 +0100)]
ResourceLoaderImageModule: Remove 'type' stuff
Provides no value and makes the definitions uglier. Also, the
implementation sucks.
This is a breaking change, but ResourceLoaderImageModule was not in
any public release yet.
Submitted patches to fix two usages in extensions:
* Gather: I371209afe7b48e7c215ea9912826d4eb2cacf4e5
* MobileFrontend: I1963f5fe759c3a031220157d3a6f0f3b42bc5426
Bug: T94073
Change-Id: I36cfdb09bb203b8d9958e6016447e446dd6ff78b
Bartosz Dziewoński [Mon, 23 Mar 2015 21:04:54 +0000 (22:04 +0100)]
ResourceLoaderImageModule: Implement CSS selector templates
Instead of a 'prefix', a 'selector' can be specified, with a string
containing a simple template to use for CSS selector. For example:
'selector' => '.mw-ui-icon-{name}'
'prefix' continues to work as before.
When using variants, one might want to provide separate
'selectorWithoutVariant' and 'selectorWithVariant' options.
Available variables are {prefix}, {type}, {name}, and {variant}.
Bug: T78215
Change-Id: I99ccaf25e8d24fed5afd0c4b770d2f389789ce4b
Bartosz Dziewoński [Fri, 27 Mar 2015 17:08:11 +0000 (18:08 +0100)]
ResourceLoaderImageModule: Add basic tests
Bug: T86334
Change-Id: Ie98bf5dec2d4d4c309ed5075b3191da3017f5ad4
Bartosz Dziewoński [Sun, 29 Mar 2015 16:29:41 +0000 (18:29 +0200)]
ResourceLoaderImageModule: Improve PHP 5.3 compatibility
In PHP 5.3.x and older, the isset() check in code example below will
yield true. In PHP 5.4 and later, and HHVM, it will correctly yield
false. http://3v4l.org/8p3hm
$options = 'foo';
isset( $options['bar'] );
Let's not depend on this behavior here.
Change-Id: I67e83af8afe85b3ddfb5db0009759b8ac5bb7d67
Fomafix [Sun, 29 Mar 2015 13:57:37 +0000 (13:57 +0000)]
mediawiki.action.edit.preview: Disable if there is no #wpTextbox1
ProofreadPage has custom editforms for Index pages, which are not
supported by the API. These editforms have no #wpTextbox1, so disable
live preview in that case.
Make this check on click avoid T94089.
Bug: T78709
Change-Id: I628d3b226a4294f2878fc4175080a975fd86e507
Translation updater bot [Sun, 29 Mar 2015 11:58:01 +0000 (13:58 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I8b8619a0715efcec1117bf8d086ff9496be48ac2
jenkins-bot [Sun, 29 Mar 2015 03:25:13 +0000 (03:25 +0000)]
Merge "Add release-notes for message escaping"
Kunal Mehta [Sat, 28 Mar 2015 05:22:51 +0000 (22:22 -0700)]
Simplify TitleTest::testWgWhitelistReadRegexp()
* Use setMwGlobals instead of doing it manually
* Give user no rights to avoid a database query
Change-Id: I3ab20972314e39bb81bc97c89fce7a4c0d331fe6
Bartosz Dziewoński [Sat, 28 Mar 2015 02:35:05 +0000 (03:35 +0100)]
Remove unused 'section-symbol' message
Change-Id: I3aed335d5dc57f0a6d87828bace0dc55c89c6d68
James D. Forrester [Fri, 27 Mar 2015 23:48:58 +0000 (16:48 -0700)]
build: Update grunt-banana-checker to v0.2.1
Change-Id: I7b60b856d8cf21640c382647c6570e32091b5cde
jenkins-bot [Fri, 27 Mar 2015 23:12:09 +0000 (23:12 +0000)]
Merge "Fix dependency of ResourceLoaderSpecialCharacterDataModule"
jenkins-bot [Fri, 27 Mar 2015 22:45:56 +0000 (22:45 +0000)]
Merge "Change default of $wgResourceLoaderMaxQueryLength to 2000"
Jan Zerebecki [Thu, 26 Feb 2015 16:51:13 +0000 (17:51 +0100)]
Change default of $wgResourceLoaderMaxQueryLength to 2000
The lowest commonly supported length is a bit over 2000. That is the limit of
Internet Explorer. For discussion of the IE limit see
http://blogs.msdn.com/b/ieinternals/archive/2014/08/13/url-length-limits-in-internet-explorer.aspx .
Some servers only support 4k.
Having it unlimited does not work when running qunit jenkins test jobs of the
Wikibase extension or when running its qunit tests in vagrant, because it hits
the nginx limit.
This also adds a mw.track call for when the request split happens.
Bug: T90453
Change-Id: Ic416def846f361425c46f7bd1022ed85fa8ac85e
Aaron Schulz [Thu, 26 Mar 2015 21:19:39 +0000 (14:19 -0700)]
Split out internal parseAndStash from the edit stashing API
Bug: T90040
Change-Id: Ifa49fb9955dafff0c82ae635a5e1b3fb16d5e783
Alex Monk [Fri, 27 Mar 2015 22:10:14 +0000 (22:10 +0000)]
Fix dependency of ResourceLoaderSpecialCharacterDataModule
I think this is probably what's causing the test failure in I3fafc561 on PS7
Follows-up If9c5cdbe
Change-Id: I8fafd734db49fdfaf088c68098c41920a2e6011b
jenkins-bot [Fri, 27 Mar 2015 22:08:02 +0000 (22:08 +0000)]
Merge "Changed user login logic to use less expensive touch() method"
Gergő Tisza [Thu, 29 Jan 2015 01:21:01 +0000 (01:21 +0000)]
Report uncaught errors via mw.track
Adds a global error handler that sends errors to mw.track as
an errorLogging.windowOnerror event.
Bug: T88874
Change-Id: Ic091c9f93c59bda47bda2cfd609c64cd1d014b39
Bryan Davis [Sun, 22 Mar 2015 22:54:06 +0000 (16:54 -0600)]
Remove MWLoggerMonologSamplingHandler
The Monolog\Handler\SamlingHandler class available since Monolog v1.12.0
is an upstreamed equivalent of MWLoggerMonologSamplingHandler.
Requires: I8790da95fd658234e35b2d846af35993ebcd80e9
Change-Id: I3841cbab95382a66098d90f5570fa0bf3521578a
jenkins-bot [Fri, 27 Mar 2015 18:45:48 +0000 (18:45 +0000)]
Merge "Correct typo in MediaWiki:Apihelp-paraminfo-param-formatmodules"
jenkins-bot [Fri, 27 Mar 2015 18:40:36 +0000 (18:40 +0000)]
Merge "Move WikiEditor's special character data and messages into core for use in other extensions"
umherirrender [Sat, 28 Feb 2015 09:38:08 +0000 (10:38 +0100)]
Add release-notes for message escaping
Some of this messages where used with raw html on wmf wikis, that makes
it possible that this message also will be used with raw html on third
party wikis, therefore give a hint in the release notes.
This includes release notes for:
Id55295a0406659242bbc12a59af7e23fb742237c: editsection
Ic4fcb40de844ac51c88fb51d752a4c286313ecf9: redirectto
I1e90962c3c94c8b72aadfc4c0d041d52e2cde3f1: version-poweredby-others
I7a5dfc8ecd2f84da0dce3e1357af462a3c0da23f: thisisdeleted, viewdeleted
Ifb58bd3823aa633135a701ae3e2ae9c955b422c0: protect-summary-cascade
Id16d8c8dff73fdacad6c9a4ff7f2919945b7e893: editlink, viewsourcelink
Ibcc1b49946bc91e12756eb3866448159493c61f4: lastmodifiedat,
laggedslavemode
Ifd696ecd93c76e56cb21b3f2645367beeeeb5ba0: retrievedfrom
Bug: T85864
Change-Id: I1b144242ccb8780120f1a8ad9e3b6fde0da760f5
Aaron Schulz [Fri, 27 Mar 2015 17:47:58 +0000 (10:47 -0700)]
Avoid using DB_MASTER in makeLikeArray
Bug: T92357
Change-Id: Ifd134f8572a247d6d977fdb36fb2814bc51e7fbe
Thiemo Mättig [Thu, 26 Mar 2015 09:17:07 +0000 (10:17 +0100)]
Replace Html::... with self::... in the Html class
How cool is that, I can call a patch "SelfHTML". ;-)
Change-Id: I17d36bc45a349c92715b88004aaae046d4f7be1c
Alex Monk [Fri, 13 Mar 2015 00:24:09 +0000 (00:24 +0000)]
Move WikiEditor's special character data and messages into core for use in other extensions
Using a ResourceLoader module to send the data to the client
For I3fafc561
Message changes:
wikieditor-toolbar-characters-page-.* -> special-characters-group-
wikieditor-toolbar-characters-(endash|emdash|minus) -> special-characters-title-
Bug: T91608
Change-Id: If9c5cdbe077e8796e1ebae99f759331251b5c4b1
jenkins-bot [Fri, 27 Mar 2015 17:28:38 +0000 (17:28 +0000)]
Merge "Add mobile target for mediawiki.confirmCloseWindow"
jenkins-bot [Fri, 27 Mar 2015 17:06:36 +0000 (17:06 +0000)]
Merge "Update MWLoggerLegacyLogger phpdoc"
jenkins-bot [Fri, 27 Mar 2015 17:06:01 +0000 (17:06 +0000)]
Merge "Allow MWLoggerMonologHandler to take prefix from channel"
Florian [Fri, 27 Mar 2015 16:56:50 +0000 (17:56 +0100)]
Add mobile target for mediawiki.confirmCloseWindow
Bug: T88949
Change-Id: I1e06668cbd149c23f7b961f7603be07262a021a9
jenkins-bot [Fri, 27 Mar 2015 16:44:22 +0000 (16:44 +0000)]
Merge "Made ProfilerStub return null instead of a dummy ScopedCallback"
jenkins-bot [Fri, 27 Mar 2015 16:38:02 +0000 (16:38 +0000)]
Merge "Removed view event from $wgAutopromoteOnce"
jenkins-bot [Fri, 27 Mar 2015 16:33:18 +0000 (16:33 +0000)]
Merge "Set parameter default to array() in WebResponse::setcookie()"
Purodha [Fri, 27 Mar 2015 00:42:33 +0000 (00:42 +0000)]
Correct typo in MediaWiki:Apihelp-paraminfo-param-formatmodules
Change-Id: I961b4a6cd7b8f9ea99fb93a2a624d45fe99501a7
Ejegg [Fri, 27 Mar 2015 15:58:26 +0000 (15:58 +0000)]
Merge "Fix TestingAccessWrapper::__call"
jenkins-bot [Fri, 27 Mar 2015 15:54:36 +0000 (15:54 +0000)]
Merge "ApiParse: Fix parse of new section title"
Thiemo Mättig [Fri, 27 Mar 2015 08:58:58 +0000 (09:58 +0100)]
Set parameter default to array() in WebResponse::setcookie()
This is a direct follow-up for the question raised in Ifab16c2.
Null is not a meaningful value in this case. As far as I can see the
only reason it was added was to make the parameter optional. Optional
array parameters are better marked with "= array()".
Change-Id: I86965d390fdb718de7fb81a9f4c48b2261c16aa9
jenkins-bot [Fri, 27 Mar 2015 08:37:28 +0000 (08:37 +0000)]
Merge "Remove unneeded variable assignment in Usercreate.php"
Aaron Schulz [Fri, 27 Mar 2015 05:51:13 +0000 (22:51 -0700)]
Made User actually use the mQuickTouched process cache
Change-Id: I158eae2dac16b5fdacd095fff7fb031b42804a1e
Aaron Schulz [Wed, 25 Mar 2015 00:30:26 +0000 (17:30 -0700)]
Made user preferences load from the master by default
* Warn when saving slave-loaded data in saveSettings()
* Respect the loading $flags for preferences/groups
* Fixed use of flags in addToDatabase()
* Made loadFromCache() protected to make this mess easier
to reason about (no callers found)
* Added some doc comments
Bug: T92232
Change-Id: Ic1dd66063cc2f98fc03861df1c523981f846a0be
Kunal Mehta [Fri, 27 Mar 2015 00:00:42 +0000 (17:00 -0700)]
Don't require database access for ContentHandlerTest
We can just mark all the titles as non-existent in the LinkCache
Change-Id: Ifd6fdfd0f8318dac8af7f7509705cf30d44c8a4e
jenkins-bot [Thu, 26 Mar 2015 23:26:14 +0000 (23:26 +0000)]
Merge "Revert "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1""
Aaron Schulz [Thu, 26 Mar 2015 22:47:33 +0000 (15:47 -0700)]
Removed view event from $wgAutopromoteOnce
* This avoids master queries on view. It could use local jobs, but nothing
was using this by default anyway.
Bug: T92357
Change-Id: Id6353942215a3c704848d3bcc31c2b76225c78be
jenkins-bot [Thu, 26 Mar 2015 22:37:59 +0000 (22:37 +0000)]
Merge "Made addAutopromoteOnceGroups check wfReadOnly"
jenkins-bot [Thu, 26 Mar 2015 22:25:19 +0000 (22:25 +0000)]
Merge "Introduced User::touch() method to bump the getTouched() value using memcached"
Aaron Schulz [Thu, 26 Mar 2015 22:20:14 +0000 (15:20 -0700)]
Made addAutopromoteOnceGroups check wfReadOnly
Change-Id: I2fecf6616dd00cd34647f67298583ea8ec2977c0
jenkins-bot [Thu, 26 Mar 2015 22:13:48 +0000 (22:13 +0000)]
Merge "Made showJobs.php include abandoned jobs in --list"
jenkins-bot [Thu, 26 Mar 2015 22:11:34 +0000 (22:11 +0000)]
Merge "refreshLinks.php: Limit rows scanned per query in deleteLinksFromNonexistent()"
TheDJ [Thu, 26 Mar 2015 22:06:43 +0000 (22:06 +0000)]
Revert "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1"
This caused T94089
This reverts commit
c890a2fdefaae2551897ce2f1b9f39d82b435dc2.
Change-Id: Ia5e151d12f0ad03ce50802502e661d7499749526
Aaron Schulz [Thu, 26 Mar 2015 05:19:32 +0000 (22:19 -0700)]
Introduced User::touch() method to bump the getTouched() value using memcached
* This lets some callers avoid the heavyweight invalidateCache() method
Bug: T91279
Bug: T92357
Change-Id: I8c1c7ff9c5574f0eca23e7effde199ab13a19231
Translation updater bot [Thu, 26 Mar 2015 20:55:24 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I2c29611aa564f96e33980784eb64907598230542
Kevin Israel [Sun, 15 Mar 2015 10:58:58 +0000 (06:58 -0400)]
refreshLinks.php: Limit rows scanned per query in deleteLinksFromNonexistent()
This also makes the -e and [start] options apply to --dfn-only, making it
possible to restart the script other than at the beginning if necessary.
Bug: T38195
Change-Id: I828b522039290b5700faa89fb8ad4075e50332e7
Aaron Schulz [Thu, 26 Mar 2015 19:17:10 +0000 (12:17 -0700)]
Made showJobs.php include abandoned jobs in --list
Change-Id: I7ae8dd2470d5e15fd66c6c06f3feb6d70527daa3
Derk-Jan Hartman [Thu, 19 Mar 2015 21:20:53 +0000 (22:20 +0100)]
ApiParse: Fix parse of new section title
Mirror how EditPage transforms a new sectiontitle to be gray, have
the arrow etc...
Bug: T84877
Change-Id: If4d8fd11386c87a5b6d51b6afbeae737b3a829a5
umherirrender [Thu, 26 Mar 2015 19:13:01 +0000 (20:13 +0100)]
Remove unneeded variable assignment in Usercreate.php
Change-Id: I8fe2e6bc3a6c63dacee8d6c8f314d9b4161b7144
Thiemo Mättig [Thu, 26 Mar 2015 15:42:14 +0000 (16:42 +0100)]
Fix inline documentation in WebResponse
Main reason to touch this file are the missing "null" types in the
documentation.
Change-Id: Ifab16c276efb3d8c4aa0a27d8d5106d4e3303794
jenkins-bot [Thu, 26 Mar 2015 18:22:06 +0000 (18:22 +0000)]
Merge "Update OOjs UI to v0.9.4"
Aaron Schulz [Thu, 26 Mar 2015 17:59:30 +0000 (10:59 -0700)]
Changed user login logic to use less expensive touch() method
Change-Id: I5143c381e870d65a1c5bf4cf28ec4abe1bbf3bfe
jenkins-bot [Thu, 26 Mar 2015 16:45:51 +0000 (16:45 +0000)]
Merge "Fixed the usage of $flags in loadLastEdit()"
jenkins-bot [Thu, 26 Mar 2015 16:16:17 +0000 (16:16 +0000)]
Merge "ApiParse: Forbid section=new when using page, pageid, or oldid"
jenkins-bot [Thu, 26 Mar 2015 15:34:33 +0000 (15:34 +0000)]
Merge "LivePreview: Update the correct mw-editfooter-list"
jenkins-bot [Thu, 26 Mar 2015 15:09:47 +0000 (15:09 +0000)]
Merge "Fix typos in qunit tests"
aude [Thu, 26 Mar 2015 14:40:18 +0000 (15:40 +0100)]
Fix typos in qunit tests
seperator -> separator
Change-Id: I67ff04d11f0600dd528fa09894b48d1d2edd248f
jenkins-bot [Thu, 26 Mar 2015 14:07:54 +0000 (14:07 +0000)]
Merge "Fix misleading $class = false default in Html::infoBox"
jenkins-bot [Thu, 26 Mar 2015 13:58:22 +0000 (13:58 +0000)]
Merge "More specific types in doc tags in the Html class"
Derk-Jan Hartman [Thu, 26 Mar 2015 13:06:49 +0000 (14:06 +0100)]
LivePreview: Update the correct mw-editfooter-list
mw-editfooter-list is used by both templatesUsed and hiddencats, so
make sure we replace correct one.
Bug: T78834
Change-Id: I00be75ac6d68f96fb366b9561ec1ee0e1998f656
Niklas Laxström [Thu, 26 Mar 2015 10:44:18 +0000 (11:44 +0100)]
Make wfWarn name the caller in Http::get
The warning is useless as of now, unless you have stracktraces.
Bug: T91764
Change-Id: I8fcae49f3943ab2f6d13519c5f8d370ed147b185
Thiemo Mättig [Thu, 26 Mar 2015 09:43:01 +0000 (10:43 +0100)]
Fix misleading $class = false default in Html::infoBox
I found this because my PHPStorm complains about the type mismatch.
I could have changed the @param tag to "string|bool", but when looking
at the code, the $class variable is casted to a string anyway and
never used as a bool.
Change-Id: I3450fa8a898923bbae26830ed3be0017685020d3
Thiemo Mättig [Thu, 26 Mar 2015 09:38:35 +0000 (10:38 +0100)]
More specific types in doc tags in the Html class
This is a pure inline-documentation patch. It fixes a few actual
mistakes in documentation tags and makes some generic "array" types
more specific, if that's possible.
Change-Id: Id02e1e936624b845316b8ce99f8b8d2a1f829e97
Adam Roses Wight [Thu, 26 Mar 2015 08:57:33 +0000 (01:57 -0700)]
Fix TestingAccessWrapper::__call
We were only passing the first parameter to the wrapped object's methods.
Change-Id: I27a69d1cc1b2d048e44514af8b4ac79d7ee1fb85
jenkins-bot [Thu, 26 Mar 2015 08:18:37 +0000 (08:18 +0000)]
Merge "LivePreview: Let's not potentially mangle #wikiPreview"
Aaron Schulz [Thu, 26 Mar 2015 05:38:34 +0000 (22:38 -0700)]
Made User::loadFromRow protected for sanity
* The loading logic is complex enough without more possible
entry points to cover
* No outside callers found
Change-Id: I7e9bace35afb0a540993423cf1da98381a516ac5
Max Semenik [Mon, 23 Mar 2015 18:51:39 +0000 (11:51 -0700)]
Deprecate wfDiff()
This function is backwards:
* The stated purpose is to generate a list of differences for callers to parse,
however we already have DiffEngine that returns a list of differences that you
don't need to parse manually shooting your feet off in process.
* With improvements in PHP performance in the last 10 years, shelling out instead of using
a pure-PHP diff has a doubtful performance benefit.
* Even in configurations where it's faster on predominant diffs (which have to be huge),
shelling out has its own security implications.
This function is not used in core. The only extensons using it are Echo (which just parses
its output so would be better off with DiffEngine) and AbuseFilter, let's not add more users
by tolerating this function.
Also, add error checking while I'm at it.
Change-Id: Ia67debce39de8252312fd887ebfbe6fb89f9edc9
Aaron Schulz [Thu, 26 Mar 2015 03:50:41 +0000 (20:50 -0700)]
Made ProfilerStub return null instead of a dummy ScopedCallback
* This can happen well over 10k times per request due to the message
hooks. Avoiding the object construction seems prudent.
Change-Id: I45ff7b8c10851f15a25cbea9a2df3669ec21dbd3
Aaron Schulz [Thu, 26 Mar 2015 03:39:39 +0000 (20:39 -0700)]
Fixed the usage of $flags in loadLastEdit()
Bug: T93976
Change-Id: I57eb41b463116ea27c0fc8dac8fff07db593499a
jenkins-bot [Thu, 26 Mar 2015 02:37:02 +0000 (02:37 +0000)]
Merge "Replace mb_strtolower with strtolower"
jenkins-bot [Thu, 26 Mar 2015 00:27:44 +0000 (00:27 +0000)]
Merge "mediawiki.action.edit.preview: Replace only title in firstHeading"
Derk-Jan Hartman [Wed, 25 Mar 2015 23:55:16 +0000 (00:55 +0100)]
ApiParse: Forbid section=new when using page, pageid, or oldid
Change-Id: I45ce0fe2083587e429143aa3d8d832aa884e1ad7
Derk-Jan Hartman [Wed, 25 Mar 2015 23:33:06 +0000 (00:33 +0100)]
LivePreview: Let's not potentially mangle #wikiPreview
Sometimes you look at what you have written and realize it can be better...
Bug: T90490
Change-Id: If620e5c672e4632997028ddc9f802a82a83e6924
jenkins-bot [Wed, 25 Mar 2015 23:22:36 +0000 (23:22 +0000)]
Merge "LivePreview: Notifiy user about errors"
Derk-Jan Hartman [Sat, 28 Feb 2015 15:26:25 +0000 (16:26 +0100)]
LivePreview: Notifiy user about errors
Bug: T90490
Change-Id: Ic52311839c175a213065eec442e50b4de0463822
James D. Forrester [Wed, 25 Mar 2015 22:26:56 +0000 (15:26 -0700)]
Update OOjs UI to v0.9.4
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.4/History.md
Change-Id: I0ab9ef6d67e16379785e143cb20ae8de7fe78a7e
Translation updater bot [Wed, 25 Mar 2015 20:44:14 +0000 (21:44 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I79e13cf2d6d3bc8c447b75a49ac0bdca2ae536d9
jenkins-bot [Wed, 25 Mar 2015 20:13:01 +0000 (20:13 +0000)]
Merge "Remove never thrown UploadStashNotAvailableException"
Derk-Jan Hartman [Thu, 12 Mar 2015 21:28:28 +0000 (22:28 +0100)]
LivePreview: Support section=new for preview
Reproduce the new section behavior for the full submit preview.
Diffing will require a bit more additional work in Api.
Bug: T84877
Change-Id: Iec71fdc7ba09f91683214f3d65472ea2f72a06b1
jenkins-bot [Wed, 25 Mar 2015 19:29:54 +0000 (19:29 +0000)]
Merge "PrefixSearchTest: Move insertPage() from setUp() to addDBData()"
umherirrender [Sat, 14 Mar 2015 14:12:05 +0000 (15:12 +0100)]
Remove never thrown UploadStashNotAvailableException
Also move creation of UploadStash to main entry point of the special
page to avoid use of context before it is set (by called getUser).
Change-Id: Ibcb17b6ee1b853d807f91104ba428b307e9a5208
Timo Tijhof [Mon, 23 Mar 2015 05:29:55 +0000 (05:29 +0000)]
PrefixSearchTest: Move insertPage() from setUp() to addDBData()
Doesn't change the semantics much since run() calls addDBData()
right before setUp(), but these belong addDBData() per the
documentation of setUp().
Change-Id: I304a0aff1fc6b2f0541b3dc3c9e3527772c8f91c
Timo Tijhof [Mon, 23 Mar 2015 05:36:20 +0000 (05:36 +0000)]
MediaWikiTestCase: Consistently use UTSysop user in setup/teardown
Change-Id: I42d108ca11246725d936e505508b73a9ae7553c6
Marius Hoch [Wed, 25 Mar 2015 15:09:21 +0000 (16:09 +0100)]
Fallback to read from master in DifferenceEngine::loadRevisionData
In DifferenceEngine we need to show a diff immediately after
an edit happened if someone did a rollback. To make that work
again, try loading a revision from master if we have more than
one database servers and we failed loading the revision from
a slave.
Change-Id: I08a16faa9e637c614c6d2fc9a10536c7b41685a8
Follows:
3c2bc32ae1775f5e875958b62d7181b4b5cfe24e
Bug: T93866
Niklas Laxström [Wed, 25 Mar 2015 08:53:40 +0000 (09:53 +0100)]
Replace mb_strtolower with strtolower
Function mb_strtolower is not guaranteed to be present. In this case
we are dealing with language codes, which are ASCII, for which there
is no need to use multibyte version in the first place.
Bug: T55912
Change-Id: I009bab2ff03b22142d35c8be60711266ca3683c1