Commit graph

50498 commits

Author SHA1 Message Date
Alexandre Emsenhuber
84f64b30fc Add new HTMLForm::addHiddenFields() methods
Allows to set various hidden fields from a single method call;
can be used with:
$form->addHiddenFields( $context->getRequest()->getValues( /* field list */ ) );

Change-Id: I864584e5889297bb680808163f48795bab8f7afb
2013-08-20 20:20:08 +02:00
Brian Wolff
3a3a31088e Follow-up db51c53b8f. Fix already used variable name.
This caused the upload warnings to output undefined on
Special:Upload.

Bug: 40785
Change-Id: I733a5092eac21bfbfa100e0bd9aaed583ab044ab
2013-08-20 09:37:14 -07:00
jenkins-bot
308ccb9f97 Merge "New hook, UserRequiresHTTPS" 2013-08-20 16:25:04 +00:00
Max Semenik
1f64960d83 New hook, UserRequiresHTTPS
Intended for situations where current user can't technically access the
site over a secure connection, e.g. due to a terribly obsolete browser or
WP Zero carrier that provides only insecure free access to the site.

Change-Id: I343985092c49a21fa347ca4dc0e5ec27774ad11d
2013-08-20 19:58:12 +04:00
jenkins-bot
a9da9af4a1 Merge "Update Chechen language namespace names from translatewiki" 2013-08-20 09:54:22 +00:00
jenkins-bot
ba0f72b8a0 Merge "$wgHooks: add closure docs & admonition to register handlers early" 2013-08-20 09:51:32 +00:00
Ori Livneh
c7b8bc69e4 $wgHooks: add closure docs & admonition to register handlers early
This patch takes Tim's advice to amend the doc block for $wgHooks with an
admonition to register hook handlers early. (This was after it was determined
that late registration of a CanonicalNamespace handler was responsible for bug
45031). Since I was already here, I also documented the use of closures with
$wgHooks, fulfilling a @TODO.

Change-Id: Id16148dbfbcc89e0365860e078e089ae541ba08f
2013-08-20 09:46:06 +00:00
This, that and the other
790abd41fd Update Chechen language namespace names from translatewiki
Also adding old name back in as an alias.

Bug: 51783
Change-Id: I88790d1e6ccc63bbcd2aff9c26403a710b7e6ff8
2013-08-20 19:40:07 +10:00
jenkins-bot
6c056478b1 Merge "Eliminate confusing redundancy in accmailtext" 2013-08-20 09:09:16 +00:00
Amir E. Aharoni
2e3a0d10b0 Add diff-multi to classes with explicit direction
This ensures that the direction of the notice about the intermediate
versions is in the user language's direction.

Bug: 52321
Change-Id: I1ef8b85dc7a2f6e4a7e6be055ed0f962d5532c7f
2013-08-20 08:47:17 +00:00
Chad Horohoe
3c2b7246f1 Fix super long line
Change-Id: Ib76a2b6209137bcf18db9b756fa7406547611129
2013-08-19 18:16:10 -07:00
Chad Horohoe
d95454b44f Add some logging for weird redirected POSTs
Change-Id: Ib19ebc2306e85fdb8c29b5850f2306bec7907938
2013-08-19 17:29:50 -07:00
Chad Horohoe
296e971625 Remove padlock icon from login link
Change-Id: I021f7a92b84e73502328d8186dc7ca1e1946ca0d
2013-08-20 00:13:56 +00:00
jenkins-bot
e7ec09cb84 Merge "Change secure login to use a user preference" 2013-08-20 00:08:25 +00:00
Tyler Anthony Romeo
374a0ad943 Change secure login to use a user preference
Removed the wpStickHTTPS checkbox from the login form, and instead
just use the user's preferences along with whether they came from
HTTPS or not to determine if they should stay in HTTPS.

Bug: 29898
Bug: 52283
Change-Id: I69e9cb23b8d700e821b8a961c672958e4e19e4f8
2013-08-19 16:57:04 -07:00
Bryan Davis
2305e760f7 Release note update for bug 51064.
Change-Id: I7b840ccfa010f3e8df09507bbe1c335cc69e5208
2013-08-19 13:23:24 -07:00
Translation updater bot
af9a058287 Localisation updates from http://translatewiki.net.
Change-Id: Id35bb6bf978ee1bbec6d4e786c589e8dcb18a0f8
2013-08-19 19:31:50 +00:00
jenkins-bot
cf155d5b7d Merge "Purge upstream caches when deleting file assets." 2013-08-19 18:45:29 +00:00
Bryan Davis
ede015209d Purge upstream caches when deleting file assets.
Inform upstream caches when a file asset is deleted by calling
SquidUpdate::purge(). This helps prevent unintentional information leakage in
the event that the asset is being deleted for reasons of license or content.

Bug: 51064
Change-Id: Ibf57e8f32d7dd04b8508a69706be5a40b49e5abd
2013-08-19 18:11:44 +00:00
jenkins-bot
178c7853d1 Merge "Fix comments for grep" 2013-08-19 08:02:07 +00:00
jenkins-bot
66cf8a6310 Merge "Followup Ifb005e7c: some cleanup in comments." 2013-08-19 08:00:34 +00:00
shirayuki
3e20b61978 Fix comments for grep
* category-*-count
* node-count-exceeded-*
* expansion-depth-exceeded-*

Change-Id: If5a58c4f128d15969c56955af43aff76954ca94b
2013-08-19 14:26:32 +09:00
Translation updater bot
e49190fd3e Localisation updates from http://translatewiki.net.
Change-Id: Iad6b538be6d172d232b8e593ff98faf3d5707abe
2013-08-18 19:39:15 +00:00
MatmaRex
34361bbcbf Adjust two new date formats for Polish (pl)
* monthonly - happens to be the same as in English, but nonetheless
  copied explictly to avoid confusion in the future, as it's the only
  one to use the nominative form of month name instead of genitive

* pretty - needs to use genitive month name instead of nominative;
  same for dmy, mdy and ymd variants, as any form with different order
  would be gramatically awkward

I am a native Polish speaker.

Change-Id: Ic253f590b0a60196cf3d98ce8785b151bb576946
2013-08-18 17:07:37 +02:00
jenkins-bot
3b92a39b16 Merge "Accessibility: Add aria-labelledby to the navigation landmarks" 2013-08-18 12:57:27 +00:00
TheDJ
75da5baa3f Merge "Set modes back to 0644 to ImagePage.php and Resources.php" 2013-08-18 12:05:03 +00:00
jiabao
6dda787ec5 Show message when user successfully changed password.
Return a message when password has been successfully changed.
Give a successbox to the message which is the same as it for
saving preference.

Bug: 47399
Change-Id: I255c53d82cf0a58ee9ff1c0c939854e7392872e5
2013-08-18 11:47:53 +02:00
umherirrender
305dbc23a5 Do not parse param of newsectionsummary on new section preview
Summary preview of section=new shows expand templates.
Using the summary text as raw param avoids this.
Other usages of 'newsectionsummary' do it the same way.

Bug: 40453
Change-Id: I1fd3adfc64c664dfd490c11bfe60924fa215875c
2013-08-18 09:37:45 +00:00
Matthew Flaschen
efe86f6f12 Commenting and doc fixes around the spam regexes
Follow-up to clarify 6e83874748 , fix an
older inaccurate comment, and fix a docblock copy-and-paste error.

Change-Id: I14e4ff2a5c3e61d7a9a27428953f1579d9d8436b
2013-08-18 09:26:53 +00:00
Brian Wolff
45024d218d Make msg method of DerivativeContext work properly.
Previously, the msg method was not taking into account any
changes to the context, and was just using the original context.

For example, if you had a DerivativeContext object, where the
original context had a language of en, and then you did
$derivContext->setLanguage( 'fr' );, $derivContext->msg( 'foo' )
was still outputting stuff in english instead of french.

Change-Id: I4a87e0e2664e77bf79a80c873db384e0c3f607e7
2013-08-18 09:20:38 +00:00
Alexandre Emsenhuber
61b93a4cd9 Set modes back to 0644 to ImagePage.php and Resources.php
Fix for Icd1cde7c62 (427b0e1).

Change-Id: I981a84c1b2f3997daa590acad422445e3640b5fb
2013-08-18 11:16:36 +02:00
Nemo bis
470bf4b370 In login-throttled, specify how long you have to wait before logging in
Throttle time will be enough to give an idea of the time to wait.
The actual time seems to be the time since the first of the last n
attempts in time t as per $wgPasswordAttemptThrottle, but it does not
seem too bad if the user gets a new full pool of allowed attempts.

Bug: 46965
Change-Id: Id385be840f340476fbe7a818ff1d05154fe86d68
2013-08-18 08:01:31 +00:00
jenkins-bot
412fead44e Merge "Fix help for --only: override doesn't work with CamelCase" 2013-08-18 08:00:46 +00:00
jenkins-bot
98c7138c3b Merge "action=edit API with section=new would fail if page didn't exist" 2013-08-17 20:06:58 +00:00
Translation updater bot
68c1a805d5 Localisation updates from http://translatewiki.net.
Change-Id: I0fe28c8ad5d61304babf766db49f2c3e9f218a55
2013-08-17 19:29:56 +00:00
Nemo bis
012c44fd15 Fix help for --only: override doesn't work with CamelCase
See I725d07397cfa6e61e0644a9a40635d608f6be98d

Change-Id: I51320f5b2ae4335271bda53ce523c79328ff8d83
2013-08-17 13:35:30 +02:00
jenkins-bot
a950a6f0eb Merge "Sync up with Parsoid parserTests." 2013-08-16 20:59:32 +00:00
Translation updater bot
6ce5c4ece9 Localisation updates from http://translatewiki.net.
Change-Id: I345c7a9f6390d1f3d39d677d624e60bb4da4c17f
2013-08-16 19:21:57 +00:00
C. Scott Ananian
2305dbbd2a Sync up with Parsoid parserTests.
This now aligns with Parsoid commit bf60ad87877b573c9db813fe56f38842e2c52a3d

Change-Id: I9647d5010e06263a31970d8c168667af56c75b77
2013-08-16 14:43:54 -04:00
jenkins-bot
59c2b1de3f Merge "Add a parserTest documenting interaction of tabs and preformatted text." 2013-08-16 18:08:02 +00:00
C. Scott Ananian
5b1f26b7b1 Add parserTests for the interaction of italics and possessives.
Bug: 49926
Change-Id: I9756a1fb0bd583e6a4495ef28c3c159492dad871
2013-08-16 12:42:55 -04:00
C. Scott Ananian
a8448c557d Add a parserTest documenting interaction of tabs and preformatted text.
Tabs are apparently used this way on the front page of plwiki.

Change-Id: I0a65d5a9783071e91696ed2b96887f44199a999d
2013-08-16 12:16:15 -04:00
shirayuki
b2e2b2e016 Give grep a chance to find the usages
Change-Id: I18846326539b814fa7fa93ca54117dac3572e4b0
2013-08-16 22:07:38 +09:00
Pavel Selitskas
d2386c4f67 Convert underscores to spaces in {{SUBJECTSPACE}}
Bug: 46742
Change-Id: I1af2432cb453efff209e5c384eb484cff5440ebb
2013-08-16 06:14:00 +00:00
Liangent
3a06dd9be9 Allow more than one variant set in user preferences.
Now with the introduction of page language, a site can have pages
in all languages, and different languages have different variants.
This patch allows users to set preferred variants for every page
they may see on the site.

Change-Id: Ie7e82bee0b1f8f902b38bb4a464cf0ebc4df4d89
2013-08-16 05:46:14 +00:00
Chad Horohoe
589e82f142 Rename 'backend' param to 'srbackend' to match API
Change-Id: I1ac1502d60a23118746175f857f8f6d8d78f5e25
2013-08-15 16:55:20 -07:00
Reedy
297129a4fc Return values from finalSetup() aren't evaluated
Not that parent::finalSetup() returns anything anyway...

Change-Id: I21cb5e13cc83297f24a30ef37859430b0fefb695
2013-08-15 22:53:40 +00:00
TheDJ
5c5fb511c7 Merge "Make image pagination not require a page load." 2013-08-15 20:31:27 +00:00
Translation updater bot
02e0a6a7b2 Localisation updates from http://translatewiki.net.
Change-Id: Ie77d7865cbbf6948ac5b598505d05e6407d17e05
2013-08-15 19:40:02 +00:00
TheDJ
6006a8895b Merge "EditPage: Wrap the pipe between "Cancel" and "Editing help" links in a <span>" 2013-08-15 18:31:43 +00:00