lhc/web/wiklou.git
10 years agoPostgreSQL: Fix syntax error in page_props index
Jeff Janes [Tue, 29 Apr 2014 18:11:58 +0000 (11:11 -0700)]
PostgreSQL: Fix syntax error in page_props index

Follows up I217c42656fb877ff35a36eb446a22bdaf119faac

That change introduced a syntax error during update.  I have verified
that this fixes the syntax problem so that update.php runs, but have
not verified that the new functionality behaves as intended.

Also, the PostgreSQL schema changes introduced during the update
process were not present at all in a fresh install to PostgreSQL.  Add
analogous changes to tables.sql.

Bug: 64807
Change-Id: I736344839ec478216402fdfe260968afbd663498

10 years agoMerge "Do not increment the total site edit count on null edits"
jenkins-bot [Tue, 29 Apr 2014 17:06:28 +0000 (17:06 +0000)]
Merge "Do not increment the total site edit count on null edits"

10 years agoMerge "Make the link in printfooter explicitly ltr"
jenkins-bot [Tue, 29 Apr 2014 16:37:00 +0000 (16:37 +0000)]
Merge "Make the link in printfooter explicitly ltr"

10 years agoMerge "Document that IContextSource::getTitle can return null"
jenkins-bot [Tue, 29 Apr 2014 14:42:57 +0000 (14:42 +0000)]
Merge "Document that IContextSource::getTitle can return null"

10 years agoMerge "JSDuck-ify /resources/mediawiki.page/*"
jenkins-bot [Tue, 29 Apr 2014 13:48:28 +0000 (13:48 +0000)]
Merge "JSDuck-ify /resources/mediawiki.page/*"

10 years agoMerge "JSDuck-ify /resources/mediawiki.action/*"
jenkins-bot [Tue, 29 Apr 2014 13:42:58 +0000 (13:42 +0000)]
Merge "JSDuck-ify /resources/mediawiki.action/*"

10 years agoMerge "jquery.tabIndex: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:41:39 +0000 (13:41 +0000)]
Merge "jquery.tabIndex: Add jsduck documentation"

10 years agoJSDuck-ify /resources/mediawiki.page/*
Timo Tijhof [Sun, 27 Apr 2014 15:29:54 +0000 (17:29 +0200)]
JSDuck-ify /resources/mediawiki.page/*

Adds mw.hook "mediawiki.page.gallery.resize" to the index.

Change-Id: I538659a62fe99991de2a99cbc61c25eb98dd7f8e

10 years agoJSDuck-ify /resources/mediawiki.action/*
Timo Tijhof [Sun, 27 Apr 2014 15:27:02 +0000 (17:27 +0200)]
JSDuck-ify /resources/mediawiki.action/*

Change-Id: If7dcd9675b54fceb5b2b10b30cc26844a4907f79

10 years agoMerge "jquery.hidpi: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:27:18 +0000 (13:27 +0000)]
Merge "jquery.hidpi: Add jsduck documentation"

10 years agoMerge "jquery.footHovzer: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:27:16 +0000 (13:27 +0000)]
Merge "jquery.footHovzer: Add jsduck documentation"

10 years agojquery.tabIndex: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 15:23:30 +0000 (17:23 +0200)]
jquery.tabIndex: Add jsduck documentation

Change-Id: I73ec9b6e8a5fcc95ea71dcaa19f9b9aa481fde18

10 years agojquery.hidpi: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:45:22 +0000 (16:45 +0200)]
jquery.hidpi: Add jsduck documentation

Change-Id: Ib33eaa488f967efbf45cee83d903e6279b8b782a

10 years agojquery.footHovzer: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:38:03 +0000 (16:38 +0200)]
jquery.footHovzer: Add jsduck documentation

Change-Id: I554a64951e47b2d8aa0a791619337f4b96e94f48

10 years agoMerge "jquery.checkboxShiftClick: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:10:16 +0000 (13:10 +0000)]
Merge "jquery.checkboxShiftClick: Add jsduck documentation"

10 years agoMerge "jquery.byteLength: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:09:57 +0000 (13:09 +0000)]
Merge "jquery.byteLength: Add jsduck documentation"

10 years agoMerge "jquery.getAttrs: Add jsduck documentation"
jenkins-bot [Tue, 29 Apr 2014 13:08:58 +0000 (13:08 +0000)]
Merge "jquery.getAttrs: Add jsduck documentation"

10 years agoMerge "Consistently use '@deprecated since' in JavaScript code"
jenkins-bot [Tue, 29 Apr 2014 11:30:51 +0000 (11:30 +0000)]
Merge "Consistently use '@deprecated since' in JavaScript code"

10 years agojquery.checkboxShiftClick: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:28:04 +0000 (16:28 +0200)]
jquery.checkboxShiftClick: Add jsduck documentation

Change-Id: Ifb0ad7bface406e6e322186f92083b2b8877a8af

10 years agojquery.byteLength: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:26:54 +0000 (16:26 +0200)]
jquery.byteLength: Add jsduck documentation

Change-Id: Iee8a5c930b6d2dcb0f5a66aca04e9b18c755d787

10 years agojquery.getAttrs: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:25:37 +0000 (16:25 +0200)]
jquery.getAttrs: Add jsduck documentation

Change-Id: Ic7c10bb4fdeb7d76c0b6b09dab6957536601a20a

10 years agoDo not increment the total site edit count on null edits
Aaron Schulz [Tue, 29 Apr 2014 03:46:16 +0000 (20:46 -0700)]
Do not increment the total site edit count on null edits

Change-Id: I0d8d7bcbbd7783cd9845cb5ec2704e854a083e19

10 years agoMerge "API: Warn when unsupported PHP array syntax is used"
jenkins-bot [Tue, 29 Apr 2014 03:30:10 +0000 (03:30 +0000)]
Merge "API: Warn when unsupported PHP array syntax is used"

10 years agoMerge "Do not do backlink purges on null edits"
jenkins-bot [Tue, 29 Apr 2014 00:13:13 +0000 (00:13 +0000)]
Merge "Do not do backlink purges on null edits"

10 years agoDo not do backlink purges on null edits
Aaron Schulz [Tue, 29 Apr 2014 00:02:47 +0000 (17:02 -0700)]
Do not do backlink purges on null edits

Change-Id: Ibcf5ceeea8b82eda188c4d944db6df1c7c9e3e44

10 years agoDisable job throttling for DuplicateJob jobs
Aaron Schulz [Mon, 28 Apr 2014 23:09:35 +0000 (16:09 -0700)]
Disable job throttling for DuplicateJob jobs

Change-Id: I461ea9710660d061ae2da1f99f39247877332ca2

10 years agoMerge "mediawiki.util: Add mw.log.deprecate to #jsMessage"
jenkins-bot [Mon, 28 Apr 2014 22:44:59 +0000 (22:44 +0000)]
Merge "mediawiki.util: Add mw.log.deprecate to #jsMessage"

10 years agoConsistently use '@deprecated since' in JavaScript code
Bartosz Dziewoński [Mon, 28 Apr 2014 22:40:51 +0000 (00:40 +0200)]
Consistently use '@deprecated since' in JavaScript code

JSDuck doesn't actually handle the 'since', but IMO that's a bug in JSDuck.

Change-Id: I9142a3c46ffc2890f5b58133e44caf5873c1229f

10 years agomediawiki.util: Add mw.log.deprecate to #jsMessage
Fomafix [Sat, 26 Apr 2014 13:49:47 +0000 (13:49 +0000)]
mediawiki.util: Add mw.log.deprecate to #jsMessage

Duplicate code to wikibits.js to prevent deprecate message on loading.

Change-Id: Ib41d52456825526c5217743302e80a2de2bbe8d8

10 years agoMerge "jquery.accessKeyLabel: Minor code and documentation clean up"
jenkins-bot [Mon, 28 Apr 2014 21:49:16 +0000 (21:49 +0000)]
Merge "jquery.accessKeyLabel: Minor code and documentation clean up"

10 years agoMerge "Follow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML"
jenkins-bot [Mon, 28 Apr 2014 21:44:05 +0000 (21:44 +0000)]
Merge "Follow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML"

10 years agojquery.makeCollapsible: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:20:58 +0000 (16:20 +0200)]
jquery.makeCollapsible: Add jsduck documentation

Change-Id: I92417b62b11697a0e2ec9b8dcb4950ecedf617ac

10 years agojquery.colorUtil: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 14:10:05 +0000 (16:10 +0200)]
jquery.colorUtil: Add jsduck documentation

Change-Id: Idd91e07d7718b054e5827d0df0fe5302f6a97405

10 years agojquery.client: Add jsduck documentation
Timo Tijhof [Sun, 27 Apr 2014 13:37:28 +0000 (15:37 +0200)]
jquery.client: Add jsduck documentation

Change-Id: Idd78fa72dcff46341cd55ba128ef24107d240c6b

10 years agoMerge "mediawiki.language.init: Clarify documentation"
jenkins-bot [Mon, 28 Apr 2014 20:41:17 +0000 (20:41 +0000)]
Merge "mediawiki.language.init: Clarify documentation"

10 years agoMerge "Title: Add unit test to assert ":A" is a valid title value"
jenkins-bot [Mon, 28 Apr 2014 20:35:20 +0000 (20:35 +0000)]
Merge "Title: Add unit test to assert ":A" is a valid title value"

10 years agoMerge "Finish removing boolean return values from JobQueue code"
jenkins-bot [Mon, 28 Apr 2014 20:27:04 +0000 (20:27 +0000)]
Merge "Finish removing boolean return values from JobQueue code"

10 years agoFinish removing boolean return values from JobQueue code
Thiemo Mättig [Wed, 16 Apr 2014 18:07:26 +0000 (20:07 +0200)]
Finish removing boolean return values from JobQueue code

This is a follow-up for patch
Ia706ac0122a7dd7f418e2dc2d3bd36e9a0252c25.

Change-Id: I19fe58a939706d3f7594d937e0bcad6d97c52a50

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 28 Apr 2014 20:17:41 +0000 (20:17 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agomediawiki.language.init: Clarify documentation
Timo Tijhof [Mon, 28 Apr 2014 20:12:16 +0000 (22:12 +0200)]
mediawiki.language.init: Clarify documentation

Change-Id: If2b96ba2c835c9e6d14adfa84e0bea7981beda0e

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Apr 2014 20:06:42 +0000 (20:06 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I9eb2c1a6a757ccc2f0c3e79c2e038ea94746ad2d

10 years agoUpdate OOjs UI to v0.1.0-pre (b91660e612)
James D. Forrester [Mon, 28 Apr 2014 19:57:53 +0000 (12:57 -0700)]
Update OOjs UI to v0.1.0-pre (b91660e612)

New changes:
db345e1 Add text config option to OO.ui.Element
47e272a Add aggregate method
beaa3be Localisation updates from https://translatewiki.net.
32fef8b Follow-up I0eddaaed91: Fix mistake in class name
62df7aa Followup 32fef8b5ee247: actually fix event aggregation, unbreak toolgroup disabling
e3a09eb Element: Make onDOMEvent fix focusout in addition to focusin
cc33eb6 InputWidget: DOM property is 'readOnly', not 'readonly'
59e9a07 Localisation updates from https://translatewiki.net.
c7109be build: Update jscs config and phase out deprecated jshint config
58c2862 Localisation updates from https://translatewiki.net.

Change-Id: I3f0049f03eb443113246761c81a0175ecfd9a94e

10 years agohttp -> https rewrite: Only replace one http by https
umherirrender [Sat, 26 Apr 2014 20:34:21 +0000 (22:34 +0200)]
http -> https rewrite: Only replace one http by https

This avoids changing from
http://de.wikipedia.org/wiki/Spezial:Weblinksuche/http://wikimedia.org
to
https://de.wikipedia.org/wiki/Spezial:Weblinksuche/https://wikimedia.org
instead of
https://de.wikipedia.org/wiki/Spezial:Weblinksuche/http://wikimedia.org

Bug: 63573
Change-Id: Ife5099c3c5a0e943bb08b81be5d5669d0e02be17

10 years agoFixed call to undefined method in TransactionProfiler
Aaron Schulz [Sat, 26 Apr 2014 23:20:17 +0000 (16:20 -0700)]
Fixed call to undefined method in TransactionProfiler

Change-Id: I855b514f8b63c7e81935b13df4612f09628142b3

10 years agoTitle: Add unit test to assert ":A" is a valid title value
Timo Tijhof [Mon, 28 Apr 2014 17:50:32 +0000 (19:50 +0200)]
Title: Add unit test to assert ":A" is a valid title value

Mostly to catch regressions. While this is an invalid title,
it is valid as syntax when creating a Title *object*, the actual
page title itself does not allow leading colons.

Change-Id: Idbe8a3bfe487926c5fc8bdcfa69a957fc9d0bc49

10 years agoPass user and user_text to Revision constructor
umherirrender [Mon, 28 Apr 2014 17:09:28 +0000 (19:09 +0200)]
Pass user and user_text to Revision constructor

This avoids the use of $wgUser in Revision constructor and makes the
dependency on the global visible.

Change-Id: Ief79c9769d28a1adb16abab8da1ec01984d9ef92

10 years agoAdd $user param to Revision::newNullRevision
umherirrender [Mon, 28 Apr 2014 16:59:20 +0000 (18:59 +0200)]
Add $user param to Revision::newNullRevision

This avoids the use of $wgUser in Revision constructor and makes the
dependency on the global visible.

Change-Id: Ib67bd706a3c4ef081f475406e9aa1094c42222ef

10 years agoMake the link in printfooter explicitly ltr
Amir E. Aharoni [Mon, 28 Apr 2014 11:59:22 +0000 (14:59 +0300)]
Make the link in printfooter explicitly ltr

Without this, in RTL wikis the "http" appears
in the middle of the URL.

To test, set
$wgLanguageCode = "he";
create an article called "ספר", view it in print mode
and note the URL at the bottom.

Change-Id: I1c0194c5cbd186e953eb0fc49184caa66c436ad1

10 years agoMerge "Use strict array_search in DatabasePostgres.php"
jenkins-bot [Sun, 27 Apr 2014 23:45:44 +0000 (23:45 +0000)]
Merge "Use strict array_search in DatabasePostgres.php"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 27 Apr 2014 20:26:23 +0000 (20:26 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I52efb742c5d3fb6004f43930d30318c5d9d033a1

10 years agojquery.accessKeyLabel: Enable for target=mobile
Timo Tijhof [Sun, 27 Apr 2014 18:26:44 +0000 (20:26 +0200)]
jquery.accessKeyLabel: Enable for target=mobile

Follows-up 6a81b0e, which split this module out of mediawiki.util,
but didn't give it the same target. So the mediawiki.util module
was now broken on module due to a dependency on an unknown module
named "jquery.accessKeyLabel".

Bug: 64512
Change-Id: I324501411829a71e30d424a8c5304748575fcba3

10 years agoFollow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML
Timo Tijhof [Sun, 27 Apr 2014 16:02:06 +0000 (18:02 +0200)]
Follow-up Ia0cc9612d: Fix unexpected leading whitespace in Skin HTML

Change-Id: Id78b5728f39a7959ba8ff626a2761c39e6a42782

10 years agoMerge "resourceloader: Optimize module registry sent in the startup module"
jenkins-bot [Sun, 27 Apr 2014 15:45:10 +0000 (15:45 +0000)]
Merge "resourceloader: Optimize module registry sent in the startup module"

10 years agojquery.accessKeyLabel: Minor code and documentation clean up
Timo Tijhof [Sun, 27 Apr 2014 13:28:10 +0000 (15:28 +0200)]
jquery.accessKeyLabel: Minor code and documentation clean up

* getAccessKeyPrefix parameter "ua" is optional, flag it as such.
* clarified information about accessKeyLabel and Firefox 8+.
* Renamed domElement to element. It is already specified as
  HTMLElement, no need to call it "DOM" Element as well.
* Document that it is supported to pass the same element as
  both parameters to updateTooltipOnElement.
* Move "Exposed for testing." comment to where it applies (in the
  publicly exposed copy, not the original private one).

Follows-up I211593629.

Change-Id: I3b73302ad822d7191768dde5806e9ee478327ed2

10 years agoUse strict array_search in DatabasePostgres.php
umherirrender [Sun, 27 Apr 2014 07:24:25 +0000 (09:24 +0200)]
Use strict array_search in DatabasePostgres.php

array_search( 'FOR UPDATE', array( 'OFFSET' => 0 ) ) gives 'OFFSET'
array_search( 'FOR UPDATE', array( 'OFFSET' => 0 ), true ) gives false

This avoids FOR UPDATE on QueryPage query like Special:BrokenRedirect.

Bug: 62104
Change-Id: Iaa6db6b3ce5eaf940e7a8afe459955f19ad0e01f

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 26 Apr 2014 19:28:23 +0000 (19:28 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 26 Apr 2014 19:19:31 +0000 (19:19 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifc04319cc6461cbe88d9a040241d4074999a2cfb

10 years agoMerge "Removed maximumPeriodicTaskSeconds hack; now unused"
jenkins-bot [Sat, 26 Apr 2014 18:06:55 +0000 (18:06 +0000)]
Merge "Removed maximumPeriodicTaskSeconds hack; now unused"

10 years agoCorrect version for deprecated accesskey util functions
Derk-Jan Hartman [Sat, 26 Apr 2014 13:15:01 +0000 (15:15 +0200)]
Correct version for deprecated accesskey util functions

Follow up to: I211593629ca23540dcd5a93b11834155f4f04883
Change-Id: Ib2fe86f950a05be8885cf6da73e1c92a844c0d0c

10 years agoMerge "Add jquery.accessKeyLabel javascript module"
jenkins-bot [Sat, 26 Apr 2014 12:27:18 +0000 (12:27 +0000)]
Merge "Add jquery.accessKeyLabel javascript module"

10 years agoMerge "Add BagOStuff::setMulti for batch insertions"
jenkins-bot [Fri, 25 Apr 2014 22:35:59 +0000 (22:35 +0000)]
Merge "Add BagOStuff::setMulti for batch insertions"

10 years agoAdd BagOStuff::setMulti for batch insertions
Kunal Mehta [Sun, 15 Dec 2013 07:08:29 +0000 (23:08 -0800)]
Add BagOStuff::setMulti for batch insertions

Includes implementions for Redis, Sql and MemcachedPecl,
other types will fallback to using $this->set repeatedly.

Change-Id: I0924a197b28ee69e883128ccd672343e5c041929

10 years agoRemoved maximumPeriodicTaskSeconds hack; now unused
Aaron Schulz [Fri, 25 Apr 2014 21:58:45 +0000 (14:58 -0700)]
Removed maximumPeriodicTaskSeconds hack; now unused

Change-Id: Ib4308990c21b0118f00fde72412868993c5ce056

10 years agoMerge "FormatJson: Remove speculative comment"
jenkins-bot [Fri, 25 Apr 2014 20:31:06 +0000 (20:31 +0000)]
Merge "FormatJson: Remove speculative comment"

10 years agoMerge "Fix RevDel_RevisionItem::getAuthorNameField to work for ips"
jenkins-bot [Fri, 25 Apr 2014 20:04:35 +0000 (20:04 +0000)]
Merge "Fix RevDel_RevisionItem::getAuthorNameField to work for ips"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 Apr 2014 19:35:24 +0000 (19:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic989131311616d03b639641ae9915f10fb8711bb

10 years agoFormatJson: Remove speculative comment
Kevin Israel [Fri, 25 Apr 2014 19:00:40 +0000 (15:00 -0400)]
FormatJson: Remove speculative comment

Follows-up bec7e8287c69. The comment "Can be removed once we require
PHP >= 5.4.28, 5.5.12, 5.6.0" relies on some assumptions that might
later prove to be incorrect:

* That the fix won't be reverted from any of those PHP versions
  (e.g. if deemed to break BC)

* That the bug will be fixed in PECL jsonc and jsond, as well as in
  HHVM

* That we don't need to support older versions of those once we
  require one of the mentioned PHP versions

Change-Id: I67034c561d54d37dee961ada8c9cf5ccfd113da1

10 years agoMerge "jquery.textSelection: Don't throw errors on empty collections"
Mwalker [Fri, 25 Apr 2014 18:46:41 +0000 (18:46 +0000)]
Merge "jquery.textSelection: Don't throw errors on empty collections"

10 years agoRandomize thumbnail failure key TTL a bit to avoid stampedes
Aaron Schulz [Fri, 25 Apr 2014 18:25:51 +0000 (11:25 -0700)]
Randomize thumbnail failure key TTL a bit to avoid stampedes

Change-Id: Ibf268b646a9eb2acfaa649d634c5278133091158

10 years agoAdd jquery.accessKeyLabel javascript module
umherirrender [Tue, 22 Apr 2014 12:16:45 +0000 (14:16 +0200)]
Add jquery.accessKeyLabel javascript module

Extracted the accessKey logic from mediawiki.util and moved it to it's
own module. mediawiki.util now depends on the new module,
moved the jquery.client dependency from mediawiki.util to the new
module.

Now the accesskey is also set, when no placeholder like '[x]' is set on
the title (bug 48505).
Also the label for a input or textarea (and some other elements) gets
updated (bug 63849).

Also implements support for the browsers accessKeyLabel function (bug
37239), which will give a localised accessKey string, if supported (at
the moment FireFox 8+ only)

Bug: 37239
Bug: 48505
Bug: 63849
Change-Id: I211593629ca23540dcd5a93b11834155f4f04883

10 years agoresourceloader: Optimize module registry sent in the startup module
Marius Hoch [Sun, 7 Jul 2013 22:51:15 +0000 (00:51 +0200)]
resourceloader: Optimize module registry sent in the startup module

The optimization basically works like this:

* Given module A with the dependencies B and C and module B with the
  dependency C.
* Don't tell the client that A depends on C, as that's already included
  in module B.

This way we can reduce the amount of data for module registration sent
to the client.

The code here isn't polished yet, but it works and should be good enough
to demonstrate my idea and implementation.

Change-Id: I7732a3b1d879c5eef059e136a5241d6d48046872

10 years agojquery.textSelection: Don't throw errors on empty collections
Bartosz Dziewoński [Fri, 25 Apr 2014 13:13:56 +0000 (15:13 +0200)]
jquery.textSelection: Don't throw errors on empty collections

All jQuery functions just do nothing or return "empty" values when
called on an empty collection (e.g. `$()`), the ones defined in this
module should behave in the same way.

This came to light when a change in WikiEditor combined with lousy
coding caused this code path to be called, breaking various gadgets
and extensions like SemanticForms.

Bug: 64289
Change-Id: Ib97f47ef1d66420682bd429c9c12e66c3392e77d

10 years agoMerge "FormatJson: Skip whitespace cleanup when unnecessary"
jenkins-bot [Fri, 25 Apr 2014 07:17:27 +0000 (07:17 +0000)]
Merge "FormatJson: Skip whitespace cleanup when unnecessary"

10 years agoMerge "Fix Language::parseFormattedNumber for lzh and zh-classical"
jenkins-bot [Fri, 25 Apr 2014 07:13:29 +0000 (07:13 +0000)]
Merge "Fix Language::parseFormattedNumber for lzh and zh-classical"

10 years agoFix Language::parseFormattedNumber for lzh and zh-classical
aude [Thu, 24 Apr 2014 02:33:58 +0000 (04:33 +0200)]
Fix Language::parseFormattedNumber for lzh and zh-classical

When parsing, filter any array values that are empty string
before using strtr php function so that strtr can handle
the array.

Bug: 64347
Change-Id: I94761caa70d44febfa0999c91048a01044fc1fbe

10 years agoFormatJson: Skip whitespace cleanup when unnecessary
Kevin Israel [Mon, 14 Apr 2014 07:14:33 +0000 (03:14 -0400)]
FormatJson: Skip whitespace cleanup when unnecessary

The patch[1] for PHP bug 66021[2], which removes the same undesirable
whitespace that WS_CLEANUP_REGEX does, has been merged into php-src.
Subsequent PHP versions having the patch shouldn't have to take the
10-20% performance hit from that workaround.

[1]: https://github.com/php/php-src/commit/82a4f1a1a287
[2]: https://bugs.php.net/bug.php?id=66021

Change-Id: I717a0e164952cc6ace104f13f6236e86c4ab8b58

10 years agoMerge "Simplify LocalFile::isVolatile"
jenkins-bot [Thu, 24 Apr 2014 23:09:03 +0000 (23:09 +0000)]
Merge "Simplify LocalFile::isVolatile"

10 years agoSimplify LocalFile::isVolatile
Ori Livneh [Thu, 24 Apr 2014 22:57:09 +0000 (15:57 -0700)]
Simplify LocalFile::isVolatile

Make the logic a bit easier to follow. Follow-up to I99a39c3d2.

Change-Id: I9b815d7f0d229ef25db5b7f48f6e49ca4dac046e

10 years agoAvoid query error with odd parameter combination
Aaron Schulz [Thu, 24 Apr 2014 22:46:08 +0000 (15:46 -0700)]
Avoid query error with odd parameter combination

Change-Id: I1fc4495d665ff2c1e0cbf274ee2081a06c4e603b

10 years agoMerge "Made LocalFile::loadExtraFromDB() handle re-upload race conditions"
jenkins-bot [Thu, 24 Apr 2014 22:17:51 +0000 (22:17 +0000)]
Merge "Made LocalFile::loadExtraFromDB() handle re-upload race conditions"

10 years agoMerge "HtmlFormatter::filterContent() should always return an array"
jenkins-bot [Thu, 24 Apr 2014 22:14:48 +0000 (22:14 +0000)]
Merge "HtmlFormatter::filterContent() should always return an array"

10 years agoHtmlFormatter::filterContent() should always return an array
Max Semenik [Thu, 24 Apr 2014 22:09:34 +0000 (15:09 -0700)]
HtmlFormatter::filterContent() should always return an array

Follow-up to 6289f3c48ca8dde511d227411e16b731d3c05328

Change-Id: Iac9c1440ac19590f778fc50c75b73da04a190f59

10 years agoMade LocalFile::loadExtraFromDB() handle re-upload race conditions
Aaron Schulz [Tue, 22 Apr 2014 16:38:51 +0000 (09:38 -0700)]
Made LocalFile::loadExtraFromDB() handle re-upload race conditions

Change-Id: I99a39c3d2b5d7a227be9b11a2f23c534ea4739d9

10 years agoMerge "Pass phpcs-strict on various files in includes/"
jenkins-bot [Thu, 24 Apr 2014 21:43:28 +0000 (21:43 +0000)]
Merge "Pass phpcs-strict on various files in includes/"

10 years agoMerge "Introducing pp_sortkey."
jenkins-bot [Thu, 24 Apr 2014 21:42:07 +0000 (21:42 +0000)]
Merge "Introducing pp_sortkey."

10 years agoMerge "Pass phpcs-strict on some test files (11/11)"
jenkins-bot [Thu, 24 Apr 2014 21:14:01 +0000 (21:14 +0000)]
Merge "Pass phpcs-strict on some test files (11/11)"

10 years agoMerge "Pass phpcs-strict on some test files (10/11)"
jenkins-bot [Thu, 24 Apr 2014 21:14:00 +0000 (21:14 +0000)]
Merge "Pass phpcs-strict on some test files (10/11)"

10 years agoMerge "Pass phpcs-strict on some test files (9/11)"
jenkins-bot [Thu, 24 Apr 2014 21:13:58 +0000 (21:13 +0000)]
Merge "Pass phpcs-strict on some test files (9/11)"

10 years agoFix RevDel_RevisionItem::getAuthorNameField to work for ips
umherirrender [Sat, 12 Apr 2014 20:40:52 +0000 (22:40 +0200)]
Fix RevDel_RevisionItem::getAuthorNameField to work for ips

The user_name column in the database result is null for anon users,
that will always return null when calling getAuthorName.

The function getAuthorName is used when the log_search table is filled
for revision deletion. After this fix the value for 'target_author_ip'
will be there which allows searching for logs where edits of the ip was
suppressed (because the search field 'offender' only works for oversighter)

Change-Id: I611bc56eefac594a28ad4808fe7d9ba48c872922

10 years agoMerge "Pass phpcs-strict on some test files (8/11)"
jenkins-bot [Thu, 24 Apr 2014 21:10:49 +0000 (21:10 +0000)]
Merge "Pass phpcs-strict on some test files (8/11)"

10 years agoMerge "Pass phpcs-strict on includes/libs/"
jenkins-bot [Thu, 24 Apr 2014 20:51:09 +0000 (20:51 +0000)]
Merge "Pass phpcs-strict on includes/libs/"

10 years agoMerge "Pass phpcs-strict on includes/libs/CSSJanus.php"
jenkins-bot [Thu, 24 Apr 2014 20:51:08 +0000 (20:51 +0000)]
Merge "Pass phpcs-strict on includes/libs/CSSJanus.php"

10 years agoMerge "Pass phpcs-strict on includes/normal/"
jenkins-bot [Thu, 24 Apr 2014 20:51:06 +0000 (20:51 +0000)]
Merge "Pass phpcs-strict on includes/normal/"

10 years agoPass phpcs-strict on some test files (11/11)
Siebrand Mazeland [Thu, 24 Apr 2014 17:52:51 +0000 (19:52 +0200)]
Pass phpcs-strict on some test files (11/11)

Woo!

Change-Id: I9fc116dfdf18c2772d047adb5bb14535d0bd39ed

10 years agoPass phpcs-strict on some test files (10/11)
Siebrand Mazeland [Thu, 24 Apr 2014 17:52:34 +0000 (19:52 +0200)]
Pass phpcs-strict on some test files (10/11)

Change-Id: I5624292143fcabe890779f5095eae735d7afb176

10 years agoPass phpcs-strict on some test files (9/11)
Siebrand Mazeland [Thu, 24 Apr 2014 17:52:09 +0000 (19:52 +0200)]
Pass phpcs-strict on some test files (9/11)

Change-Id: I69f17bf2af45f03274fdb38853184880e46c3514

10 years agoPass phpcs-strict on some test files (8/11)
Siebrand Mazeland [Thu, 24 Apr 2014 17:51:33 +0000 (19:51 +0200)]
Pass phpcs-strict on some test files (8/11)

Change-Id: I138c1f9bf2c3c7e9218d5fa29365e78b309fb459

10 years agoMerge "Update formatting of includes/normal/"
jenkins-bot [Thu, 24 Apr 2014 20:43:08 +0000 (20:43 +0000)]
Merge "Update formatting of includes/normal/"

10 years agoMerge "Pass phpcs-strict on some test files (7/11)"
jenkins-bot [Thu, 24 Apr 2014 20:40:57 +0000 (20:40 +0000)]
Merge "Pass phpcs-strict on some test files (7/11)"

10 years agoMerge "SECURITY: escape sortKey in pageInfo"
Mglaser [Thu, 24 Apr 2014 20:19:10 +0000 (20:19 +0000)]
Merge "SECURITY: escape sortKey in pageInfo"