lhc/web/wiklou.git
10 years agoMerge "Make sure DjVu files do not attempt metadata extraction repeatedly"
jenkins-bot [Fri, 23 May 2014 20:41:47 +0000 (20:41 +0000)]
Merge "Make sure DjVu files do not attempt metadata extraction repeatedly"

10 years agoMerge "Do not include user column on Special:MyUploads"
jenkins-bot [Fri, 23 May 2014 20:27:19 +0000 (20:27 +0000)]
Merge "Do not include user column on Special:MyUploads"

10 years agoMerge "Document ArticleUndelete change"
jenkins-bot [Fri, 23 May 2014 20:24:32 +0000 (20:24 +0000)]
Merge "Document ArticleUndelete change"

10 years agoMerge "Prevent deleteBatch.php deleting files from redirects"
jenkins-bot [Fri, 23 May 2014 20:19:19 +0000 (20:19 +0000)]
Merge "Prevent deleteBatch.php deleting files from redirects"

10 years agoMerge "Revert visibility change on DiffHistoryBlob::$mCompressed"
jenkins-bot [Fri, 23 May 2014 18:59:55 +0000 (18:59 +0000)]
Merge "Revert visibility change on DiffHistoryBlob::$mCompressed"

10 years agoMerge "Made getName() in ArchivedFile work when loaded via sha1"
jenkins-bot [Fri, 23 May 2014 18:52:59 +0000 (18:52 +0000)]
Merge "Made getName() in ArchivedFile work when loaded via sha1"

10 years agoPrevent deleteBatch.php deleting files from redirects
withoutaname [Fri, 9 May 2014 07:34:19 +0000 (00:34 -0700)]
Prevent deleteBatch.php deleting files from redirects

Previous behavior had the maintenance script deleteBatch.php
delete both the redirect in the file namespace and the file
from the target page the redirect is pointing to. This is
no longer the case, but it will still delete the redirect
page if it is still on the listfile.

Bug: 52587
Change-Id: I83374ddb98131f9f8f766bb2b444ab3e7cda7735

10 years agoRevert visibility change on DiffHistoryBlob::$mCompressed
Brad Jorsch [Fri, 23 May 2014 15:06:06 +0000 (11:06 -0400)]
Revert visibility change on DiffHistoryBlob::$mCompressed

Changing the visibility from public to protected causes unserialization
to fail.

Bug: 65665
Change-Id: Id7ee2068749ff421fab4d1c9067763adf4b89563

10 years agoImproved FileBackend failure logging a bit
Aaron Schulz [Fri, 23 May 2014 00:37:33 +0000 (17:37 -0700)]
Improved FileBackend failure logging a bit

* This partly follows up on 2cfce9f

Change-Id: I9d15f44d8000f52fd7b307d358c895452ee96a8d

10 years agoMake sure DjVu files do not attempt metadata extraction repeatedly
Brian Wolff [Fri, 23 May 2014 00:00:21 +0000 (21:00 -0300)]
Make sure DjVu files do not attempt metadata extraction repeatedly

If a file is broken, we don't want to spend time trying to find
its metadata over and over again.

Bug: 41090
Change-Id: Iad63b8942af99e1ec44530599a43ec1d6b2b8a62

10 years agoMediaWiki::performAction, return 404 on nosuchaction error
Sergio Santoro [Thu, 22 May 2014 22:17:23 +0000 (00:17 +0200)]
MediaWiki::performAction, return 404 on nosuchaction error

Nosuchaction error page was sending 200 as the HTTP status code,
which was misleading. Instead return 404.

Change-Id: I9b432c9e53caf0a13e9a0c798f78a7bd8a78443b

10 years agoMade getName() in ArchivedFile work when loaded via sha1
Aaron Schulz [Thu, 22 May 2014 20:46:13 +0000 (13:46 -0700)]
Made getName() in ArchivedFile work when loaded via sha1

Change-Id: I44e9c129f6c5841f8cbc9792aa9ff0f353bce6c0

10 years agoMerge "API: Enforce section=new constraint when using 'redirect' mode"
jenkins-bot [Thu, 22 May 2014 20:16:38 +0000 (20:16 +0000)]
Merge "API: Enforce section=new constraint when using 'redirect' mode"

10 years agoMerge "format the tests/phpunit/TODO document for readability"
jenkins-bot [Thu, 22 May 2014 20:15:32 +0000 (20:15 +0000)]
Merge "format the tests/phpunit/TODO document for readability"

10 years agoAPI: Enforce section=new constraint when using 'redirect' mode
Adam Roses Wight [Sun, 18 May 2014 07:04:36 +0000 (00:04 -0700)]
API: Enforce section=new constraint when using 'redirect' mode

Finish implementation of the 'redirect' edit API parameter.  This flag
should only be used as a convenience when adding a new section, appending,
or prepending.  Any other usage must be done using the long-cut (fetch page,
determine if it is a redirect, follow redirects and edit the target page's
content).

This patch takes apart the "EditConflict_redirect" test, because it no
longer makes sense--unless you dear reader can figure out how to force an
edit conflict when only adding a section?

Bug: 24330
Change-Id: Ie3f7273c18e156da1e50e1a36aac2e5341710982

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 22 May 2014 19:45:27 +0000 (19:45 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I589dbdf292abaf998d18fe553b7afb4880cb40de

10 years agoDo not include user column on Special:MyUploads
Brian Wolff [Thu, 22 May 2014 19:28:16 +0000 (16:28 -0300)]
Do not include user column on Special:MyUploads

If Special:ListFiles is being filtered to show only a specific
user, then there's not much point showing which user uploaded
the image, as they are all uploaded by the same user.

Bug: 30627
Change-Id: Ibe1be82cb8f3354889051ef00f3c0b9f9ea5180e

10 years agoMerge "wfDebugMem: Fix binary prefix and improve usability"
jenkins-bot [Thu, 22 May 2014 19:25:08 +0000 (19:25 +0000)]
Merge "wfDebugMem: Fix binary prefix and improve usability"

10 years agoMerge "Cached misses in getMulti should be omitted"
jenkins-bot [Thu, 22 May 2014 19:14:59 +0000 (19:14 +0000)]
Merge "Cached misses in getMulti should be omitted"

10 years agoCached misses in getMulti should be omitted
Matthias Mullie [Thu, 22 May 2014 13:48:20 +0000 (15:48 +0200)]
Cached misses in getMulti should be omitted

SqlBagOStuff::getMulti currently returns an array with false values for missed
cache keys.
Default BagOStuff::getMulti (and other specific implementations like memcached),
however, just omit missed values.

e.g.:

    $cache->getMulti( array( 'goodkey' 'badkey' ) );

should return

    array( 'goodkey' => 'value' );

instead of

    array( 'goodkey' => 'value', 'badkey' => false );

Bug: 65637
Change-Id: Ib2de06a0f76421094707f7ad4218346087f4dc55

10 years agoMerge "Apply correct line-height to diffs"
jenkins-bot [Thu, 22 May 2014 15:04:34 +0000 (15:04 +0000)]
Merge "Apply correct line-height to diffs"

10 years agoApply correct line-height to diffs
Erwin Dokter [Sun, 18 May 2014 15:22:06 +0000 (15:22 +0000)]
Apply correct line-height to diffs

The typography refresh exposes a small shortcoming in the CSS used
for diff display; there is no line-height applied, causing inconsistent
display between skin (ie. too high in Vector). Adding line-height to the
diffs corrects this.

Bug: 64653
Change-Id: I59dfe3e887c68a7034ef78f6873127ffe88b0cc1

10 years agowfDebugMem: Fix binary prefix and improve usability
Sergio Santoro [Thu, 22 May 2014 14:22:12 +0000 (16:22 +0200)]
wfDebugMem: Fix binary prefix and improve usability

* Fix: wfDebugMem no longer reports kibibytes as kilobytes
* Usability: wfDebugMem now uses unit symbols (e.g. KiB)

Change-Id: I1ab8aa3ccdb0fdea307913ada4ed42964d7fe960

10 years agop-lang-list was removed
Federico Leva [Thu, 22 May 2014 13:12:46 +0000 (15:12 +0200)]
p-lang-list was removed

Contrite followup to I220057c799bef7e8c4d964f47d56f61ec120d8c2

Change-Id: I028880cfa9946e628832a303779d6b3ffcf16620

10 years agoRestore search box tabindex
Alex Monk [Wed, 21 May 2014 15:16:44 +0000 (16:16 +0100)]
Restore search box tabindex

This was set by JS in collapsibleNav (wtf?) until I220057c7 nuked that module entirely.

A user needed this for accessibility reasons (details in OTRS#2014051610008141)

Bug: 29199
Change-Id: I74725c01a2058be1151927661c22ce42a1463f91

10 years agoMerge "Removed begin/commit calls that result in error spam"
jenkins-bot [Thu, 22 May 2014 08:45:10 +0000 (08:45 +0000)]
Merge "Removed begin/commit calls that result in error spam"

10 years agoMerge "Fixed possible race condition in LocalFileMoveBatch"
jenkins-bot [Thu, 22 May 2014 04:56:48 +0000 (04:56 +0000)]
Merge "Fixed possible race condition in LocalFileMoveBatch"

10 years agoMerge "whitespace fixup"
jenkins-bot [Wed, 21 May 2014 23:29:11 +0000 (23:29 +0000)]
Merge "whitespace fixup"

10 years agoRemoved begin/commit calls that result in error spam
Aaron Schulz [Wed, 21 May 2014 22:50:15 +0000 (15:50 -0700)]
Removed begin/commit calls that result in error spam

* The delete calls already try to start transactions. Also CLI scripts
  run in autocommit mode anyway.

Change-Id: I433691b3e4e578983e4e15334248f029e0b0d277

10 years agoUse square bounding boxes for default-sized thumbnails
C. Scott Ananian [Tue, 25 Mar 2014 16:48:55 +0000 (12:48 -0400)]
Use square bounding boxes for default-sized thumbnails

Thumbnails for portrait-orientation images have always been "too big",
especially when displayed in a gallery.  The 'upright' option did not
completely fix the issue.  Using a square bounding box for thumbnails
(and 'framed' images) without an explicit size specifiction provides
a better default appearance.

This also provides a clean syntax for content authored using
Parsoid/Visual Editor, which prefers square bounding boxes.

See:
https://www.mediawiki.org/wiki/Requests_for_comment/Square_bounding_boxes

Bug: 63903
Change-Id: I665d8945843d3b5437a74e376b63c44965590116

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 21 May 2014 20:28:18 +0000 (20:28 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoUpdate OOjs UI to v0.1.0-pre (0436296667)
James D. Forrester [Wed, 21 May 2014 20:17:16 +0000 (13:17 -0700)]
Update OOjs UI to v0.1.0-pre (0436296667)

New changes:
a5086f2 test: Drop 'OO.ui' file prefix in test suites
03ed3e9 Support strings in FlaggableElement#setFlags
be7b458 ConfirmationDialog: Clean up setup() documentation
b9ae654 build: Enable jscs "requireSpacesInsideArrayBrackets" rule
0436296 Localisation updates from https://translatewiki.net.

Change-Id: Id55715d0b2b0869349b3514b783700df26704445

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 21 May 2014 20:13:51 +0000 (20:13 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I18db039de1ae9525f340d661eefff9e05f9206c5

10 years agoMerge "Create a version of mediawiki.skinning.content for Parsoid HTML"
jenkins-bot [Wed, 21 May 2014 18:36:17 +0000 (18:36 +0000)]
Merge "Create a version of mediawiki.skinning.content for Parsoid HTML"

10 years agoMerge "Fix: numFields wrong for sqlite"
jenkins-bot [Wed, 21 May 2014 17:49:27 +0000 (17:49 +0000)]
Merge "Fix: numFields wrong for sqlite"

10 years agomediawiki.user: Add message to deprecation of name() and anonymous()
Timo Tijhof [Wed, 21 May 2014 17:26:22 +0000 (19:26 +0200)]
mediawiki.user: Add message to deprecation of name() and anonymous()

Follows-up de5e135. Forgot to add the message that says what to
use instead (like we do in mw.util and mw.toolbar already).

Change-Id: Ib6b6aece70b2e681ca291e376ddfc884c8a11033

10 years agoMove release notes for "Move redirect rendering into WikitextContent" to 1.24
Timo Tijhof [Wed, 21 May 2014 15:41:19 +0000 (17:41 +0200)]
Move release notes for "Move redirect rendering into WikitextContent" to 1.24

Follows-up Id44d566a7ca3, the commit was merged before the
branch cut and then reverted in REL_23 (I7431eb83a092).
The notes were never fixed in master.

Change-Id: I9ef5263ac8f7b8050bb1c6e7933cde6020389c90

10 years agoSync 1.23 release notes for bug 13250 from REL1_23
Timo Tijhof [Wed, 21 May 2014 15:30:54 +0000 (17:30 +0200)]
Sync 1.23 release notes for bug 13250 from REL1_23

Change I17dde71858fa655 was merged after the branch cut, and did
not have release notes. Then whoever backported it to REL1_23 decided
it really should have release notes and wrote them directly in
REL1_23...

Change-Id: Iceeb6c039059e11c1854e32ee086ec9f53f29a03

10 years agoSync 1.23 release notes for bug 64289 from REL1_23
Timo Tijhof [Wed, 21 May 2014 15:27:54 +0000 (17:27 +0200)]
Sync 1.23 release notes for bug 64289 from REL1_23

Change Ib97f47ef1 was merged after the branch cut, but did not
have release notes. Then whoever backported it to REL1_23 decided
it really should have release notes and wrote them directly in
REL1_23...

Change-Id: I5d36dc86f10e757cac286bcb9b63c9e711a921b9

10 years agoMove release notes for "Introducing pp_sortkey" to 1.24
Timo Tijhof [Wed, 21 May 2014 15:22:57 +0000 (17:22 +0200)]
Move release notes for "Introducing pp_sortkey" to 1.24

Follows-up I217c42656 and Iaa78a8254, the commit was merged
before the branch cut and then reverted in REL1_23. The notes
were never fixed in master.

Change-Id: I5355ac405aef4d2b0d660205bc1231c6eb35c02d

10 years agoFixup typography changes release notes between 1.23 and 1.14
Timo Tijhof [Wed, 21 May 2014 15:04:28 +0000 (17:04 +0200)]
Fixup typography changes release notes between 1.23 and 1.14

Hotfix I595feec9a to REL1_23 changes release notes directly
in REL1_23 without applying to master first. The files are now
out of sync.

* Sync the line in RELEASE-NOTES-1.23 with what is in REL1_23
  (basically cherry-picking hotfix I595feec9a from REL1_23 to
  master here).

* Move the remainder to RELEASE-NOTES-1.24.

Change-Id: Ic3dc2655101086521403cfc9929887a97bbed811

10 years agoMove release notes for "Introducing pp_sortkey" to 1.24
Timo Tijhof [Wed, 21 May 2014 14:54:54 +0000 (16:54 +0200)]
Move release notes for "Introducing pp_sortkey" to 1.24

Follows-up I217c42656fb877f, the commit was merged after the
branch cut and was not backported.

Change-Id: Iaa78a8254b3114600052005ce28d752b5f472354

10 years agoAdd method to determine EnhancedChangesList cache grouping key
aude [Fri, 11 Apr 2014 10:35:42 +0000 (12:35 +0200)]
Add method to determine EnhancedChangesList cache grouping key

Change-Id: Iaf3734baa53b71affca77d5243a579cc70bb522b

10 years agoMerge "mediawiki.searchSuggest: Code clean up"
jenkins-bot [Wed, 21 May 2014 13:21:20 +0000 (13:21 +0000)]
Merge "mediawiki.searchSuggest: Code clean up"

10 years agoFix: numFields wrong for sqlite
physikerwelt [Wed, 21 May 2014 11:38:56 +0000 (11:38 +0000)]
Fix: numFields wrong for sqlite

Currently the first row of the result
is used to return the number of fields.
This fix corrects that calculation, which has returned
twice the number of fields before. The reason for that
was that the resulting data array has the following form:
array() {
 [0] => value_0
 ["field_name0"] =>value_0
 [1] => value_1
 ["field_name1"] =>value_1
...
Furthermore the constant 0 (int) is returned if the result
set is empty. This issue should be corrected in the future,
since the number or fields should be answered in a metadata context
independent of the data stored in the relation.

Bug: 65578
Change-Id: I399c7c857dcbd774cc4eb6102bbfe8a8764b07c9

10 years agoMerge "mediawiki.toc.test: Stub $.cookie to avoid test pollution"
jenkins-bot [Wed, 21 May 2014 13:03:09 +0000 (13:03 +0000)]
Merge "mediawiki.toc.test: Stub $.cookie to avoid test pollution"

10 years agoMerge "Inserted test whether the resource 'uploadsource' is already registered. Bug...
jenkins-bot [Wed, 21 May 2014 09:31:41 +0000 (09:31 +0000)]
Merge "Inserted test whether the resource 'uploadsource' is already registered. Bug: 65530"

10 years agowhitespace fixup
Adam Roses Wight [Wed, 21 May 2014 08:00:45 +0000 (01:00 -0700)]
whitespace fixup

Change-Id: Id3164f1a36d3b36f2e7404af5dd0545049e2b778

10 years agoDocument ArticleUndelete change
Matthew Flaschen [Wed, 21 May 2014 02:37:19 +0000 (22:37 -0400)]
Document ArticleUndelete change

Change-Id: I157cab408598878e9483b60e656026f0ddbbb0b2

10 years agomediawiki.searchSuggest: Code clean up
Timo Tijhof [Wed, 21 May 2014 01:07:08 +0000 (03:07 +0200)]
mediawiki.searchSuggest: Code clean up

* Cache mw.Api instance.
* Remove redundant "str.length" check in fetch(),
  jquery.suggestions already takes care of this (it never calls
  fetch if the string is empty, and if it did, then this code would've
  left it unhandled causing bugs (e.g. suggestions of the previous
  fetch remain visible).
* Remove redundant promise.abort check.
* Use $.data() and $.removeData() to bypass unneeded convenience
  logic for collections and HTML data attributes.

Change-Id: I59ae21c4b481ef52e4db14cb1f3f2fe026c23b3f

10 years agoMerge "Tweaked timestamp kludge logic in recordUpload2"
jenkins-bot [Tue, 20 May 2014 23:34:29 +0000 (23:34 +0000)]
Merge "Tweaked timestamp kludge logic in recordUpload2"

10 years agoMerge "Replace FOR UPDATE with LockManager use in LocalFile::lock()"
jenkins-bot [Tue, 20 May 2014 22:07:21 +0000 (22:07 +0000)]
Merge "Replace FOR UPDATE with LockManager use in LocalFile::lock()"

10 years agoTweaked timestamp kludge logic in recordUpload2
Aaron Schulz [Tue, 20 May 2014 21:40:42 +0000 (14:40 -0700)]
Tweaked timestamp kludge logic in recordUpload2

* This now only does the SELECT FOR UPDATE for the re-upload case

Change-Id: I21b1b0328b6dbfb30f4f0293212515b9ee081778

10 years agoReplace FOR UPDATE with LockManager use in LocalFile::lock()
Aaron Schulz [Tue, 20 May 2014 21:22:52 +0000 (14:22 -0700)]
Replace FOR UPDATE with LockManager use in LocalFile::lock()

* This avoids excess contention where inserts of rows for
  similarly named files get blocked. This often would effect
  users of UploadWizard or any bot doing mass uploads.

Change-Id: Ie7a328f7d4f03aa249770804417347a50356ea42

10 years agoMerge "Update kss style guide wording and README"
jenkins-bot [Tue, 20 May 2014 21:14:33 +0000 (21:14 +0000)]
Merge "Update kss style guide wording and README"

10 years agoMerge "Improve rendering of Living Style Guide sections, examples, and modifiers."
jenkins-bot [Tue, 20 May 2014 21:08:18 +0000 (21:08 +0000)]
Merge "Improve rendering of Living Style Guide sections, examples, and modifiers."

10 years agoCreate a version of mediawiki.skinning.content for Parsoid HTML
James D. Forrester [Wed, 30 Apr 2014 23:26:44 +0000 (16:26 -0700)]
Create a version of mediawiki.skinning.content for Parsoid HTML

The provides a transitional central content styling module for all
consumers of Parsoid's HTML+RDFa, to avoid local duplication (and
variation) of these rules in each of the consuming applications such as
Parsoid's read service[0], VisualEditor[1], MobileFrontend[2], Kiwix[3],
Flow[4] and others.

In a short while (probably before MW 1.24 branches), we expect to switch
over the primary read HTML to Parsoid- rather than MWParser-generated,
at which time this HTML will become the core for MediaWiki's content
styling, with skins able to over-ride or augment this styling as they see
fit.

[0] http://parsoid-lb.eqiad.wikimedia.org/enwiki/Foobar?oldid=608091782
[1] http://en.wikipedia.org/wiki/Foobar?oldid=608091782&veaction=edit
[2] http://en.m.wikipedia.org/wiki/Foobar?oldid=608091782
[3] http://www.kiwix.org/wiki/Main_Page
[4] http://en.wikipedia.org/wiki/Wikipedia_talk:Flow/Developer_test_page

Change-Id: I400336c12d58308d7177b24180693874effadf69

10 years agoExpand doc of ApiBase::require*Parameter functions
umherirrender [Tue, 13 May 2014 18:37:41 +0000 (20:37 +0200)]
Expand doc of ApiBase::require*Parameter functions

Add a hint to the getError function which should be called in the
getPossibleErrors() function.
Also do this for getTitleOrPageId.

Change-Id: I601feb8a5b8699ce4d81814aa3cd127552a525ac

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 20 May 2014 18:42:01 +0000 (18:42 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I7ddc1117c5f50186185cc66ebcc019ff1d4781a6

10 years agoMerge "Collation: Remove deprecated findLowerBound()"
jenkins-bot [Tue, 20 May 2014 17:52:28 +0000 (17:52 +0000)]
Merge "Collation: Remove deprecated findLowerBound()"

10 years agoMerge "User::pingLimiter() profiles per action as well"
jenkins-bot [Tue, 20 May 2014 17:41:19 +0000 (17:41 +0000)]
Merge "User::pingLimiter() profiles per action as well"

10 years agoMerge "Pass archived page id to ArticleUndelete hook."
Phuedx [Tue, 20 May 2014 17:06:14 +0000 (17:06 +0000)]
Merge "Pass archived page id to ArticleUndelete hook."

10 years agoPass archived page id to ArticleUndelete hook.
Rob Moen [Thu, 15 May 2014 22:51:52 +0000 (15:51 -0700)]
Pass archived page id to ArticleUndelete hook.

Needed for instrumentation of PageRestoration schema

Rationale:  By the time the hook runs, there is no longer record
of the previous page id.

Change-Id: If87a73e47def7a4404858f374780c3f1cf4d69b5
See: https://meta.wikimedia.org/wiki/Schema:PageRestoration
Needed by: Id40347ec268658dc854e4ab2dd38570b19db1477

10 years agomediawiki.toc.test: Stub $.cookie to avoid test pollution
Timo Tijhof [Tue, 20 May 2014 14:40:55 +0000 (16:40 +0200)]
mediawiki.toc.test: Stub $.cookie to avoid test pollution

When running the tests locally the mediawiki.toc tests often
fail because where it asserts hidden it is visible, and where it
asserts visible it is hidden (this happens if you've ever closed
a "toc" section on your local wiki, causes the tests to be one-off).

Change-Id: Idc5e7123f3be3e11dac50d76d13089a2fabcfdb5

10 years agoInserted test whether the resource 'uploadsource' is already registered.
Alexander Lehmann [Tue, 20 May 2014 12:26:33 +0000 (14:26 +0200)]
Inserted test whether the resource 'uploadsource' is already registered.
Bug: 65530

Change-Id: I1b82d6dc6a37792d4e7b7d01316802ea4d38a88b

10 years agoMerge "API: Fix prop=revisions&rvdiffto= without rvprop=content"
jenkins-bot [Tue, 20 May 2014 01:34:12 +0000 (01:34 +0000)]
Merge "API: Fix prop=revisions&rvdiffto= without rvprop=content"

10 years agoAdd RELEASE-NOTES entry for 87e0aa344176d9877bffdf77e222439ec0a99f9e
C. Scott Ananian [Mon, 19 May 2014 22:54:48 +0000 (15:54 -0700)]
Add RELEASE-NOTES entry for 87e0aa344176d9877bffdf77e222439ec0a99f9e

Change-Id: Idbd61178c76ec2104791031fe2c6ee84a3daf632

10 years agoIndicate whether interwiki links can use protocol-relative URLs.
C. Scott Ananian [Mon, 19 May 2014 22:22:32 +0000 (15:22 -0700)]
Indicate whether interwiki links can use protocol-relative URLs.

Change-Id: I17360e44f0be7490357bc9bc7af27d0a950012de

10 years agoFixed possible race condition in LocalFileMoveBatch
Aaron Schulz [Mon, 19 May 2014 22:18:01 +0000 (15:18 -0700)]
Fixed possible race condition in LocalFileMoveBatch

* If a move is blocked by a re-upload and the TRX started outside of
  LocalFile::lock, then the move did not see the new row in the oldimage
  table and so it will not move that version of the file in storage. Use
  the latest DB data to avoid that.

Change-Id: I7ec46941170293c96b99a449cb396517108e8b3d

10 years agoUpdate OOjs UI to v0.1.0-pre (0fbf6bd14e)
Roan Kattouw [Mon, 19 May 2014 21:09:32 +0000 (14:09 -0700)]
Update OOjs UI to v0.1.0-pre (0fbf6bd14e)

New changes:
ab5ebc6 Localisation updates from https://translatewiki.net.
39a1496 Make flags on buttons in confirmation dialog configurable

Change-Id: I6c67b919003a33b1617ad36734bde489d79d916c

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 19 May 2014 19:49:32 +0000 (19:49 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoMerge "Make phpcs-strict pass on includes/ (7/7)"
jenkins-bot [Mon, 19 May 2014 19:38:53 +0000 (19:38 +0000)]
Merge "Make phpcs-strict pass on includes/ (7/7)"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 19 May 2014 19:35:06 +0000 (19:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Icc1e3c9406a1b0e2af89d2e8d2d0ca2119da0607

10 years agoMerge "mediawiki.htmlform: Refactor and clean up"
jenkins-bot [Mon, 19 May 2014 19:34:16 +0000 (19:34 +0000)]
Merge "mediawiki.htmlform: Refactor and clean up"

10 years agoMerge "Move ApiQueryRecentChanges::parseRCType to static method on RecentChange"
jenkins-bot [Mon, 19 May 2014 18:57:25 +0000 (18:57 +0000)]
Merge "Move ApiQueryRecentChanges::parseRCType to static method on RecentChange"

10 years agoMerge "IP class cleanups"
jenkins-bot [Mon, 19 May 2014 18:29:09 +0000 (18:29 +0000)]
Merge "IP class cleanups"

10 years agoUpdate OOjs UI to v0.1.0-pre (521a9e242b)
Roan Kattouw [Mon, 19 May 2014 17:42:48 +0000 (10:42 -0700)]
Update OOjs UI to v0.1.0-pre (521a9e242b)

New changes:
1429076 Upgrade jQuery from 1.8.2 to 1.11.1
f14c3b2 Localisation updates from https://translatewiki.net.
8612e00 Localisation updates from https://translatewiki.net.
521a9e2 Window: Apply display:none after initialize, not before

Change-Id: Ieabe267b13dee1c2c419ccf12e910e349a7e3768

10 years agomediawiki.htmlform: Refactor and clean up
Timo Tijhof [Fri, 9 May 2014 08:44:34 +0000 (10:44 +0200)]
mediawiki.htmlform: Refactor and clean up

* Use .filter function instead of concatenating strings.
  The end result is the same.

  It's faster and more stable and semantically correct this way
  because using the string syntax is subject to bugs when using
  special characters (you'd have to escape it first, which is
  non-trivial to do in CSS selectors, sometimes impossible).
  So comparing the .name property against a string value directly
  is much easier.

* Use .prop() instead of .attr() where appropiate.
  attr() changes attribute nodes only in the DOM, properties
  reflect the actual live rendered value. This works because of
  a back-compat layer in jQuery, but has been deprecated.

* Use a simple array and create 1 jQuery object, instead of
  creating various temporary objects only to have jQuery merge
  them via .add(). .add() is relatively expensive in that it
  keeps a reference in pushStack and does a lot of logic. Fine
  for convenience, but since we have all the data right here,
  might as well take a more direct approach.

* Remove ill-informed $() calls. This is already a jQuery object
  for the method is a jQuery method. Cloning the object first
  leads to unexpected side-effects and is simply not neccecary.

* Remove use of .live()

Change-Id: Icfe63a4111026661c53639b72e67a4d4fa3d6ac2

10 years agoMerge "Fixed job miscounting bug when a string digit is returned"
jenkins-bot [Mon, 19 May 2014 17:27:47 +0000 (17:27 +0000)]
Merge "Fixed job miscounting bug when a string digit is returned"

10 years agoFixed job miscounting bug when a string digit is returned
Aaron Schulz [Mon, 19 May 2014 17:12:14 +0000 (10:12 -0700)]
Fixed job miscounting bug when a string digit is returned

Change-Id: I857b56a6e78f715157c7f648929d6bf38eb74828

10 years agoCollation: Remove deprecated findLowerBound()
Bartosz Dziewoński [Mon, 19 May 2014 16:21:08 +0000 (18:21 +0200)]
Collation: Remove deprecated findLowerBound()

It was just a wrapper for ArrayUtils::findLowerBound(), it's not used
in core and it shouldn't be used anywhere outside of core (but I
haven't checked).

Change-Id: I53b0aca6bb642bdf6c972098170579fa13746554

10 years agoMerge "mediawiki.page.watch.ajax: Disable watch link while waiting for API response"
jenkins-bot [Mon, 19 May 2014 15:20:26 +0000 (15:20 +0000)]
Merge "mediawiki.page.watch.ajax: Disable watch link while waiting for API response"

10 years agomediawiki.page.watch.ajax: Disable watch link while waiting for API response
Bartosz Dziewoński [Sat, 17 May 2014 13:55:08 +0000 (15:55 +0200)]
mediawiki.page.watch.ajax: Disable watch link while waiting for API response

Previously clicking the watch link several times in a row would fire
several requests to the API, and the final result would depend on the
order in which they arrived. Let's not allow that.

This also removes the special-case for the 'loading' class, it is now
always added or removed.

Change-Id: Ib91ec8505d04945dc77e48ab70b5c94e3da47d9c

10 years agoMerge "mediawiki.api: Use then() in getToken instead of manual Deferred wrapping"
jenkins-bot [Mon, 19 May 2014 11:32:20 +0000 (11:32 +0000)]
Merge "mediawiki.api: Use then() in getToken instead of manual Deferred wrapping"

10 years agoMerge "mediawiki.api: Do not cache errors in getToken()"
jenkins-bot [Mon, 19 May 2014 11:31:57 +0000 (11:31 +0000)]
Merge "mediawiki.api: Do not cache errors in getToken()"

10 years agoMerge "mediawiki.user: Use mw.log.deprecate to track user() and anonymous()"
jenkins-bot [Mon, 19 May 2014 11:03:03 +0000 (11:03 +0000)]
Merge "mediawiki.user: Use mw.log.deprecate to track user() and anonymous()"

10 years agoUser::pingLimiter() profiles per action as well
Antoine Musso [Mon, 19 May 2014 10:45:11 +0000 (12:45 +0200)]
User::pingLimiter() profiles per action as well

We had an outage beginning of may that involved rate limiting of the
'renderfile-nonstandard' action.  This makes User::pingLimiter() to
record a per action profiling point in addition to the generic one, that
would let us finely graph actions being throttled.

Ref:
https://wikitech.wikimedia.org/wiki/Incident_documentation/20140503-Thumbnails#What_can_be_improved

Bug: 65477
Change-Id: Iac7930e85f7d9101663656ccb2bccdbebf908693

10 years agoMerge "jquery.tipsy: Add viewable region bounds checking"
jenkins-bot [Mon, 19 May 2014 10:13:42 +0000 (10:13 +0000)]
Merge "jquery.tipsy: Add viewable region bounds checking"

10 years agoMerge "jquery.tipsy: Merge some upstream changes"
jenkins-bot [Mon, 19 May 2014 10:12:37 +0000 (10:12 +0000)]
Merge "jquery.tipsy: Merge some upstream changes"

10 years agoopportunity to reuse Title::getEditURL()
Adam Roses Wight [Sun, 18 May 2014 20:54:46 +0000 (13:54 -0700)]
opportunity to reuse Title::getEditURL()

This will be helpful if we want to make changes to the edit URL in the future.

Change-Id: I6e877d23b041a2bd1672ae804e06bf6a52e16c9f

10 years agoMerge "Avoid fatals in begin/commit/rollback if close() was called"
jenkins-bot [Mon, 19 May 2014 04:20:00 +0000 (04:20 +0000)]
Merge "Avoid fatals in begin/commit/rollback if close() was called"

10 years agoFix error message when swap is disabled
Tim Starling [Mon, 19 May 2014 00:41:52 +0000 (10:41 +1000)]
Fix error message when swap is disabled

Bug: 65465
Change-Id: Ibb1b14f5271d60c039398e8ce8a9c2a5d245241f

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 18 May 2014 19:56:04 +0000 (19:56 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idc2498ae827432f400c278e873295ec42aa9ca0e

10 years agojquery.tipsy: Add viewable region bounds checking
Shane Gibbons [Sun, 21 Nov 2010 20:39:42 +0000 (15:39 -0500)]
jquery.tipsy: Add viewable region bounds checking

Merge of upstream: 5a8253f

https://github.com/jaz303/tipsy/commit/5a8253f

Bug: 44382
Change-Id: I984a99a18efbb9722e820e5e5828bc6289a9a673

10 years agojquery.tipsy: Merge some upstream changes
Derk-Jan Hartman [Sun, 18 May 2014 14:01:00 +0000 (16:01 +0200)]
jquery.tipsy: Merge some upstream changes

https://github.com/jaz303/tipsy/tree/2d916c6

4b3e29f: Remove superfluous slash
23994f5: tipsy object proxy method tolerates null object
2d916c6: Always ensure native tooltip is restored

Change-Id: Id87ba461265730a56a3212c003b8321bd53a6096

10 years agoMerge "Remove unneeded $classes from SpecialTrackingCategories.php"
jenkins-bot [Sun, 18 May 2014 14:07:57 +0000 (14:07 +0000)]
Merge "Remove unneeded $classes from SpecialTrackingCategories.php"

10 years agoMerge "Update jscs and jshint config"
jenkins-bot [Sun, 18 May 2014 10:11:53 +0000 (10:11 +0000)]
Merge "Update jscs and jshint config"

10 years agoMerge "vector: Suppress watch star focus outline when animating it"
jenkins-bot [Sun, 18 May 2014 10:03:06 +0000 (10:03 +0000)]
Merge "vector: Suppress watch star focus outline when animating it"

10 years agoRemove unneeded $classes from SpecialTrackingCategories.php
umherirrender [Fri, 16 May 2014 15:50:00 +0000 (17:50 +0200)]
Remove unneeded $classes from SpecialTrackingCategories.php

Change-Id: I9f10db9f6596ac0bfe0aa1595acbeeef4ca5713a

10 years agoMerge "For job param arrays of scalars, show the key/values as JSON in the log"
jenkins-bot [Sun, 18 May 2014 02:33:30 +0000 (02:33 +0000)]
Merge "For job param arrays of scalars, show the key/values as JSON in the log"