lhc/web/wiklou.git
9 years agoRemove negative caching from Revision::getContentInternal
Jackmcbarn [Tue, 14 Oct 2014 00:48:46 +0000 (20:48 -0400)]
Remove negative caching from Revision::getContentInternal

Negative caching in Revision::getContent can cause race conditions, so
stop doing it.

Bug: 71545
Change-Id: Iac32b2d4f90c4c1ce37820288f757e47b6d895e7

9 years agoAPI: Clean up and internationalize pretty-printed output
Brad Jorsch [Wed, 17 Sep 2014 19:43:31 +0000 (15:43 -0400)]
API: Clean up and internationalize pretty-printed output

The syntax highlighting applied to the XML format is not all that great,
and applying it to other formats is just wrong. Instead of doing it
ourselves, let's just add a hook and let Extension:SyntaxHighlight_GeSHi
do it for us.

But for that to work, we have to add RL support to the pretty-printed
output, which means OutputPage. At the same time, lets internationalize
the header.

Bug: 65403
Change-Id: I04b1a3842abdf1fb360c54aa7164fc7cd2e50f4b

9 years agoAPI: Add "batchcomplete" to simplified continuation result
Brad Jorsch [Wed, 6 Aug 2014 08:56:53 +0000 (09:56 +0100)]
API: Add "batchcomplete" to simplified continuation result

With the query-continue style of continuation, it's easy for the client
to know when a batch of pages from the generator is complete. The
simplified continuation should support this too, and without requiring
the client to parse the "continue" result property.

Change-Id: Ie407e2e27c017e8813143859cc58674553bc641b

9 years agoMerge "API: Make jsonfm the default output format"
jenkins-bot [Mon, 13 Oct 2014 22:22:10 +0000 (22:22 +0000)]
Merge "API: Make jsonfm the default output format"

9 years agoMerge "API: HTMLize and internationalize the help, add Special:ApiHelp"
jenkins-bot [Mon, 13 Oct 2014 22:19:47 +0000 (22:19 +0000)]
Merge "API: HTMLize and internationalize the help, add Special:ApiHelp"

9 years agoAPI: Make jsonfm the default output format
Brad Jorsch [Tue, 16 Sep 2014 20:45:09 +0000 (16:45 -0400)]
API: Make jsonfm the default output format

Now that action=help isn't requiring xmlfm for sane display, make jsonfm
the default.

Change-Id: I515c322f31243081ed1315a17befe9792237eeaa

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 13 Oct 2014 19:23:03 +0000 (21:23 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I54fc400a4eb31d5701ce9b402a6595ea0ca3ae90

9 years agoFix strict warning in FakeDatabasUpdater::setAppliedUpdates
physikerwelt (Moritz Schubotz) [Mon, 13 Oct 2014 13:22:35 +0000 (15:22 +0200)]
Fix strict warning in FakeDatabasUpdater::setAppliedUpdates

Follows-up ccd051bc44.

To be consistent with DatabaseUpdater::setAppliedUpdates
the second arg $updates is now optional.

Change-Id: Ida2adfe30099ea4c65f0c16fafc4eae6603fc93a

9 years agoAdd mediawiki.userSuggest to Special:ListFiles
umherirrender [Fri, 10 Oct 2014 13:50:24 +0000 (15:50 +0200)]
Add mediawiki.userSuggest to Special:ListFiles

This gives a suggestion list when typing a username on that special page

Bug: 48240
Change-Id: I9960325f27eddb6ea0b3317b00996ccb91c51994

9 years agoMerge "mediawiki.special.changeslist.legend: Match dt/dd line-height"
Prtksxna [Mon, 13 Oct 2014 04:42:46 +0000 (04:42 +0000)]
Merge "mediawiki.special.changeslist.legend: Match dt/dd line-height"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 12 Oct 2014 19:55:32 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6fc8199d579ccc94810b4c2d31a046aef8b804b2

9 years agoAdd 'name' back to wpLoginAttempt
Reedy [Sat, 11 Oct 2014 23:57:53 +0000 (00:57 +0100)]
Add 'name' back to wpLoginAttempt

Change-Id: I353ccb74e3572ab2e22a3803d0bc265be2ca2408

9 years agoFix session failure errors when trying to create an account
Kunal Mehta [Sat, 11 Oct 2014 23:41:51 +0000 (16:41 -0700)]
Fix session failure errors when trying to create an account

wpCreateaccount was no longer being passed in the POST request,
so the special page thought a login attempt was occurring rather
than an account creation attempt, so it checked against the wrong
token, resulting in session failure errors.

Bug: 71862
Change-Id: I9519cb264be9f587ef4354ba1fd03962a52755a2

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 11 Oct 2014 20:02:13 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I386b19b8701f8826109919a1b5b3ebbb2a5c4977

9 years agoMerge "Revert "Make an empty "?action=" parameter default to "view"""
jenkins-bot [Sat, 11 Oct 2014 17:23:21 +0000 (17:23 +0000)]
Merge "Revert "Make an empty "?action=" parameter default to "view"""

9 years agoRevert "Make an empty "?action=" parameter default to "view""
Brion VIBBER [Sat, 11 Oct 2014 17:15:49 +0000 (17:15 +0000)]
Revert "Make an empty "?action=" parameter default to "view""

Breaks all non-view actions on dev wikis, something's not right with the patch.

This reverts commit a90b7ea969b4332a6229be1c4160190a3ec79200.

Change-Id: Ib9a5eb07ef48716df193fbb62a86c13e5c80dafd

9 years agoMerge "MovePage: Properly return errors"
jenkins-bot [Sat, 11 Oct 2014 06:04:31 +0000 (06:04 +0000)]
Merge "MovePage: Properly return errors"

9 years agoMovePage: Properly return errors
Kunal Mehta [Sat, 11 Oct 2014 01:39:24 +0000 (18:39 -0700)]
MovePage: Properly return errors

Probably a copy-paste mistake when converting this function
to use Status instead of error arrays.

Change-Id: I796fc66ee637dd7d914a4182fe56992e59b90aba

9 years agoUpdate OOjs UI to v0.1.0-pre (837b2f733e)
James D. Forrester [Sat, 11 Oct 2014 01:05:44 +0000 (18:05 -0700)]
Update OOjs UI to v0.1.0-pre (837b2f733e)

New changes:
d40dd30 build: Update grunt-contrib-uglify to v0.6.0
0d89c99 test: Load a theme for the test HTML file so the tests don't fail
f245aa4 Element: Remove test for deprecated onDOMEvent()
cd15f18 Follow-up I730e3d7d: Tab not spaces
a923881 build: Use Karma instead of grunt-contrib-qunit
381864c build: Use Chrome and Firefox for tests instead of PhantomJS
044faa5 Follow-up If2da01a2: Fix grunt watch
d6e7af8 Adding OO.ui.TitledElement as mixin to label widget
6385af7 MediaWiki theme: Add filled white background to toolbars
837b2f7 Revert "Try to stop user from tabbing outside of open dialog box"

Change-Id: I63d51311f73d1295a2a35ebadf7d9ac835dec5c7

9 years agoMerge "Add test for canUseWikiPage special case to ActionTest"
jenkins-bot [Sat, 11 Oct 2014 00:36:58 +0000 (00:36 +0000)]
Merge "Add test for canUseWikiPage special case to ActionTest"

9 years agoMerge "Make an empty "?action=" parameter default to "view""
jenkins-bot [Sat, 11 Oct 2014 00:36:10 +0000 (00:36 +0000)]
Merge "Make an empty "?action=" parameter default to "view""

9 years agoAdd test for canUseWikiPage special case to ActionTest
Thiemo Mättig [Tue, 22 Jul 2014 12:28:12 +0000 (14:28 +0200)]
Add test for canUseWikiPage special case to ActionTest

Change-Id: I6b037d4aa9101a3a416cdf3bd1e26f14b056b4f7

9 years agoMerge "PrefixSearch: Enforce including the exact match as first result"
jenkins-bot [Fri, 10 Oct 2014 21:34:23 +0000 (21:34 +0000)]
Merge "PrefixSearch: Enforce including the exact match as first result"

9 years agoMerge "API: Fix ApiQueryBacklinks redirlinks"
jenkins-bot [Fri, 10 Oct 2014 20:31:35 +0000 (20:31 +0000)]
Merge "API: Fix ApiQueryBacklinks redirlinks"

9 years agoMake an empty "?action=" parameter default to "view"
Thiemo Mättig [Thu, 17 Jul 2014 08:27:38 +0000 (10:27 +0200)]
Make an empty "?action=" parameter default to "view"

When no action is given, e.g. in
https://en.wikipedia.org/wiki/URL
the action defaults to "view". Just like you called
https://en.wikipedia.org/wiki/URL?action=view

But when the action is empty, e.g.
https://en.wikipedia.org/wiki/URL?action=
you get an error message telling you that "the action specified"
can not be "recognized". Wait. I did not "specified" an action.
That's why I left the parameter empty. It doesn't make much sense
to have an empty action name that's different from the "view"
default, right? From the users point of view I expect the empty
string to behave like null/undefined.

Change-Id: I331924d9223e597293bc8285f0c330edf08e429b

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 10 Oct 2014 19:39:06 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib6290d03982df0ef0249d4a7acfb2f8e36e2c9cb

9 years agoPrefixSearch: Enforce including the exact match as first result
Timo Tijhof [Wed, 17 Sep 2014 23:24:41 +0000 (16:24 -0700)]
PrefixSearch: Enforce including the exact match as first result

The default search backend implements proper prefix search and
does this naturally. But extensions providing search backends
like Lucene and CirrusSearch actually fail to implement proper
prefix searching and instead use their search engine ranking for
prefix search as well. Thus often the exact match is not on top
or is not even in the first 10 results at all.

On en.wikipedia.org:

> Example
1. "Example (musician)"
2. "Example"
3. "Example.com"

> John ive
1. "John Ives"
2. "John Ivey"
3. "John Ive"

> Foo
1. "Football (soccer)"
2. "Football League Cup"
3. "Foot (length)"

"Foo" exists but is NOT among the returned results.

Bug: 70958
Change-Id: I78d419424baf43d38beeb6dabfc347f430fa45f6

9 years agoAPI: Fix ApiQueryBacklinks redirlinks
Brad Jorsch [Fri, 10 Oct 2014 19:22:35 +0000 (15:22 -0400)]
API: Fix ApiQueryBacklinks redirlinks

The fast case needs to pass the redirlinks subarray through array_values
and set an indexed tag name.

Bug: 71907
Change-Id: I865aad6485a2598c9e574ab5c38e8e0923d11ddd

9 years agoMerge "Use config for $wgLanguageCode in OutputPage.php"
jenkins-bot [Fri, 10 Oct 2014 18:12:00 +0000 (18:12 +0000)]
Merge "Use config for $wgLanguageCode in OutputPage.php"

9 years agoRemove space from the begin and the end of the heading
Fomafix [Sun, 5 Oct 2014 08:46:45 +0000 (08:46 +0000)]
Remove space from the begin and the end of the heading

Whitespaces between the opening tag <h1> and the content and
between the content and the closing tag </h1> gets converted to a space
when selecting the heading by a triple click and copying it to clipboard

See Ic9887a079734b28155f46ffaeedec02ff8ad81ca for skin Vector.

Change-Id: If90928b5f66dc10e3e8024e31d96be25462e446c

9 years agoAdd name of offensive hook function to error message
Stephan Gambke [Thu, 9 Oct 2014 13:56:31 +0000 (15:56 +0200)]
Add name of offensive hook function to error message

When a hook function is not callable an exception is thrown.

This patch adds the name of the offensive hook function to
the exception message to improve its informative value.

Change-Id: I376d7f5590099620a4c11ff9a4967d6d8f6560cc

9 years agoAPI: HTMLize and internationalize the help, add Special:ApiHelp
Brad Jorsch [Tue, 16 Sep 2014 17:54:01 +0000 (13:54 -0400)]
API: HTMLize and internationalize the help, add Special:ApiHelp

The existing API help, formatted as basically a plain-text document
embedded in XML and with a little bolding and a few links
syntax-highlighted in after the fact, works ok for experienced programmers
but isn't at all newbie-friendly. Further, all the help is hard-coded in
English, which isn't very friendly to non-English speakers.

So let's rewrite it. The help text is now obtained from i18n messages
and output in HTML, with the default display consisting of help for a
single module with links to help for other modules. This, of course,
necessitates deprecating many of the existing help-related methods and
hooks and replacing them with new ones, but backwards compatibility is
maintained for almost everything.

At the same time, action=paraminfo also needs to support the
'description' and other help-related fields being output in wikitext or
HTML, and I11cb063d (to access all modules via the 'modules' parameter
instead of having 'modules', 'formatmodules', 'querymodules', and so on)
is folded in.

And we also add Special:ApiHelp. When directly accessed, it simply
redirects to api.php with appropriate parameters. But it's also
transcludable to allow up-to-date API help text to be included within
the on-wiki documentation.

Note this patch doesn't actually add i18n messages for any API modules
besides ApiMain and ApiHelp. That will come in a followup patch, but for
the moment the backwards-compatibility code handles them nicely.

While we're messing with the documentation, we may as well add the
"internal" flag requested in bug 62905 (although the 'includeinternal'
parameter it also requests doesn't make much sense anymore) and a
"deprecated" flag that's needed by several modules now.

Bug: 30936
Bug: 38126
Bug: 42343
Bug: 45641
Bug: 62905
Bug: 63211
Change-Id: Ib14c00df06d85c2f6364d83b2b10ce34c7f513cc

9 years agoSet redirlinks indexed tag name on list=backlinks
umherirrender [Fri, 10 Oct 2014 13:37:58 +0000 (15:37 +0200)]
Set redirlinks indexed tag name on list=backlinks

Bug: 71907
Follow-Up: I32381c0f082d2f8e063af99ee353ae003c163c23
Change-Id: I4af6000c146e60cd6e3fbda42fcc7bef2952c4ba

9 years agoUse config for $wgLanguageCode in OutputPage.php
umherirrender [Fri, 10 Oct 2014 12:58:03 +0000 (14:58 +0200)]
Use config for $wgLanguageCode in OutputPage.php

Follow-Up: I5e0ebc173631d1d1052de7ccee4ef839c7c1767f
Change-Id: Idd7fab9f8bf47fc303b5923327da67905e12e527

9 years agoMade LocalFileMoveBatch::addOlds use SH locks instead of EX ones
Aaron Schulz [Tue, 7 Oct 2014 21:15:57 +0000 (14:15 -0700)]
Made LocalFileMoveBatch::addOlds use SH locks instead of EX ones

Change-Id: I928f98deded6e71b4b1e63167ca8b565e39c6394

9 years agoMerge "Optimise checkboxes for Firefox mobile"
jenkins-bot [Thu, 9 Oct 2014 22:37:54 +0000 (22:37 +0000)]
Merge "Optimise checkboxes for Firefox mobile"

9 years agoMerge "Removed unused method"
jenkins-bot [Thu, 9 Oct 2014 20:09:48 +0000 (20:09 +0000)]
Merge "Removed unused method"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 9 Oct 2014 18:55:10 +0000 (20:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c73003833662553745e39f2b96484e391b1d182

9 years agoMerge "HTMLForm: Improve hidden field handling"
jenkins-bot [Thu, 9 Oct 2014 18:42:50 +0000 (18:42 +0000)]
Merge "HTMLForm: Improve hidden field handling"

9 years agoMerge "OOUI: Switch Minerva skin from deprecated 'Minerva' theme to 'MediaWiki'"
jenkins-bot [Thu, 9 Oct 2014 17:43:08 +0000 (17:43 +0000)]
Merge "OOUI: Switch Minerva skin from deprecated 'Minerva' theme to 'MediaWiki'"

9 years agoHTMLForm: Improve hidden field handling
Brad Jorsch [Thu, 9 Oct 2014 17:21:31 +0000 (13:21 -0400)]
HTMLForm: Improve hidden field handling

HTMLHiddenField is unable to output a non-default value, which makes it
unsuitable for actually persisting changes across multiple form
submissions. To preserve compatibility with forms that aren't expecting
persistence, fixing this requires a new parameter in the field
definition.

Also, due to the unusual way that hidden fields are added to the HTML
output, they are not being correctly handled by HTMLFormFieldCloner.
Special-case that.

Change-Id: I1fde7372401299b4432d28ac61982d47d5f3bbea

9 years agoAdd counter to DatabaseUpdater::setAppliedUpdates
physikerwelt (Moritz Schubotz) [Sat, 20 Sep 2014 19:36:03 +0000 (12:36 -0700)]
Add counter to DatabaseUpdater::setAppliedUpdates

The key was constructed depending on the current time only.
This method fails, if multiple updates are performed
within one second.

Bug: 71087
Change-Id: Id7e30298729b3abb1501a34fcc1ba4e45d2172f0

9 years agoMerge "change [[Special:Block]] to destructive"
jenkins-bot [Wed, 8 Oct 2014 23:26:42 +0000 (23:26 +0000)]
Merge "change [[Special:Block]] to destructive"

9 years agoMerge "Revert "buttons: Update focus state""
jenkins-bot [Wed, 8 Oct 2014 22:35:30 +0000 (22:35 +0000)]
Merge "Revert "buttons: Update focus state""

9 years agoMerge "Added a --type filter to showJobs.php"
jenkins-bot [Wed, 8 Oct 2014 21:41:55 +0000 (21:41 +0000)]
Merge "Added a --type filter to showJobs.php"

9 years agoMerge "MediaWiki UI: Use em's for the button width"
jenkins-bot [Wed, 8 Oct 2014 21:40:32 +0000 (21:40 +0000)]
Merge "MediaWiki UI: Use em's for the button width"

9 years agoAdded a --type filter to showJobs.php
Aaron Schulz [Wed, 8 Oct 2014 20:39:09 +0000 (13:39 -0700)]
Added a --type filter to showJobs.php

Change-Id: I43d2c9fb949d88364dd000e9892a60ac19412e31

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 8 Oct 2014 18:55:44 +0000 (20:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4fce4df72f1585379212c1ff471cda0417212543

9 years agoOptimise checkboxes for Firefox mobile
jdlrobson [Wed, 8 Oct 2014 18:20:57 +0000 (11:20 -0700)]
Optimise checkboxes for Firefox mobile

Bug: 71750
Change-Id: I19a6837423a2c9c9d3f758c7c6a869bd02c70460

9 years agoMinor doc fix for wfShellExecWithStderr()
Yuri Astrakhan [Wed, 8 Oct 2014 18:12:11 +0000 (14:12 -0400)]
Minor doc fix for wfShellExecWithStderr()

Change-Id: I9d5fe442c6e85d61c1cdec8c42caab06b37856b1

9 years agoMerge "Fix expires typo in comment"
jenkins-bot [Wed, 8 Oct 2014 16:04:53 +0000 (16:04 +0000)]
Merge "Fix expires typo in comment"

9 years agoFix expires typo in comment
Reedy [Wed, 8 Oct 2014 15:55:52 +0000 (16:55 +0100)]
Fix expires typo in comment

Change-Id: I4bb63f610ce0ec246c4aa7aef3d04f096fb3e564

9 years agoCredits: Move Bartosz up from patch contributors to developers
Alex Monk [Wed, 8 Oct 2014 12:42:43 +0000 (13:42 +0100)]
Credits: Move Bartosz up from patch contributors to developers

Change-Id: I159325fa03a2c31d56ac14f06c09861aa488df84

9 years agochange [[Special:Block]] to destructive
Douglas Gardner [Tue, 7 Oct 2014 23:07:58 +0000 (00:07 +0100)]
change [[Special:Block]] to destructive

Bug: 66145
Change-Id: I1ae04e15ea8046d50a58952f627a3e7d8bd941a4

9 years agoMediaWiki UI: Use em's for the button width
jdlrobson [Tue, 7 Oct 2014 22:40:03 +0000 (15:40 -0700)]
MediaWiki UI: Use em's for the button width

In mobile iOS this causes overlap of buttons with footer text
on our Wikigrok widget.

We use
em's to create a margin for the button but since the button is defined
in pixels when zooming out of the page this causes overlap.

Bug: 71577
Change-Id: I0332b925a3f09c7f924aa48bd636f7fb19743ff7

9 years agoFix fatal error in delayed parser tests
Jackmcbarn [Tue, 7 Oct 2014 22:31:42 +0000 (18:31 -0400)]
Fix fatal error in delayed parser tests

Change-Id: I93957bec3e33688b6cce6cb636ef685c8bae3b2f

9 years agoHttpTest: Update cURL constants array
dan-nl [Thu, 25 Sep 2014 04:46:37 +0000 (06:46 +0200)]
HttpTest: Update cURL constants array

The mediawiki-core-regression-hhvm-master test for I21747063 found
failures for some constants provided by the provideCurlConstants()
array.

https://integration.wikimedia.org/ci/job/mediawiki-core-regression-hhvm-master/2072/console

I have commented out the failures that occur in the current mw
HHVM 3.3.0 environment in order for the test to pass. none of the
commented out constants appear in the mw core code.

PHP 5.6.0 removed several cURL constants http://php.net/manual/en/curl.constants.php.
I have commented out those constants and verified that they do not
exist in the mw core code.

Bug: 71729
Change-Id: I30c5e78eacf19071aaf44834ca188172f082e161

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 7 Oct 2014 18:36:29 +0000 (20:36 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0ee5a6d4d1fa172ec0f99f183db933632432fa3f

9 years agoMerge "Deprecate OutputPage::rateLimited()"
jenkins-bot [Tue, 7 Oct 2014 17:52:49 +0000 (17:52 +0000)]
Merge "Deprecate OutputPage::rateLimited()"

9 years agoMerge "Deprecate OutputPage::readOnlyPage()"
jenkins-bot [Tue, 7 Oct 2014 17:52:46 +0000 (17:52 +0000)]
Merge "Deprecate OutputPage::readOnlyPage()"

9 years agoMerge "mediawiki.api: Remove check for callback in postWithToken"
jenkins-bot [Tue, 7 Oct 2014 14:08:07 +0000 (14:08 +0000)]
Merge "mediawiki.api: Remove check for callback in postWithToken"

9 years agoMerge "PrefixSearch: Add unit tests for StringPrefixSearch"
jenkins-bot [Tue, 7 Oct 2014 12:41:08 +0000 (12:41 +0000)]
Merge "PrefixSearch: Add unit tests for StringPrefixSearch"

9 years agomediawiki.api: Remove check for callback in postWithToken
Fomafix [Mon, 6 Oct 2014 19:33:23 +0000 (19:33 +0000)]
mediawiki.api: Remove check for callback in postWithToken

Follows-up I0a650fdb4affd394ae419e21d54baf790116f6f7.

Change-Id: I178f68368cc1930e8b9f12afe5c6db7612235c40

9 years agoDeprecate OutputPage::rateLimited()
Kevin Israel [Mon, 29 Sep 2014 04:01:30 +0000 (00:01 -0400)]
Deprecate OutputPage::rateLimited()

Change-Id: I140e6af9dde090b9f8611e7b53a650061f2e84eb

9 years agoDeprecate OutputPage::readOnlyPage()
Kevin Israel [Mon, 29 Sep 2014 03:17:13 +0000 (23:17 -0400)]
Deprecate OutputPage::readOnlyPage()

Also, as this method is never called with an argument in any Gerrit-hosted
extension, shortened it to just `throw new ReadOnlyError;` on the assumption
that the removed portion was only left in for EditPage.

Change-Id: Icc2fc166b155eac548dfd5f3e67b0b1f92ef90d3

9 years agoMW UI: Show all permutations of checkboxes in Living Style Guide
Matthew Flaschen [Tue, 7 Oct 2014 02:52:32 +0000 (22:52 -0400)]
MW UI: Show all permutations of checkboxes in Living Style Guide

* Regular unchecked
* Regular checked (added)
* Disabled unchecked
* Disabled checked

Although you can obviously check and uncheck it yourself, it's easier
for the user to show them the permutations on page load.  Otherwise,
they might not even notice the special check mark image.

Also, fix a couple unrelated typos in buttons.less.

Change-Id: I17b63eeb424e23d1c3b9ce9ab8bfaa66b5bf4a46

9 years agoMerge "Updating style documentation for quiet anchors and quiet buttons"
jenkins-bot [Tue, 7 Oct 2014 06:57:49 +0000 (06:57 +0000)]
Merge "Updating style documentation for quiet anchors and quiet buttons"

9 years agoMerge "hash_equals(): Avoid division by zero when $known_string is empty"
jenkins-bot [Tue, 7 Oct 2014 06:49:20 +0000 (06:49 +0000)]
Merge "hash_equals(): Avoid division by zero when $known_string is empty"

9 years agoUpdating style documentation for quiet anchors and quiet buttons
kaldari [Tue, 7 Oct 2014 00:30:15 +0000 (17:30 -0700)]
Updating style documentation for quiet anchors and quiet buttons

See discussion on design-l for more context:
https://lists.wikimedia.org/pipermail/design/2014-October/002161.html

Change-Id: I1d958724d4222c95ad5ed52778d26228b09bd121

9 years agoMerge "UploadBaseTest: Use setMwGlobals() instead of juggling globals"
jenkins-bot [Tue, 7 Oct 2014 06:46:11 +0000 (06:46 +0000)]
Merge "UploadBaseTest: Use setMwGlobals() instead of juggling globals"

9 years agoMerge "MWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity"
jenkins-bot [Tue, 7 Oct 2014 06:45:08 +0000 (06:45 +0000)]
Merge "MWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity"

9 years agohash_equals(): Avoid division by zero when $known_string is empty
Kevin Israel [Tue, 24 Jun 2014 05:33:46 +0000 (01:33 -0400)]
hash_equals(): Avoid division by zero when $known_string is empty

Per Tim Starling's review of Icb239471, reverted back to the version of
the function from Patch Set 1 of Iece006ec, which did not have the bug.
This version does not attempt to minimize the inevitable leakage of the
string's length.

Also revised the doc comment to explain more effectively what the problem
with a normal (===) string comparison is for the use cases of this function.

Follows-up b9e1d5f5c066.

Change-Id: I1b347e69b39af3d7d8ba6673af63f1a616befbdf

9 years agoHashBagOStuff: use the value itself as the CAS token
Tim Starling [Tue, 7 Oct 2014 05:24:45 +0000 (16:24 +1100)]
HashBagOStuff: use the value itself as the CAS token

Avoid an unnecessary serialize() call on get() requests, which makes it
faster and also happens to work around a nasty crash bug which is
causing lots of segfaults right now.

CAS semantics should be the same, if the caller handles a CAS token in
an opaque way and does not assume it is a string. I could only find one
caller of cas() in core and WMF deployed extensions, and that is
BagOStuff::mergeViaCas(), which does correctly handle CAS tokens of any
type.

Bug: 71724
Change-Id: I0b0b5f0157c005ec7f76210dfb8576c056314733

9 years agoMWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity
Timo Tijhof [Tue, 7 Oct 2014 03:22:02 +0000 (05:22 +0200)]
MWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity

Follows-up af66c04.

The tests depend indirectly on wgSecretKey (used by
MWCryptHKDF::generateHex). On test installs I tend to set this
to "example" or "***", which is less than 16 characters and thus
the unit tests failed with "MWCryptHKDF secret was too short".

Change-Id: I9a85fd9fbb345863e4837fed2910d60ebf1b0d83

9 years agoUploadBaseTest: Use setMwGlobals() instead of juggling globals
Timo Tijhof [Tue, 7 Oct 2014 03:13:32 +0000 (05:13 +0200)]
UploadBaseTest: Use setMwGlobals() instead of juggling globals

Abstracts the logic for restoration into the built-in teardown()
handler.

Also purify the test configuration by setting wgHooks and
wgFileExtensions to otherwise empty arrays instead of extending
existing ones.

Change-Id: Ied65ee62f658dd650c603a54e72cd19965867a8f

9 years agoMerge "SpecialWhatlinkshere: Add autocompletion for target input"
jenkins-bot [Tue, 7 Oct 2014 00:31:38 +0000 (00:31 +0000)]
Merge "SpecialWhatlinkshere: Add autocompletion for target input"

9 years agoLog non-MediaWiki exceptions for requests via main entry point
aude [Mon, 6 Oct 2014 14:07:37 +0000 (16:07 +0200)]
Log non-MediaWiki exceptions for requests via main entry point

Previously, non-MediaWiki exceptions were logged only for api requests,
job runner, resource loader, etc. but not for general requests
such as page views.

Bug: 61914
Change-Id: Id4de5cac0b9996a98cdaf5e73655d49fa55ea8c3

9 years agoRemoved unused method
Aaron Schulz [Mon, 6 Oct 2014 19:54:07 +0000 (12:54 -0700)]
Removed unused method

Change-Id: I8d72798ed5a7048ca8c8f410612bb6645b06f634

9 years agoSpecialWhatlinkshere: Add autocompletion for target input
PiRSquared17 [Wed, 14 May 2014 20:32:53 +0000 (20:32 +0000)]
SpecialWhatlinkshere: Add autocompletion for target input

This adds the mw-searchInput class so suggestions are given by
mediawiki.searchSuggest (if loaded by the skin).

Bug: 65209
Change-Id: If4ae687ba125c002eedce114820a271cf615011b

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 6 Oct 2014 18:59:05 +0000 (20:59 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia0998d81e51a5081b31ca8146f7ec7ef67f75d09

9 years agoRemove SquidUpdate::newFromLinksTo()
Kevin Israel [Mon, 6 Oct 2014 14:18:32 +0000 (10:18 -0400)]
Remove SquidUpdate::newFromLinksTo()

This has been broken since r9199 / e0ce5a322e41; a DB query error will occur
because the links table no longer exists, and even if the table were to
exist, the pl_* columns would not exist in that table.

There is no usage in core or Gerrit-hosted extensions.

Change-Id: I4922f85417bfb4d40f08662ba100ab5b78edd5fb

9 years agoMerge "Tune Skin::preloadExistence"
jenkins-bot [Mon, 6 Oct 2014 18:00:53 +0000 (18:00 +0000)]
Merge "Tune Skin::preloadExistence"

9 years agoUpdate OOjs UI to v0.1.0-pre (26dadbc60f)
James D. Forrester [Mon, 6 Oct 2014 16:03:54 +0000 (09:03 -0700)]
Update OOjs UI to v0.1.0-pre (26dadbc60f)

New changes:
6c91643 Make buttons respond to :active events
9137aaf Move window overlay up to be a sibling of the frame
19d8c83 ComboBoxWidget: Append menu to $overlay option
eb0fcb8 InlineMenuWidget: Fix documentation
19d2c2b SelectWidget: Fix typos in documentation
495d281 TextInputMenuWidget: Fix typo in documentation
b4ae961 Toolbar: Correctly display "More" label on catch-all groups
32e769e Toolbar demo: Fix tool name mismatch
e9983b6 build: Clean up Grunt config and add missing csscomb run

Change-Id: I1ee2e51460c709fa01934ae7d58ac8411b124867

9 years agoMove TimestampException to exception directory
aude [Mon, 6 Oct 2014 09:03:54 +0000 (11:03 +0200)]
Move TimestampException to exception directory

Change-Id: Id3829cbd155636839a272dc7e28e45bee7b87e8b

9 years agoMerge "Adjust h3 size to keep it smaller than h2 across normal platforms"
jenkins-bot [Mon, 6 Oct 2014 07:16:11 +0000 (07:16 +0000)]
Merge "Adjust h3 size to keep it smaller than h2 across normal platforms"

9 years agoInclude categories in Special:ExpandTemplates
Jackmcbarn [Mon, 6 Oct 2014 01:06:46 +0000 (21:06 -0400)]
Include categories in Special:ExpandTemplates

Show the categories box at the bottom of the page,
which more accurately represents what the page would
look like and allows users to see the effective
categories of the expanded page.

Bug: 71633
Change-Id: I4c003fb1f42b29602cd8924b224ff7642e8cf857

9 years agoMerge "Update usage of getRedirectSnippet() and getSectionSnippet()"
jenkins-bot [Sun, 5 Oct 2014 20:09:58 +0000 (20:09 +0000)]
Merge "Update usage of getRedirectSnippet() and getSectionSnippet()"

9 years agoUpdate usage of getRedirectSnippet() and getSectionSnippet()
Mark A. Hershberger [Sun, 5 Oct 2014 20:02:05 +0000 (16:02 -0400)]
Update usage of getRedirectSnippet() and getSectionSnippet()

Meant to include this in I571e015814ea756771c66c243cb8db86448db463 but
it was missed.

Change-Id: I9ff805daee1c10d7ea75dedd0ba59b467aaadd50

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 5 Oct 2014 19:44:46 +0000 (21:44 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ide1bf69a2454e7031c3b373184e2f32a57d66b59

9 years agoMerge "Update usage of getTitleSnippet(), getRedirectSnippet() and getSectionSnippet()"
jenkins-bot [Sun, 5 Oct 2014 18:30:31 +0000 (18:30 +0000)]
Merge "Update usage of getTitleSnippet(), getRedirectSnippet() and getSectionSnippet()"

9 years agoTune Skin::preloadExistence
umherirrender [Sun, 5 Oct 2014 17:26:36 +0000 (19:26 +0200)]
Tune Skin::preloadExistence

Just preload user page and talk, when the personal bar is shown.
Use Skin::getRelevantTitle for the title to have the correct title
preloaded, when using for example [[Special:WhatLinksHere]].

Change-Id: I4363a9f3fd909cfdc341dc1a8c6c0189efd9b736

9 years agoUndefined variable: attrs in HistoryAction.php on line 202
umherirrender [Sun, 5 Oct 2014 17:08:15 +0000 (19:08 +0200)]
Undefined variable: attrs in HistoryAction.php on line 202

Replaced by an array() and removed an unused variable near by.

Follow-Up: I61bb3c358f755ed9f2153d94b744c1a9da02c456
Change-Id: I5c4dc22e1e9346bfc410a9dda4353d5297a5825e

9 years agoMerge "jquery.ui: Collapse border in ui-helper-clearfix"
jenkins-bot [Sun, 5 Oct 2014 08:00:14 +0000 (08:00 +0000)]
Merge "jquery.ui: Collapse border in ui-helper-clearfix"

9 years agoOOUI: Switch Minerva skin from deprecated 'Minerva' theme to 'MediaWiki'
James D. Forrester [Sat, 4 Oct 2014 22:07:32 +0000 (15:07 -0700)]
OOUI: Switch Minerva skin from deprecated 'Minerva' theme to 'MediaWiki'

Change-Id: I9600e11521256b143bfd8f3ee01cc1cf907a4c45

9 years agoMerge "Update OOjs UI to v0.1.0-pre (48980881f3)"
jenkins-bot [Sat, 4 Oct 2014 21:34:25 +0000 (21:34 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (48980881f3)"

9 years agoMerge "Fix for Bug 63980 - Comparison of limits in pingLimiter is incorrect"
jenkins-bot [Sat, 4 Oct 2014 20:35:30 +0000 (20:35 +0000)]
Merge "Fix for Bug 63980 - Comparison of limits in pingLimiter is incorrect"

9 years agoMerge "Add comment to AFL_* constants in Defines.php"
jenkins-bot [Sat, 4 Oct 2014 20:19:36 +0000 (20:19 +0000)]
Merge "Add comment to AFL_* constants in Defines.php"

9 years agoAvoid extra-long code lines
Amir E. Aharoni [Sat, 4 Oct 2014 14:02:55 +0000 (17:02 +0300)]
Avoid extra-long code lines

Makes phpcs happy.

Change-Id: Ideb4d4e7b9f5c385f108b91b26a796ecf6833d47

9 years agoWhitespace correction
Amir E. Aharoni [Sat, 4 Oct 2014 13:29:43 +0000 (16:29 +0300)]
Whitespace correction

Change-Id: Ia6e9c1e47bf6289398a38e6b4b2f5055e30ba4fb

9 years agoMerge "mediawiki.page.image.pagination: Cache last-loaded pages"
jenkins-bot [Sat, 4 Oct 2014 12:46:36 +0000 (12:46 +0000)]
Merge "mediawiki.page.image.pagination: Cache last-loaded pages"