lhc/web/wiklou.git
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 agoMade DB errors go to the exception log again
Aaron Schulz [Mon, 28 Apr 2014 17:53:16 +0000 (10:53 -0700)]
Made DB errors go to the exception log again

* Some DB errors are caught while others bubble up to users.
  It is useful to log the latter separately and it also provides
  more context. The exception logs have a backtrace where as the
  regular DB logs do not.

Change-Id: I7ef7693d96e0258119f714e678099e4813ca0c94

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 agoDrop vendor prefixes for border-radius
Timo Tijhof [Mon, 28 Apr 2014 15:46:55 +0000 (17:46 +0200)]
Drop vendor prefixes for border-radius

http://caniuse.com/border-radius
* -moz is for Firefox 3.6
* -webkit is for Chrome 4, Safari 4, and iOS 3

Also:
* Vendor prefixes should go before the standardised one.
  http://css-tricks.com/ordering-css3-properties/
* jquery-ui vector theme was missing standardised properties
  in some cases. Added those.

Follows-up c6b0205

Change-Id: I150626e5fba3d65128c14e0945b83ac65efd3078

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 agoUpdate default contents of interwiki table
This, that and the other [Fri, 25 Apr 2014 02:05:43 +0000 (12:05 +1000)]
Update default contents of interwiki table

This list has obviously not been properly updated for many years. There
are many long-dead sites that are removed in this patch.

Removals will not affect existing wikis, only new wikis.

Also removing local designation for WMF wikis since this list is
intended for 3rd party users (WMF wikis have their own interwiki list).

Notes in square brackets should be checked again in the future.

acronym: update URL
annnotationwiki: remove, seedwiki has closed down
corpknowpedia: remove, spammy parked domain
disinfopedia: now called sourcewatch
docbook: update URL
drumcorpswiki: update URL
gej: update URL
gentoowiki: remove, site gone
hewikisource: remove, redundant to wikisource:he:$1
hrwiki: update URL
imdb: update URL
  [jargonfile: the given URL here is broken, but the site still exists: unsure how to proceed with this one]
jspwiki: remove, not useful as an interwiki (NB: now at jspwiki.apache.org)
keiki: remove, site gone
lugkr: update URL
mathsongswiki: remove, seedwiki has closed down
memoryalpha: update URL
moinmoin: remove, not useful as an interwiki (NB: now seemingly at moinmo.in)
mozillawiki: update URL
oeis: update URL
openfacts: remove, site gone
openwiki: update URL
patwiki: remove, wiki seems to have disappeared
pmeg: remove, site has been re-structured so it is now not conducive to interwiki linking (i.e. you may as well just use external links)
s23wiki: update URL
seattlewiki: remove, (now) redundant to wikia:seattle:$1
seattlewireless: update URL
susning: remove, site no longer contains a wiki
svgwiki: remove, seems to have disappeared
tavi: remove, broken site
tmwiki: remove, "This site has been overrun by spam" as of March 2006 (NB: now at www.easytopicmaps.com/wiki)
uea: update URL
unreal: update URL
vinismo: remove, broken site
why: remove, parked domain
wikicities: remove, legacy name for Wikia
wikinfo: update URL
wlug: remove, not useful as an interwiki (just a Linux user group from New Zealand!)
zwiki: remove, not useful as an interwiki
zzz wiki: remove, site overrun by spambots

Change-Id: I6c1eb3aba6cc55d1313f6d249510a03e4b8e6f13

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"

10 years agoSECURITY: escape sortKey in pageInfo
csteipp [Sat, 29 Mar 2014 05:39:57 +0000 (22:39 -0700)]
SECURITY: escape sortKey in pageInfo

DEFAULTSORT isn't escaped before being added to the action=info table.

Bug: 63251
Change-Id: I087bfde8cbc69c3507f68ee3cb6e22aba0ffa7db

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

Change-Id: I3840260a569a156d6600f0be6d6f5910412c5052

10 years agoPass phpcs-strict on various files in includes/
Siebrand Mazeland [Thu, 24 Apr 2014 19:50:01 +0000 (21:50 +0200)]
Pass phpcs-strict on various files in includes/

These files have all had treatment before, and these occurrences have either
been missed or have been introduced after.

Change-Id: I06cdab4616b5bff47c85152df28f18c861730a23

10 years agoPass phpcs-strict on includes/libs/
Siebrand Mazeland [Thu, 24 Apr 2014 19:48:10 +0000 (21:48 +0200)]
Pass phpcs-strict on includes/libs/

No changes to "real" libs. They are excluded from CodeSniffer tests.

Change-Id: Ifd14c0be24014fd9629a31e9bd155b27e2c0e93d

10 years agoPass phpcs-strict on includes/libs/CSSJanus.php
Siebrand Mazeland [Thu, 24 Apr 2014 19:46:54 +0000 (21:46 +0200)]
Pass phpcs-strict on includes/libs/CSSJanus.php

Change-Id: I184a419a225d5503c5b72909bd69624eba690b0e

10 years agoPass phpcs-strict on includes/normal/
Siebrand Mazeland [Thu, 24 Apr 2014 19:44:48 +0000 (21:44 +0200)]
Pass phpcs-strict on includes/normal/

Change-Id: I71d802f264115881198832a280982c6822f3fd41

10 years agoUpdate formatting of includes/normal/
Siebrand Mazeland [Thu, 24 Apr 2014 19:33:40 +0000 (21:33 +0200)]
Update formatting of includes/normal/

Change-Id: I3b6f34c62db8dea3f5bce50a15105c8c1a769903

10 years agoMerge "Remove unneeded rc_cur_time key from RCCacheEntryFactoryTest"
jenkins-bot [Thu, 24 Apr 2014 19:30:06 +0000 (19:30 +0000)]
Merge "Remove unneeded rc_cur_time key from RCCacheEntryFactoryTest"

10 years agoRemove unneeded rc_cur_time key from RCCacheEntryFactoryTest
umherirrender [Mon, 14 Apr 2014 18:50:30 +0000 (20:50 +0200)]
Remove unneeded rc_cur_time key from RCCacheEntryFactoryTest

Was added with I873f6b86007000a94337f0c963df4bf8fec5b715,
but patch set was older than the remove from sql
in I4a9c2fa813d1f25dfb755e564f7677a212934d7b.

Change-Id: I6e938c3d0b67470225f53cc5229f7669a7cd8f0b

10 years agoPass phpcs-strict on some test files (7/11)
Siebrand Mazeland [Thu, 24 Apr 2014 16:06:46 +0000 (18:06 +0200)]
Pass phpcs-strict on some test files (7/11)

Change-Id: Ia0ceea60e7ef43959f868378f3fcd463a3adf782

10 years agoPass phpcs-strict on some test files (6/11)
Siebrand Mazeland [Thu, 24 Apr 2014 16:06:21 +0000 (18:06 +0200)]
Pass phpcs-strict on some test files (6/11)

Change-Id: I5f4bc0df8183cf338ff45cacfc7279c2cd38ee04

10 years agoDocument that IContextSource::getTitle can return null
Marius Hoch [Thu, 24 Apr 2014 17:53:20 +0000 (19:53 +0200)]
Document that IContextSource::getTitle can return null

That can happen if wgTitle is null.

Change-Id: I3d8aab232d408e75afb8be82ca714bf5c4fe2427

10 years agoPass phpcs-strict on some test files (5/x)
Siebrand Mazeland [Thu, 24 Apr 2014 15:05:10 +0000 (17:05 +0200)]
Pass phpcs-strict on some test files (5/x)

Change-Id: I690645cd8a9b1165dcc8271b201c695ea9391226

10 years agoPass phpcs-strict on some test files (4/x)
Siebrand Mazeland [Thu, 24 Apr 2014 12:50:36 +0000 (14:50 +0200)]
Pass phpcs-strict on some test files (4/x)

Change-Id: Ifdbb431a6018c514b15ae71cc0c21b653a5e466d

10 years agoPass phpcs-strict on some test files (3/x)
Siebrand Mazeland [Thu, 24 Apr 2014 12:35:05 +0000 (14:35 +0200)]
Pass phpcs-strict on some test files (3/x)

Change-Id: I44172b512cd9b6c43806dad697e449bf06897305

10 years agoMerge "Pass phpcs-strict on some test files (2/x)"
jenkins-bot [Thu, 24 Apr 2014 16:18:48 +0000 (16:18 +0000)]
Merge "Pass phpcs-strict on some test files (2/x)"

10 years agoMerge "Pass phpcs-strict on some test files (1/x)"
jenkins-bot [Thu, 24 Apr 2014 16:18:47 +0000 (16:18 +0000)]
Merge "Pass phpcs-strict on some test files (1/x)"

10 years agoMerge "Pass phpcs-strict on tests/phpunit/GlobalFunctions/"
jenkins-bot [Thu, 24 Apr 2014 16:17:42 +0000 (16:17 +0000)]
Merge "Pass phpcs-strict on tests/phpunit/GlobalFunctions/"

10 years agoPass phpcs-strict on some test files (2/x)
Siebrand Mazeland [Thu, 24 Apr 2014 10:05:52 +0000 (12:05 +0200)]
Pass phpcs-strict on some test files (2/x)

Change-Id: Ia39fd107a554206927652b6e168faa0da501b362

10 years agoPass phpcs-strict on some test files (1/x)
Siebrand Mazeland [Thu, 24 Apr 2014 09:57:41 +0000 (11:57 +0200)]
Pass phpcs-strict on some test files (1/x)

Change-Id: I7f8dee09ac734cbc369441431841f2d4aa5d7f51

10 years agoInstaller: Fix botched spaces-to-tabs conversion in en.json
Kevin Israel [Thu, 24 Apr 2014 14:50:56 +0000 (10:50 -0400)]
Installer: Fix botched spaces-to-tabs conversion in en.json

Follows-up d33c865ef377, in which two groups of four spaces were missed.

Change-Id: I8896cc575650400765753298d00ffe464c4a9d2d

10 years agoMerge "Pass phpcs-strict on tests/parser/"
jenkins-bot [Thu, 24 Apr 2014 12:07:37 +0000 (12:07 +0000)]
Merge "Pass phpcs-strict on tests/parser/"

10 years agoUpdate message "config-extension-link"
Siebrand Mazeland [Thu, 24 Apr 2014 11:35:02 +0000 (13:35 +0200)]
Update message "config-extension-link"

The extension matric is no longer maintained.

Also change spaces to tabs.

Bug: 64355
Change-Id: Iae6f308a6405c52e82a9cff880602e7be0af21b6

10 years agoPass phpcs-strict on tests/phpunit/GlobalFunctions/
Siebrand Mazeland [Thu, 24 Apr 2014 09:47:06 +0000 (11:47 +0200)]
Pass phpcs-strict on tests/phpunit/GlobalFunctions/

Change-Id: I2acc99ac96d8c738668fae2ecc9a0cee1b695f00

10 years agoPass phpcs-strict on tests/parser/
Siebrand Mazeland [Thu, 24 Apr 2014 09:15:42 +0000 (11:15 +0200)]
Pass phpcs-strict on tests/parser/

Change-Id: I8d9780e75c9310d625a0968f85638d69acfa6a64

10 years ago$maxTimeAllowed still used by tests, causing HHVM to fail
Chad Horohoe [Wed, 23 Apr 2014 21:13:44 +0000 (14:13 -0700)]
$maxTimeAllowed still used by tests, causing HHVM to fail

Change-Id: Ib1e3bc564ae1524070cf392da6cb22ac368cfe11

10 years agoMerge "New 'newimagestext' message on [[Special:NewFiles]]"
jenkins-bot [Thu, 24 Apr 2014 08:30:22 +0000 (08:30 +0000)]
Merge "New 'newimagestext' message on [[Special:NewFiles]]"

10 years agoUse slave DB connections for LocalFile cache misses
Aaron Schulz [Wed, 23 Apr 2014 00:04:10 +0000 (17:04 -0700)]
Use slave DB connections for LocalFile cache misses

* Previously LocalFile cache misses would hit the master DB
  (even for shared repos like Commons).
* Since lock() is always called before file changes, this has
  been modified to call a new markVolatile() method to track
  changing (or recently changed) files in memcached. On cache
  miss this tracking is used to decide whether to use the
  slave or the master DB.

Change-Id: I942f5e28dd9e0953b6382cc2247ca480494d5718

10 years agoIntroducing pp_sortkey.
daniel [Mon, 31 Mar 2014 11:00:28 +0000 (13:00 +0200)]
Introducing pp_sortkey.

This adds the pp_sortkey column to the page_props table.

pp_sortkeys allows for top-k queries for pages, e.g.
the 100 pages with the most language links, etc. It is also
possible to query for exact values.

For now, pp_sortkey will contain pp_value's numeric value if
the value was set to a float, int or boolean.

Associated tasks:
* create a maintenance script for populating pp_sortkey. Tricky,
because when reading from the database, all values are strings.
* create an API module for querying pages by property value.

bug: 58032
Change-Id: I217c42656fb877ff35a36eb446a22bdaf119faac

10 years agoUpdate OOjs UI to v0.1.0-pre (0a7180f468)
James D. Forrester [Thu, 24 Apr 2014 01:05:35 +0000 (18:05 -0700)]
Update OOjs UI to v0.1.0-pre (0a7180f468)

New changes:
0a7180f Scope frame CSS to not affect child frames

Change-Id: I7d8f6d102acd6877ede862876fc2f0632a6e02b2