lhc/web/wiklou.git
9 years agoFixed Style/FileName RuboCop offense
Željko Filipin [Wed, 18 Mar 2015 17:45:54 +0000 (18:45 +0100)]
Fixed Style/FileName RuboCop offense

$ bundle exec rubocop
Inspecting 25 files
.C.......................

Offenses:

maintenance/jsduck/CustomTags.rb:1:1: C: Use snake_case for source file
names.
^

25 files inspected, 1 offense detected

Bug: T91485
Change-Id: I91b43362f265a05284495727dab5465e1c4f0542

9 years agoMerge "Truncate null revision comment for whole multibyte characters"
jenkins-bot [Wed, 18 Mar 2015 08:02:02 +0000 (08:02 +0000)]
Merge "Truncate null revision comment for whole multibyte characters"

9 years agoEmergency remove .mw-headline-anchor
Bartosz Dziewoński [Tue, 17 Mar 2015 21:59:13 +0000 (22:59 +0100)]
Emergency remove .mw-headline-anchor

Follows-up 6c7480e5f0d2a6a73d2.

The should stop the § character from being indexed by Google et al.

Bug: T18691
Bug: T93000
Change-Id: Ie9e334e973e3ded270f1897a2c3816d9df739fc0

9 years agoMerge "Optimize order of styles and scripts"
jenkins-bot [Tue, 17 Mar 2015 21:31:04 +0000 (21:31 +0000)]
Merge "Optimize order of styles and scripts"

9 years agoMerge "Fixed timestamp comparison in fixUserRegistration"
jenkins-bot [Tue, 17 Mar 2015 18:50:50 +0000 (18:50 +0000)]
Merge "Fixed timestamp comparison in fixUserRegistration"

9 years agoSync up with Parsoid parserTests.
Arlo Breault [Tue, 17 Mar 2015 17:02:25 +0000 (10:02 -0700)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 9d213e1eb420bfd9ef6fbc661556b40c8aee32f6

Change-Id: Icb9de1ae26a7148fb0fe68840c5a9cfd45640560

9 years agoMerge "Tidy up tidy usage"
jenkins-bot [Tue, 17 Mar 2015 16:06:24 +0000 (16:06 +0000)]
Merge "Tidy up tidy usage"

9 years agoMerge "API unittests, pass optional params to doApiRequest()"
jenkins-bot [Tue, 17 Mar 2015 14:05:42 +0000 (14:05 +0000)]
Merge "API unittests, pass optional params to doApiRequest()"

9 years agoMerge "New testing wrapper to circumvent object access"
jenkins-bot [Tue, 17 Mar 2015 14:03:39 +0000 (14:03 +0000)]
Merge "New testing wrapper to circumvent object access"

9 years agoNew testing wrapper to circumvent object access
Adam Roses Wight [Fri, 27 Feb 2015 17:22:16 +0000 (09:22 -0800)]
New testing wrapper to circumvent object access

The new TestingAccessWrapper class provides a convenient way to make
all of an object's methods and properties public.

TODO: We should organize test helpers into a source directory.  Note that the
helper and its test are in the same directory.

Change-Id: I958d55df18c74e9d2b25d98cd0316989a0fbbe6f

9 years agoFixed timestamp comparison in fixUserRegistration
Aaron Schulz [Tue, 17 Mar 2015 02:33:25 +0000 (19:33 -0700)]
Fixed timestamp comparison in fixUserRegistration

* Also optimized batching logic slightly

Change-Id: I0cedb5b39f996b7baec067890f230cff51468e4b

9 years agoOptimize order of styles and scripts
Ori Livneh [Mon, 16 Mar 2015 02:45:17 +0000 (19:45 -0700)]
Optimize order of styles and scripts

The current ordering of scripts and stylesheets in <head> causes all major
browsers to serialize and defer requests that could be performed in parallel.

The problem is that external stylesheets are loaded before inline scripts. As
Steven Souders explains, "all major browsers preserve the order of CSS and
JavaScript. The stylesheet has to be fully downloaded, parsed, and applied
before the inline script is executed. And the inline script must be executed
before the remaining resources can be downloaded. Therefore, resources that
follow a stylesheet and inline script are blocked from downloading."[1]

In other words: the browser could start loading body images, but it refuses to
do that until it has executed inline scripts in head. And it refuses to execute
those scripts until the external CSS is downloaded, parsed and applied. You can
see the effect of this in this image, showing the request waterfall for
[[en:Gothic Alphabet]]: [2]. Notice how no images were requested before the
browser had finished processing the three load.php requests at the top.

To fix this, we want to move the inline scripts above the external CSS. This is
a little bit tricky, because the inline scripts depend on mw.loader, which is
loaded via an external script. If we move the external script so that it too is
above the external stylesheet, we force the browser to serialize requests,
because the browser will not retrieve the external CSS until it has retrieved
and executed the external JS code. So what we want is to move the inline
scripts above the external stylesheet, but keep the external script (which the
inline scripts depend on) below the external stylesheet.

We can do this by wrapping the inline script code in a closure (which binds
'mw') and enqueuing the closure in a global array which will be processed by
the startup module at just the right time.

Net result: external CSS and JS is retrieved in parallel, retrieval of images
(and other external assets) is unblocked, but the order in which code is
evaluated remains the same.

[1]: <http://www.stevesouders.com/blog/2009/05/06/positioning-inline-scripts/>
[2]: <http://people.wikimedia.org/~ori/enwiki-waterfall.png> (excerpted from
 <http://www.webpagetest.org/result/150316_0C_7MB/1/details/>.

Change-Id: I98d383a6299ffbd10210431544a505338ca8643f

9 years agoAPI unittests, pass optional params to doApiRequest()
Yuri Astrakhan [Tue, 17 Mar 2015 01:07:24 +0000 (04:07 +0300)]
API unittests, pass optional params to doApiRequest()

ApiQueryTestBase::check() should pass all optional params
like session and user to the doApiRequest()

Change-Id: If1cb52b03faba06c97d330a91a23893fe08acf22

9 years agoMerge "Regenerate autoload.php"
jenkins-bot [Tue, 17 Mar 2015 00:19:07 +0000 (00:19 +0000)]
Merge "Regenerate autoload.php"

9 years agoRegenerate autoload.php
Timo Tijhof [Tue, 17 Mar 2015 00:08:01 +0000 (01:08 +0100)]
Regenerate autoload.php

Follows-up 87dfc20b1e.

It recently started generating dirty output because
BufferingStatsdDataFactory was manually placed – in a different
position than script would (i.e. not alphabetical).

Change-Id: I030a6ec9eb6f3a9b6cb54c9646acf2a898b93a80

9 years agoFixed phpunit exception test
Yuri Astrakhan [Mon, 16 Mar 2015 23:37:38 +0000 (02:37 +0300)]
Fixed phpunit exception test

phpunit has removed that class in
https://github.com/sebastianbergmann/phpunit/commit/f0322b6978bc2b6fd9a17f499950a4b023ef3db4
instead adding a dependency on "sebastian/comparator": "dev-master"
https://github.com/sebastianbergmann/comparator

The class name changed from PHPUnit_Framework_ComparisonFailure
to \SebastianBergmann\Comparator\ComparisonFailure\ComparisonFailure

Bug: T90880
Change-Id: I8988d0b07c00f54c8c8dd38a5e92a5736d88b163

9 years agoMerge "Ignore phpcs in autoload.php"
jenkins-bot [Mon, 16 Mar 2015 22:00:51 +0000 (22:00 +0000)]
Merge "Ignore phpcs in autoload.php"

9 years agoMerge "Add batching support to fixUserRegistration.php"
jenkins-bot [Mon, 16 Mar 2015 21:23:54 +0000 (21:23 +0000)]
Merge "Add batching support to fixUserRegistration.php"

9 years agoMerge "JsonContent: Pass FormatJson::UTF8_OK when beautifying JSON"
jenkins-bot [Mon, 16 Mar 2015 21:23:05 +0000 (21:23 +0000)]
Merge "JsonContent: Pass FormatJson::UTF8_OK when beautifying JSON"

9 years agoMerge "Fix log message for blocks without duration"
jenkins-bot [Mon, 16 Mar 2015 21:21:42 +0000 (21:21 +0000)]
Merge "Fix log message for blocks without duration"

9 years agoAdd batching support to fixUserRegistration.php
Kunal Mehta [Mon, 16 Mar 2015 20:07:33 +0000 (13:07 -0700)]
Add batching support to fixUserRegistration.php

Also:
* Add wfWaitForSlaves() call
* Clear User cache after updating registration time
* Don't use empty()
* Use the master for everything

Bug: T92890
Change-Id: I88b97befdbd78ef12eda9a9571f6943c7b232207

9 years agoJsonContent: Pass FormatJson::UTF8_OK when beautifying JSON
Bartosz Dziewoński [Mon, 16 Mar 2015 20:53:33 +0000 (21:53 +0100)]
JsonContent: Pass FormatJson::UTF8_OK when beautifying JSON

Currently it is not beautiful at all.

Change-Id: I82a07238b4213212b8e4a7150e35486f6dc90bc6

9 years agoTidy up tidy usage
Arlo Breault [Mon, 16 Mar 2015 18:26:52 +0000 (10:26 -0800)]
Tidy up tidy usage

 * There's a branch path in the sanitizer that depends on $wgUseTidy,
   which means the test output differs from on wiki.

 * In general, we should set these variables to match the wiki behaviour
   in tests.

 * Exposes T92892, Sanitizer removes empty tags when tidy is disabled.

 * Tweaked tests for T19663 to use an extension tag to show that
   HTML5 tags with non-word characters make it through the parser
   intact (before being ultimately sanitized).

Change-Id: I09c72fd739e11a8b757f37dc4c790758d782ad73

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 16 Mar 2015 20:32:14 +0000 (21:32 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4ca8bda44de1a3e7efec4e7322fb9659446d3988

9 years agoFix log message for blocks without duration
umherirrender [Fri, 13 Mar 2015 14:16:32 +0000 (15:16 +0100)]
Fix log message for blocks without duration

Very old blocks form 2004 have not any log_params and therefor enforce a
duration of infinite to be shown on Special:Log.

Follow-Up: Ibc7fcaa5a952ff90d42a6477da4baa429f3de64b
Change-Id: I4bdfab1ff865501a780ed0c7c50e2b1bab467a4b

9 years agoFix phpcs errors and warnings in includes/specials
Kunal Mehta [Sun, 15 Mar 2015 02:50:37 +0000 (19:50 -0700)]
Fix phpcs errors and warnings in includes/specials

Change-Id: I7608459fd50963fa8478b97ccd8f5a1a9d87aae8

9 years agoIgnore phpcs in autoload.php
Timo Tijhof [Mon, 16 Mar 2015 18:06:13 +0000 (19:06 +0100)]
Ignore phpcs in autoload.php

Causes 20 warnings for line length
https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs-HEAD/13849/console

As being autogenerated, migth as well ignore so we can have
mediawiki-core pass.

Change-Id: Iedbe527456144c9b09b7ba93a8ce67edf0b47015

9 years agoMerge "Re-introduce AvailableRightsTest for User::getAllRights completeness"
jenkins-bot [Mon, 16 Mar 2015 18:00:02 +0000 (18:00 +0000)]
Merge "Re-introduce AvailableRightsTest for User::getAllRights completeness"

9 years agoMerge "registration: Fix merging of $wgExtensionCredits"
jenkins-bot [Mon, 16 Mar 2015 17:37:51 +0000 (17:37 +0000)]
Merge "registration: Fix merging of $wgExtensionCredits"

9 years agoMerge "Clean up $wgSQLiteDataDir handling and removed standalone sqlite class"
jenkins-bot [Mon, 16 Mar 2015 17:22:10 +0000 (17:22 +0000)]
Merge "Clean up $wgSQLiteDataDir handling and removed standalone sqlite class"

9 years agoregistration: Fix merging of $wgExtensionCredits
Kunal Mehta [Mon, 16 Mar 2015 16:47:48 +0000 (09:47 -0700)]
registration: Fix merging of $wgExtensionCredits

$wgExtensionCredits has two-levels of arrays, so it needs to be merged
recursively.

Bug: T91609
Change-Id: I4e5fc50059745a89fb69bc1e05a299fd9aaee968

9 years agoMerge "Lower timeout of upload stash -> image scaler requests"
jenkins-bot [Mon, 16 Mar 2015 15:10:21 +0000 (15:10 +0000)]
Merge "Lower timeout of upload stash -> image scaler requests"

9 years agoApiParse: Support previewing section=new
Derk-Jan Hartman [Tue, 10 Mar 2015 21:27:01 +0000 (22:27 +0100)]
ApiParse: Support previewing section=new

When live previewing a 'new' section, we want to automatically add the
edit summary/sectiontitle as an H2 element, as the Edit Page and API
do as well.

Bug: T84877
Change-Id: I40925c16284bb97a4d491e12a8e7878b9d1b4810

9 years agoMerge "Enable mw-ui-radio styles on Special:Preferences"
Prtksxna [Mon, 16 Mar 2015 10:36:07 +0000 (10:36 +0000)]
Merge "Enable mw-ui-radio styles on Special:Preferences"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 15 Mar 2015 20:17:22 +0000 (21:17 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5547cae4cf155c31b20a231e1fd7f81848e14612

9 years agoSet main RequestContext title in api.php
Brad Jorsch [Sat, 14 Mar 2015 01:11:13 +0000 (21:11 -0400)]
Set main RequestContext title in api.php

We set $wgTitle to a dummy title, and RequestContext::getMain()->getTitle()
falls back to that so everything *works*, but RequestContext whines
about it.

Set the same dummy title explicitly on RequestContext::getMain() to shut
things up.

Bug: T78414
Change-Id: I5b90df16cf2f51a6edd5898e9712161f335202a7

9 years agoMerge "Fix phpcs errors and warnings in includes/specialpage"
jenkins-bot [Sun, 15 Mar 2015 19:14:01 +0000 (19:14 +0000)]
Merge "Fix phpcs errors and warnings in includes/specialpage"

9 years agoFix phpcs errors and warnings in includes/specialpage
Kunal Mehta [Sun, 15 Mar 2015 02:40:15 +0000 (19:40 -0700)]
Fix phpcs errors and warnings in includes/specialpage

Change-Id: Ie9276c162e20b28915d31e5a87b2f18cf1c295b6

9 years agoAPI: Return parsedsummary on onlypst
Fomafix [Thu, 18 Dec 2014 13:14:54 +0000 (13:14 +0000)]
API: Return parsedsummary on onlypst

This updates the summary preview on "Show changes" for LivePreview.

Bug: T84836
Change-Id: I169fd1e1b6ed4d4f43ca69f92bc7a38e7823ddae

9 years agoMerge "Fix phpcs errors and warnings in includes/site"
jenkins-bot [Sun, 15 Mar 2015 03:29:59 +0000 (03:29 +0000)]
Merge "Fix phpcs errors and warnings in includes/site"

9 years agoresourceloader: Add ResourceLoader::isModuleRegistered()
Kunal Mehta [Fri, 30 Jan 2015 21:36:52 +0000 (13:36 -0800)]
resourceloader: Add ResourceLoader::isModuleRegistered()

Currently if code wants to check whether a module is registered it
has to call getModule() and see if the response !== null.

Change-Id: I4b470083ddaa5d8cd6be50d5c5b690d4b99b6c4a

9 years agoMerge "Fix phpcs errors and warnings in includes/exception"
jenkins-bot [Sun, 15 Mar 2015 02:45:32 +0000 (02:45 +0000)]
Merge "Fix phpcs errors and warnings in includes/exception"

9 years agoMerge "Fix phpcs errors and warnings in includes/json"
jenkins-bot [Sun, 15 Mar 2015 02:42:53 +0000 (02:42 +0000)]
Merge "Fix phpcs errors and warnings in includes/json"

9 years agoMerge "Fix phpcs errors and warnings in includes/skins"
jenkins-bot [Sun, 15 Mar 2015 02:42:48 +0000 (02:42 +0000)]
Merge "Fix phpcs errors and warnings in includes/skins"

9 years agoMerge "Fix phpcs errors and warnings in includes/filerepo"
jenkins-bot [Sun, 15 Mar 2015 02:42:13 +0000 (02:42 +0000)]
Merge "Fix phpcs errors and warnings in includes/filerepo"

9 years agoFix phpcs errors and warnings in includes/site
Kunal Mehta [Sun, 15 Mar 2015 02:12:18 +0000 (19:12 -0700)]
Fix phpcs errors and warnings in includes/site

Change-Id: Id6ae5659af6062b92bb964f1f0951e61408725ec

9 years agoFix phpcs errors and warnings in includes/exception
Kunal Mehta [Sun, 15 Mar 2015 01:59:28 +0000 (18:59 -0700)]
Fix phpcs errors and warnings in includes/exception

Change-Id: I979c94a41df67426e621a734d5a86d55b890d269

9 years agoFix phpcs errors and warnings in includes/json
Kunal Mehta [Sun, 15 Mar 2015 02:11:19 +0000 (19:11 -0700)]
Fix phpcs errors and warnings in includes/json

Change-Id: Id5ae1cabe87f73f7458a744834ebb6a1a7c3dbf8

9 years agoFix phpcs errors and warnings in includes/skins
Kunal Mehta [Sun, 15 Mar 2015 02:09:54 +0000 (19:09 -0700)]
Fix phpcs errors and warnings in includes/skins

Change-Id: I800f8fcd6c1ac16d0a0bd20799550de577306ded

9 years agoFix phpcs errors and warnings in includes/filerepo
Kunal Mehta [Sun, 15 Mar 2015 02:04:52 +0000 (19:04 -0700)]
Fix phpcs errors and warnings in includes/filerepo

Change-Id: I8a2b437f9f393baf4ee6546d654d56845fcdd1b6

9 years agoFix phpcs warning and errors in includes/resourceloader
Kunal Mehta [Sun, 15 Mar 2015 01:52:45 +0000 (18:52 -0700)]
Fix phpcs warning and errors in includes/resourceloader

Mainly breaking long lines

Change-Id: Ide37c81d156348cfb8a010043d79eaf80f95fded

9 years agoMerge "Fix IRC lines for blocks published with the old logging system"
jenkins-bot [Sat, 14 Mar 2015 23:59:32 +0000 (23:59 +0000)]
Merge "Fix IRC lines for blocks published with the old logging system"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 14 Mar 2015 20:10:52 +0000 (21:10 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I695a54629fa78b7ccfe20c9f76df25eeffd1d181

9 years agoFix IRC lines for blocks published with the old logging system
umherirrender [Sat, 14 Mar 2015 11:17:24 +0000 (12:17 +0100)]
Fix IRC lines for blocks published with the old logging system

The CheckUser and GlobalBlocking extension are inserting the block logs
over the old logging system, where the keys are numeric.
This case is not known when building the irc line, because that was
already migrated to just get the new style.
Added compatibility code for legacy rows.

Needs the legacy flag also in ManualLogEntry to make this happen,
because it is using the LogFormatter of the new logging system to format
the actionText.

Have not found the old way for block/reblock, so just for block/block.

Bug: T92713
Follow-Up: Ibc7fcaa5a952ff90d42a6477da4baa429f3de64b
Change-Id: I08aea8399ce766e98c1a76e237169f220c6cc751

9 years agophpcs fixups for line length
Adam Roses Wight [Sat, 14 Mar 2015 08:35:54 +0000 (01:35 -0700)]
phpcs fixups for line length

Change-Id: Ic36b111dcae0880fb34fb336065098650a30db5f

9 years agoMerge "Update code examples in docs/hooks.txt"
jenkins-bot [Sat, 14 Mar 2015 08:02:51 +0000 (08:02 +0000)]
Merge "Update code examples in docs/hooks.txt"

9 years agoUpdate code examples in docs/hooks.txt
umherirrender [Fri, 13 Mar 2015 16:58:52 +0000 (17:58 +0100)]
Update code examples in docs/hooks.txt

Adjust for code convention and wfRunHooks -> Hooks::run

Bug: T85588
Change-Id: I0297e389eb761822b0b5b9ea7a0a0a7990790677

9 years agoMerge "mediawiki.page.startup: Use document.documentElement instead of 'html'"
jenkins-bot [Sat, 14 Mar 2015 00:20:43 +0000 (00:20 +0000)]
Merge "mediawiki.page.startup: Use document.documentElement instead of 'html'"

9 years agoUpdate documentation for SpecialPage_initList
Kunal Mehta [Fri, 13 Mar 2015 23:25:44 +0000 (16:25 -0700)]
Update documentation for SpecialPage_initList

State that it can be used to conditionally register special pages

Change-Id: I83fd793c9cbb7a70fe97186f72078ee021a79475

9 years agoMade getNewtalk use slaves instead of cache/master
Aaron Schulz [Fri, 13 Mar 2015 01:06:28 +0000 (18:06 -0700)]
Made getNewtalk use slaves instead of cache/master

* This was causing floods of master connections on page views

Bug: T92357
Change-Id: I02fd1505f589112b8f6217047e6713845142a1c3

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 13 Mar 2015 20:57:47 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2cdf3805a5d8e395e040a069d16c53ab5ed0c164

9 years agoHtml: Make addition of 'mw-ui-input' conditional on $wgUseMediaWikiUIEverywhere
Bartosz Dziewoński [Fri, 13 Mar 2015 18:49:15 +0000 (19:49 +0100)]
Html: Make addition of 'mw-ui-input' conditional on $wgUseMediaWikiUIEverywhere

We were always adding it previously, which seemed harmless since
'mediawiki.ui.input' RL module, providing the styling, was only loaded
if $wgUseMediaWikiUIEverywhere was true… unless someone loaded it
manually to have specific input fields styled. Whoops.

There are a lot more unconditional additions like this in tons of
places in the code, and someone should check whether each one is
intentional or not, but probably no one will. Oh well.

Bug: T92496
Change-Id: I5e91a3852a76ebbbfe64485bccb4c30ddee28b66

9 years agoMerge "Removed newFromConds master fallback logic; obsoleted by $flags"
jenkins-bot [Fri, 13 Mar 2015 18:01:46 +0000 (18:01 +0000)]
Merge "Removed newFromConds master fallback logic; obsoleted by $flags"

9 years agoMerge "Avoid certain useless dbperformance log entries"
jenkins-bot [Fri, 13 Mar 2015 17:32:50 +0000 (17:32 +0000)]
Merge "Avoid certain useless dbperformance log entries"

9 years agoFix comment typo in mediawiki.legacy/protect.js
aude [Fri, 13 Mar 2015 10:16:31 +0000 (11:16 +0100)]
Fix comment typo in mediawiki.legacy/protect.js

Change-Id: I82c351d0d89a3f65ba9aa65cd11ca9b5ba99d6c5

9 years agomediawiki.page.startup: Use document.documentElement instead of 'html'
Fomafix [Fri, 13 Mar 2015 09:06:46 +0000 (09:06 +0000)]
mediawiki.page.startup: Use document.documentElement instead of 'html'

Change-Id: If443fdc543a0eebcaa3d82ab92eadb39b0f0f196

9 years agoMerge "Return HTTP 500 not 200 from thumb.php when streaming fails"
jenkins-bot [Fri, 13 Mar 2015 08:44:02 +0000 (08:44 +0000)]
Merge "Return HTTP 500 not 200 from thumb.php when streaming fails"

9 years agoMerge "Add linkable anchor #L<N> to (original text) line number in diff"
jenkins-bot [Fri, 13 Mar 2015 07:06:33 +0000 (07:06 +0000)]
Merge "Add linkable anchor #L<N> to (original text) line number in diff"

9 years agoMerge "Pass context to FormatMetadata class on ImagePage"
jenkins-bot [Fri, 13 Mar 2015 07:01:30 +0000 (07:01 +0000)]
Merge "Pass context to FormatMetadata class on ImagePage"

9 years agoAdd linkable anchor #L<N> to (original text) line number in diff
Federico Leva [Fri, 16 Jan 2015 23:14:10 +0000 (00:14 +0100)]
Add linkable anchor #L<N> to (original text) line number in diff

Bug: T63486
Change-Id: I068c7f6167e20f42cb675335554b98ff1fb83e16

9 years agoMerge "Replacing generic Exception with Exception subclasses"
jenkins-bot [Fri, 13 Mar 2015 06:44:51 +0000 (06:44 +0000)]
Merge "Replacing generic Exception with Exception subclasses"

9 years agoMerge "Add support for HD versions of the wiki logo in MonoBook-like skins."
jenkins-bot [Fri, 13 Mar 2015 06:30:05 +0000 (06:30 +0000)]
Merge "Add support for HD versions of the wiki logo in MonoBook-like skins."

9 years agoAdd support for HD versions of the wiki logo in MonoBook-like skins.
isarra [Mon, 9 Mar 2015 01:55:31 +0000 (01:55 +0000)]
Add support for HD versions of the wiki logo in MonoBook-like skins.

Done using an array $wgLogoHD, which expects something like the following:

$wgLogoHD = array(
"1.5x" => "path/to/1.5x_version.png",
"2x" => "path/to/2x_version.png"
);

This is still horrible, but I dunno how to make it less horrible. Help.

Bug: T37337
Change-Id: Iee3e73c1f96b81c2094418986cf1c267d93d1bdd

9 years agoMerge "Made JobQueueFederated::supportsDelayedJobs() check all the partition queues"
jenkins-bot [Fri, 13 Mar 2015 06:09:10 +0000 (06:09 +0000)]
Merge "Made JobQueueFederated::supportsDelayedJobs() check all the partition queues"

9 years agoMerge "Title: Consider empty edit notices to not exist"
jenkins-bot [Fri, 13 Mar 2015 06:00:11 +0000 (06:00 +0000)]
Merge "Title: Consider empty edit notices to not exist"

9 years agoMerge "Title: Clean up getEditNotices()"
jenkins-bot [Fri, 13 Mar 2015 05:58:55 +0000 (05:58 +0000)]
Merge "Title: Clean up getEditNotices()"

9 years agoAvoid certain useless dbperformance log entries
Aaron Schulz [Fri, 13 Mar 2015 01:50:05 +0000 (18:50 -0700)]
Avoid certain useless dbperformance log entries

* If DB_SLAVE was used but a master was picked due to having
  non-zero load, that should not issue a warning.

Change-Id: I79f3c477b4160b15ffb7f7679d7e15cabc236b82

9 years agoMerge "Updated Revision::newFromId() callers to use READ_LATEST as needed"
jenkins-bot [Fri, 13 Mar 2015 00:28:54 +0000 (00:28 +0000)]
Merge "Updated Revision::newFromId() callers to use READ_LATEST as needed"

9 years agoUpdate OOjs UI to v0.9.2
James D. Forrester [Thu, 12 Mar 2015 23:48:59 +0000 (16:48 -0700)]
Update OOjs UI to v0.9.2

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.2/History.md

Bypassing /vendor this time as no PHP changes.

Change-Id: I05830110d624bc1cd9a7c1244f3f0f34835326dd

9 years agoUpdated Revision::newFromId() callers to use READ_LATEST as needed
Aaron Schulz [Thu, 12 Mar 2015 23:47:21 +0000 (16:47 -0700)]
Updated Revision::newFromId() callers to use READ_LATEST as needed

Change-Id: Idcc071e99a712cf3208c10059d476dafe95044cf

9 years agoMerge "qunit: Use default (~1-4ms) delay instead of 10ms or 150ms"
jenkins-bot [Thu, 12 Mar 2015 23:40:14 +0000 (23:40 +0000)]
Merge "qunit: Use default (~1-4ms) delay instead of 10ms or 150ms"

9 years agoqunit: Use default (~1-4ms) delay instead of 10ms or 150ms
Timo Tijhof [Thu, 12 Mar 2015 23:15:40 +0000 (00:15 +0100)]
qunit: Use default (~1-4ms) delay instead of 10ms or 150ms

* jquery.byteLimit: Speeds up test suite from 425ms to about 275s.
* mediawiki: Speeds up test suite from 870ms to 350ms.

(Measures as reported by QUnit, using Chrome on OSX with a MacBook Pro)

Change-Id: Ia8db228219175c1aea6eb1b1edacf521494d3bdb

9 years agoClean up oldid argument to Content::prepareSave()
Adam Roses Wight [Wed, 11 Mar 2015 07:21:30 +0000 (00:21 -0700)]
Clean up oldid argument to Content::prepareSave()

The prepareSave function expects the latest revision ID of the article
being replaced.  Instead, we were passing an ID only used for rollbacks
and other special effects.

Change-Id: I4647930566b9370052a820ae3a46e10a6bba65ce

9 years agoReturn HTTP 500 not 200 from thumb.php when streaming fails
Gergő Tisza [Thu, 12 Mar 2015 22:50:19 +0000 (22:50 +0000)]
Return HTTP 500 not 200 from thumb.php when streaming fails

Bug: T92545
Change-Id: Id40a8f401232cc7b9ca102a2866957f80c5ec8a3

9 years agoMerge "Avoid excess master queries in getTimestampFromId"
jenkins-bot [Thu, 12 Mar 2015 22:00:51 +0000 (22:00 +0000)]
Merge "Avoid excess master queries in getTimestampFromId"

9 years agomediawiki.action.edit.preview: Hide inserted div#wikiDiff by default
Timo Tijhof [Thu, 12 Mar 2015 19:31:13 +0000 (20:31 +0100)]
mediawiki.action.edit.preview: Hide inserted div#wikiDiff by default

Avoids a redraw when the node is inserted because the <div> with
the placeholder table does have height (~ 5px). Causing it to move
everything below it after the page loads.

Bug: T92552
Change-Id: I43d44c070ce6b5861dd3ee0d9968475d24df59a3

9 years agoReplacing generic Exception with Exception subclasses
kaldari [Thu, 12 Mar 2015 21:31:32 +0000 (14:31 -0700)]
Replacing generic Exception with Exception subclasses

Improves ability to debug.

Change-Id: I21a51fc5b4f185a01ba4706bd5a853c2974057dd

9 years agoMerge "Update OOjs UI to v0.9.1"
jenkins-bot [Thu, 12 Mar 2015 20:35:21 +0000 (20:35 +0000)]
Merge "Update OOjs UI to v0.9.1"

9 years agoTitle: Consider empty edit notices to not exist
Timo Tijhof [Thu, 12 Mar 2015 20:15:43 +0000 (21:15 +0100)]
Title: Consider empty edit notices to not exist

Don't include edit notices that parse to nothing in the output
array.

Similar filtering logic currently exists in VisualEditor. This
helps support systems like the one on English Wikipedia where an
Editnotice page may exist, but conditionally outputs the actual
notice.

Bug: T91715
Change-Id: Ic8fb038fd6acf18830cafdd09a8ca86f3950c7a5

9 years agoTitle: Clean up getEditNotices()
Timo Tijhof [Thu, 12 Mar 2015 20:12:30 +0000 (21:12 +0100)]
Title: Clean up getEditNotices()

Change-Id: I4ad5e16dfe42494ee6d8c43cfc50ae57e2b9a2d4

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 12 Mar 2015 19:58:07 +0000 (20:58 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8d8c741d66891c08fce33b38e867e485e70cfa74

9 years agoUpdate OOjs UI to v0.9.1
James D. Forrester [Thu, 12 Mar 2015 19:12:01 +0000 (12:12 -0700)]
Update OOjs UI to v0.9.1

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.1/History.md

Change-Id: I936ea56e1c99f576f44115a9b2fa075ef1ab14bd

9 years agoPass if log entry is legacy to ApiQueryLogEvents::addLogParams()
Chad Horohoe [Thu, 12 Mar 2015 18:53:21 +0000 (11:53 -0700)]
Pass if log entry is legacy to ApiQueryLogEvents::addLogParams()

Querying via ApiQueryRecentChanges and ApiQueryWatchlist did not
pass if a particular log entry was a legacy log entry.

Ultimately CheckUser should stop writing legacy style log entries
too but we can at least behave properly when we hit them.

Bug: T91466
Change-Id: I1564ec7e599e2f9d78775e63e06eca84db497a43

9 years agoTruncate null revision comment for whole multibyte characters
umherirrender [Fri, 20 Feb 2015 21:19:53 +0000 (22:19 +0100)]
Truncate null revision comment for whole multibyte characters

Added a truncate for multibyte characters to Revision::newNullRevision.
This avoids broken characters for long comment, mostly the comment for
move or protection in the history.
The whole comment is still visible on Special:Log.

Bug: T85700
Change-Id: Ie0863261484ee99006407c12c3a920ea476925e3

9 years agoMerge "Mark DoEditSectionLink hook as deprecated"
jenkins-bot [Thu, 12 Mar 2015 17:17:16 +0000 (17:17 +0000)]
Merge "Mark DoEditSectionLink hook as deprecated"

9 years agoMark DoEditSectionLink hook as deprecated
Kunal Mehta [Thu, 12 Mar 2015 16:51:59 +0000 (09:51 -0700)]
Mark DoEditSectionLink hook as deprecated

Change-Id: I347fe68900c98080bf3070a1b0bf5a005048868a

9 years agoRefactor out 'infinity' variants
JuneHyeon Bae [Wed, 18 Jun 2014 02:45:32 +0000 (11:45 +0900)]
Refactor out 'infinity' variants

Refactor out 'infinity' vartiant values which used in blocking and
protecting actions. This patchset adds GlobalFunction wfIsInfinity.

Bug: T68646
Change-Id: I60cc55a5bbd43c72916a1c2ea3807457d4e33765

9 years agoMerge "Use underscores in help links"
jenkins-bot [Thu, 12 Mar 2015 14:56:31 +0000 (14:56 +0000)]
Merge "Use underscores in help links"

9 years agoUse underscores in help links
umherirrender [Tue, 10 Mar 2015 18:26:39 +0000 (19:26 +0100)]
Use underscores in help links

Replace spaces by underscore to build correct links to wiki pages. IE11
will show %20 for spaces. Also use urlencode to make the url safe.

Follow-Up: I2934b1708a0d207dcf3d940264f140613646f203
Change-Id: I5ef08441406e96aa9749476af0a81fc11fa4e4d6

9 years agoresources: Move to library version of jquery.client
James D. Forrester [Wed, 11 Mar 2015 23:14:46 +0000 (16:14 -0700)]
resources: Move to library version of jquery.client

The jQuery Client library is no longer mastered in MediaWiki, and is
instead a proper, published library, which is now tagged as v1.0.0.

Change-Id: Idd19d738b392a5f742fef6f98c885e8c391a5cbf