lhc/web/wiklou.git
9 years agoFirst version of Page Language selector
Kunal Grover [Sun, 25 May 2014 14:38:50 +0000 (20:08 +0530)]
First version of Page Language selector

Special page PageLanguage to set the page language of a page.
To enable the feature, set $wgPageLanguageUseDB to true
and assign the 'pagelang' user right to a user group.

Bug: 35489
Change-Id: I0f82b146fbe948f917c1c5d29f7469644d797e80

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 27 Jun 2014 20:31:32 +0000 (20:31 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Use separate PoolCounter config for expensive thumbnails"
jenkins-bot [Fri, 27 Jun 2014 20:10:56 +0000 (20:10 +0000)]
Merge "Use separate PoolCounter config for expensive thumbnails"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 27 Jun 2014 20:09:02 +0000 (20:09 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib16f36dc258233455cea345f579a98055529c078

9 years agoStandardize version comment in OracleUpdater.php
umherirrender [Tue, 24 Jun 2014 17:56:16 +0000 (19:56 +0200)]
Standardize version comment in OracleUpdater.php

All updaters have a space between // and version number, do this also
for oracle updater

Change-Id: I0f44bd5d1ab5e131cca3cd7ebfaaf1fe91e4d9d8

9 years agoDo not mention deprecated User::isValidEmailAddr() in hooks.txt
umherirrender [Fri, 27 Jun 2014 14:50:27 +0000 (16:50 +0200)]
Do not mention deprecated User::isValidEmailAddr() in hooks.txt

Replaced by Sanitizer::validateEmail()

Change-Id: I7b4ef438dd31a2dbc641bb06bea8e256e0f5dd1f

9 years agoUse separate PoolCounter config for expensive thumbnails
Gergő Tisza [Fri, 27 Jun 2014 19:39:47 +0000 (19:39 +0000)]
Use separate PoolCounter config for expensive thumbnails

Depends on Ic62984e0f4a761642b2bdd1bfa362301ed94c284
and If40e223c328ddd15310d13f2a49000bf6e08200e

Bug: 65691
Change-Id: Ic737673b5a31974d866b9bf5afa4b4036baa03bb

9 years agoMerge "Added some sanity warnings to TransactionProfiler"
jenkins-bot [Fri, 27 Jun 2014 18:47:59 +0000 (18:47 +0000)]
Merge "Added some sanity warnings to TransactionProfiler"

9 years agoMerge "objectcache: Actually unserialize integers as integers in RedisBagOStuff"
jenkins-bot [Fri, 27 Jun 2014 18:47:27 +0000 (18:47 +0000)]
Merge "objectcache: Actually unserialize integers as integers in RedisBagOStuff"

9 years agoMerge "Reset RequestContext between tests"
jenkins-bot [Fri, 27 Jun 2014 18:46:21 +0000 (18:46 +0000)]
Merge "Reset RequestContext between tests"

9 years agoAdded some sanity warnings to TransactionProfiler
Aaron Schulz [Wed, 25 Jun 2014 19:34:28 +0000 (12:34 -0700)]
Added some sanity warnings to TransactionProfiler

* The use of $id should avoid any nesting, unless something is broken

Change-Id: I01941a186d1e74ddd6c4610b0eb9e15f54e28347

9 years agoMerge "Add some casts for sanity before BagOStuff::add() calls"
jenkins-bot [Fri, 27 Jun 2014 18:34:09 +0000 (18:34 +0000)]
Merge "Add some casts for sanity before BagOStuff::add() calls"

9 years agoReset RequestContext between tests
Max Semenik [Fri, 27 Jun 2014 17:59:47 +0000 (10:59 -0700)]
Reset RequestContext between tests

Its state can change when people do something with objects it returns or
when they alter globals like $wgRequest. By resetting this singleton, we
ensure that no such change will propagate outside of a test.

Change-Id: I7e8598716d810a09c17f80a05deecab617b62346

9 years agoMerge "Port preferences test from /qa repo"
jenkins-bot [Fri, 27 Jun 2014 15:33:49 +0000 (15:33 +0000)]
Merge "Port preferences test from /qa repo"

9 years agoPort preferences test from /qa repo
Cmcmahon [Thu, 26 Jun 2014 17:57:10 +0000 (10:57 -0700)]
Port preferences test from /qa repo

Add tests for preferences, make  core tests language-independent.
Change-Id: I1ba4e2c53a9e1bdb7b832efec4c2c8f6f64d2b86

9 years agoMerge "Remove ApiBase::createContext() (deprecated since 1.19)"
jenkins-bot [Fri, 27 Jun 2014 14:16:50 +0000 (14:16 +0000)]
Merge "Remove ApiBase::createContext() (deprecated since 1.19)"

9 years agoMerge "Add parser test for "extra interlanguage links"."
jenkins-bot [Fri, 27 Jun 2014 14:04:26 +0000 (14:04 +0000)]
Merge "Add parser test for "extra interlanguage links"."

9 years agoMerge "Update OOjs to v1.0.10"
jenkins-bot [Fri, 27 Jun 2014 01:35:43 +0000 (01:35 +0000)]
Merge "Update OOjs to v1.0.10"

9 years agoMerge "Make SpecialPreferencesTest::testBug41337 non-risky"
jenkins-bot [Fri, 27 Jun 2014 00:57:48 +0000 (00:57 +0000)]
Merge "Make SpecialPreferencesTest::testBug41337 non-risky"

9 years agoMake SpecialPreferencesTest::testBug41337 non-risky
Ori Livneh [Fri, 27 Jun 2014 00:39:55 +0000 (17:39 -0700)]
Make SpecialPreferencesTest::testBug41337 non-risky

PHPUnit treats tests that make no assertions as "risky" because they make it
difficult to distinguish successful test runs from programmer error. To make
SpecialPreferencesTest::testBug41337 non-risky, assert that the execute method
returns null.

Change-Id: I4c199d2b81037e6ca2b2862418c4f8a8352c777e

9 years agoUpdate OOjs to v1.0.10
James D. Forrester [Thu, 26 Jun 2014 23:55:15 +0000 (16:55 -0700)]
Update OOjs to v1.0.10

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.0.10/History.md

Change-Id: Ib154a0c9cfc7c8b428671c9d77892361ea8d7e1b

9 years agoUpdate OOjs UI to v0.1.0-pre (b9d403a678)
James D. Forrester [Thu, 26 Jun 2014 23:46:04 +0000 (16:46 -0700)]
Update OOjs UI to v0.1.0-pre (b9d403a678)

New changes:
a725505 Work around element sizing bug in Chrome
d7930fb build: Implement source maps for js build target
75ed129 build: Use isoUtcDateTime instead of yyyy-mm-dd in banner
b9d403a Make ConfirmDialog interpret clicking X as 'cancel', not as 'OK'

Change-Id: I7d4ba9521935412b780cb19897990801ed51f654

9 years agoAdd some casts for sanity before BagOStuff::add() calls
Aaron Schulz [Thu, 26 Jun 2014 23:25:31 +0000 (16:25 -0700)]
Add some casts for sanity before BagOStuff::add() calls

Change-Id: I6ecb609c88e4fc1ef614e94c551199bd610ca360

9 years agoobjectcache: Actually unserialize integers as integers in RedisBagOStuff
Timo Tijhof [Thu, 26 Jun 2014 23:03:22 +0000 (01:03 +0200)]
objectcache: Actually unserialize integers as integers in RedisBagOStuff

Before:
> SET   (stored)    GET
>  5     5          (string) "5"
>  '5'   5          (string) "5"
>  'x'   s:1:"x";   (string) "x"

After:
> SET   (stored)    GET
>  5     5          (int) 5
>  '5'   s:1:"5";   (string) "5"
>  'x'   s:1:"x";   (string) "x"

Follows-up 2ceda41c5783ddc3cfb.

Bug: 60563
Change-Id: I2bb09381b2bb733ac5a89175e053cb10eca68b08

9 years agoShow block notice on contribs for range-blocked IP
PiRSquared17 [Sat, 7 Jun 2014 22:43:15 +0000 (22:43 +0000)]
Show block notice on contribs for range-blocked IP

Also on deleted contribs, user, user talk pages.

Bug: 20790
Change-Id: I3ed9cb56f91b52fdb0ba452422f9d0723e9abe41

9 years agoAdd parser test for "extra interlanguage links".
C. Scott Ananian [Thu, 26 Jun 2014 21:50:46 +0000 (17:50 -0400)]
Add parser test for "extra interlanguage links".

This support was added in https://gerrit.wikimedia.org/r/111390
but no parser tests were added at that time.

Bug: 32189
Change-Id: I299ce844919b3f20b3ce116adf64b37dd95325d0

9 years agoSupport {{!}} as a magic word
Jackmcbarn [Thu, 29 May 2014 21:08:13 +0000 (17:08 -0400)]
Support {{!}} as a magic word

Add {{!}} as a magic word that expands to a pipe. Parsoid already does
this, so we know it isn't going to cause major breakage.

Change-Id: I1f857417d224d6443504074a5add852df3975b89

9 years agoMerge "Remove text shadow from default mediawiki.ui buttons"
jenkins-bot [Thu, 26 Jun 2014 21:37:25 +0000 (21:37 +0000)]
Merge "Remove text shadow from default mediawiki.ui buttons"

9 years agoRemove text shadow from default mediawiki.ui buttons
Rob Moen [Thu, 26 Jun 2014 21:24:44 +0000 (14:24 -0700)]
Remove text shadow from default mediawiki.ui buttons

Place text-shadow on buttons with dark backgrounds

Bug: 61940
Change-Id: Ic497807555dd118b86e868933559d7b47cfdf3a2

9 years agoMerge "Upgrade jStorage to v0.4.10 to fix a bug with the TTL"
jenkins-bot [Thu, 26 Jun 2014 21:15:40 +0000 (21:15 +0000)]
Merge "Upgrade jStorage to v0.4.10 to fix a bug with the TTL"

9 years agoUpgrade jStorage to v0.4.10 to fix a bug with the TTL
Matthew Flaschen [Thu, 26 Jun 2014 19:35:48 +0000 (15:35 -0400)]
Upgrade jStorage to v0.4.10 to fix a bug with the TTL

Upstream also changed some styling and formatting (e.g. single
quotes, spacing), and enabled strict mode.

Upstream: https://github.com/andris9/jStorage

Source file: https://github.com/andris9/jStorage/blob/v0.4.10/jstorage.js

Follows-up fd2909398eb5820365427c714d9b1922d7ec97f6

Change-Id: Ib7bd1d52ef97148f67a8f899f57ec5390cc11de3

9 years agoMerge "SpecialVersion: Grammar fixes in comments"
jenkins-bot [Thu, 26 Jun 2014 20:58:59 +0000 (20:58 +0000)]
Merge "SpecialVersion: Grammar fixes in comments"

9 years agoSpecialVersion: Grammar fixes in comments
Bartosz Dziewoński [Thu, 26 Jun 2014 20:44:52 +0000 (22:44 +0200)]
SpecialVersion: Grammar fixes in comments

Change-Id: I318a34edcb14d57b77353f3112d82e2e3c97fd7f

9 years agoMerge "Avoid warnings for empty file sha1 keys"
jenkins-bot [Thu, 26 Jun 2014 20:17:26 +0000 (20:17 +0000)]
Merge "Avoid warnings for empty file sha1 keys"

9 years agoMerge "Avoid begin/commit in Category::getCountMessage()"
jenkins-bot [Thu, 26 Jun 2014 20:16:57 +0000 (20:16 +0000)]
Merge "Avoid begin/commit in Category::getCountMessage()"

9 years agoMerge "Removed redundant begin/commit calls"
jenkins-bot [Thu, 26 Jun 2014 20:16:40 +0000 (20:16 +0000)]
Merge "Removed redundant begin/commit calls"

9 years agoMerge "Set noindex,nofollow on missing (404) pages"
jenkins-bot [Thu, 26 Jun 2014 20:16:21 +0000 (20:16 +0000)]
Merge "Set noindex,nofollow on missing (404) pages"

9 years agoEscape delimiter in SpecialPage::prefixSearchArray
Chad Horohoe [Thu, 26 Jun 2014 19:45:40 +0000 (12:45 -0700)]
Escape delimiter in SpecialPage::prefixSearchArray

Changed preg_quote() call so that the proper delimiter
is passed as the second parameter, thus making sure
it is properly escaped.

Change-Id: Ie12418e5433642b86dcda425b63a05ac3ff2c29d

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 26 Jun 2014 19:37:29 +0000 (19:37 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 26 Jun 2014 19:18:12 +0000 (19:18 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8a46691da7a1cc6522434f05a5a7f658176f919c

9 years agoMerge "SpecialPage: Adjust type hint: Array → array"
jenkins-bot [Thu, 26 Jun 2014 19:15:04 +0000 (19:15 +0000)]
Merge "SpecialPage: Adjust type hint: Array → array"

9 years agoSpecialPage: Adjust type hint: Array → array
Bartosz Dziewoński [Thu, 26 Jun 2014 19:10:00 +0000 (21:10 +0200)]
SpecialPage: Adjust type hint: Array → array

Change-Id: I18053dc4d40aa832715e15186d995c2db5845272

9 years agoMerge "Remove LoadBalancer::closeConnecton (deprecated since 1.18)"
jenkins-bot [Thu, 26 Jun 2014 18:47:43 +0000 (18:47 +0000)]
Merge "Remove LoadBalancer::closeConnecton (deprecated since 1.18)"

9 years agoMerge "Remove DatabaseMysqlBase::getLagFromProcesslist() (deprecated 1.19)"
jenkins-bot [Thu, 26 Jun 2014 18:39:23 +0000 (18:39 +0000)]
Merge "Remove DatabaseMysqlBase::getLagFromProcesslist() (deprecated 1.19)"

9 years agoMerge "Setup.php: Update comment about loading default skins"
jenkins-bot [Thu, 26 Jun 2014 18:36:20 +0000 (18:36 +0000)]
Merge "Setup.php: Update comment about loading default skins"

9 years agoMerge "SpecialVersion: Show 'Skins' and 'Extensions' in separate sections"
jenkins-bot [Thu, 26 Jun 2014 18:35:06 +0000 (18:35 +0000)]
Merge "SpecialVersion: Show 'Skins' and 'Extensions' in separate sections"

9 years agoMerge "Remove ImageGalleryBase::useSkin() (deprecated since 1.18)"
jenkins-bot [Thu, 26 Jun 2014 18:29:24 +0000 (18:29 +0000)]
Merge "Remove ImageGalleryBase::useSkin() (deprecated since 1.18)"

9 years agoSetup.php: Update comment about loading default skins
Bartosz Dziewoński [Thu, 26 Jun 2014 17:55:13 +0000 (19:55 +0200)]
Setup.php: Update comment about loading default skins

Change-Id: Icd6d8c83404b853e91ed7312137bc144d488568d

9 years agoMerge "mediawiki.ui: Rename .mw-ui-vform-div → .mw-ui-vform-field"
jenkins-bot [Thu, 26 Jun 2014 17:39:23 +0000 (17:39 +0000)]
Merge "mediawiki.ui: Rename .mw-ui-vform-div → .mw-ui-vform-field"

9 years agoSpecialVersion: Show 'Skins' and 'Extensions' in separate sections
Bartosz Dziewoński [Sun, 1 Jun 2014 00:02:18 +0000 (02:02 +0200)]
SpecialVersion: Show 'Skins' and 'Extensions' in separate sections

Change-Id: Ifa4aa1a2ad31228b4bff833f34727e80e19b9ae3

9 years agomediawiki.ui: Rename .mw-ui-vform-div → .mw-ui-vform-field
Bartosz Dziewoński [Fri, 16 May 2014 15:53:33 +0000 (17:53 +0200)]
mediawiki.ui: Rename .mw-ui-vform-div → .mw-ui-vform-field

Require use of class instead of applying styling to all <div>s

This resolves a few FIXMEs and dramatically lowers the awkwardness
level of using mediawiki.ui.

'.mw-ui-vform-field' is a more descriptive name than '.mw-ui-vform-div'
and corresponds to the HTMLFormField PHP class in core which generates
<div>s with this CSS class.

We previously styled '.mw-ui-vform > div' the same way we styled
'.mw-ui-vform .mw-ui-vform-div', which was an annoying piece of magic
causing difficult to debug problems when one needed a different HTML
structure (like bug 63233). Explicitly using '.mw-ui-vform-field'
where applicable is a lot saner.

Change-Id: I6f0b8842f5fdf70b97decb165086d1a83428b259

9 years agoMerge "Resources: Enable es5-shim and json for mobile as well as desktop target"
jenkins-bot [Thu, 26 Jun 2014 16:56:13 +0000 (16:56 +0000)]
Merge "Resources: Enable es5-shim and json for mobile as well as desktop target"

9 years agoMerge "Vector: Rename description message: vector-desc → vector-skin-desc"
jenkins-bot [Thu, 26 Jun 2014 16:54:40 +0000 (16:54 +0000)]
Merge "Vector: Rename description message: vector-desc → vector-skin-desc"

9 years agoVector: Rename description message: vector-desc → vector-skin-desc
Bartosz Dziewoński [Thu, 26 Jun 2014 16:48:29 +0000 (18:48 +0200)]
Vector: Rename description message: vector-desc → vector-skin-desc

The former was also used by the old Vector extension and the
translations now conflict.

Intentionally didn't change qqq as it currently contains the docs for
the wrong message… I'll fix qqq on translatewiki.

Change-Id: Id7bde76b8f663e88672248f6881530ece54b67b1

9 years agoResources: Enable es5-shim and json for mobile as well as desktop target
James D. Forrester [Thu, 26 Jun 2014 16:44:11 +0000 (09:44 -0700)]
Resources: Enable es5-shim and json for mobile as well as desktop target

Change-Id: I1237909d7e058137d55e5de9fa4d64fe1f7f9472

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 26 Jun 2014 16:34:22 +0000 (16:34 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I9395b0e1983122b12bedf003d6398da5ddfd5651

9 years agoMerge "SpecialJavaScriptTest: Implement prefixSearchSubpages()"
jenkins-bot [Thu, 26 Jun 2014 15:51:05 +0000 (15:51 +0000)]
Merge "SpecialJavaScriptTest: Implement prefixSearchSubpages()"

9 years agoMerge "Avoid key conflict errors in User::addToDatabase"
jenkins-bot [Thu, 26 Jun 2014 15:50:33 +0000 (15:50 +0000)]
Merge "Avoid key conflict errors in User::addToDatabase"

9 years agoMerge "test: Remove MagicVariableTest#testServernameFromDifferentProtocols"
jenkins-bot [Thu, 26 Jun 2014 15:49:35 +0000 (15:49 +0000)]
Merge "test: Remove MagicVariableTest#testServernameFromDifferentProtocols"

9 years agoMerge "SpecialPage: DRY array filter for prefixSearchSubpages()"
jenkins-bot [Thu, 26 Jun 2014 15:44:29 +0000 (15:44 +0000)]
Merge "SpecialPage: DRY array filter for prefixSearchSubpages()"

9 years agoMerge "Deprecate wfCheckLimits(), nothing calls this anymore"
jenkins-bot [Thu, 26 Jun 2014 15:34:38 +0000 (15:34 +0000)]
Merge "Deprecate wfCheckLimits(), nothing calls this anymore"

9 years agoFix pageExists when passed invalid title
Chad Horohoe [Thu, 26 Jun 2014 14:40:06 +0000 (07:40 -0700)]
Fix pageExists when passed invalid title

$title would end up null leading to broken output.

Change-Id: I349ec8aa15fa7e59ae198c2e4f92b3baa471ea23

9 years agoMerge "Prevent OutputPage::addWikiText and friends from causing UNIQ fails"
jenkins-bot [Thu, 26 Jun 2014 09:25:19 +0000 (09:25 +0000)]
Merge "Prevent OutputPage::addWikiText and friends from causing UNIQ fails"

9 years agoMerge "Change NS_FILE_TALK alias in Korean"
jenkins-bot [Thu, 26 Jun 2014 08:30:47 +0000 (08:30 +0000)]
Merge "Change NS_FILE_TALK alias in Korean"

10 years agoMerge "skins: Update .gitignore"
jenkins-bot [Thu, 26 Jun 2014 05:14:20 +0000 (05:14 +0000)]
Merge "skins: Update .gitignore"

10 years agoMerge "Made DB commit() method properly bail out if no trx is active"
jenkins-bot [Thu, 26 Jun 2014 03:52:02 +0000 (03:52 +0000)]
Merge "Made DB commit() method properly bail out if no trx is active"

10 years agoMerge "Made DB rollback() method properly bail out if no trx is active"
jenkins-bot [Thu, 26 Jun 2014 03:51:26 +0000 (03:51 +0000)]
Merge "Made DB rollback() method properly bail out if no trx is active"

10 years agoMerge "Add es5-shim library v3.4.0"
jenkins-bot [Thu, 26 Jun 2014 01:14:48 +0000 (01:14 +0000)]
Merge "Add es5-shim library v3.4.0"

10 years agoMerge "Add json2.js polyfill (v2014-02-04; with module skip function)"
jenkins-bot [Thu, 26 Jun 2014 01:10:58 +0000 (01:10 +0000)]
Merge "Add json2.js polyfill (v2014-02-04; with module skip function)"

10 years agoRemove $wgParserTestRemote, unused.
Max Semenik [Thu, 26 Jun 2014 00:51:05 +0000 (17:51 -0700)]
Remove $wgParserTestRemote, unused.

Change-Id: Id1aaf3941825f798a7ed95c49ccd04b1b3838c61

10 years agoMerge "Also check if 'debug_backtrace' is disabled in Maintenance::shouldExecute()"
jenkins-bot [Thu, 26 Jun 2014 00:16:24 +0000 (00:16 +0000)]
Merge "Also check if 'debug_backtrace' is disabled in Maintenance::shouldExecute()"

10 years agoAlso check if 'debug_backtrace' is disabled in Maintenance::shouldExecute()
Alexandre Emsenhuber [Wed, 25 Jun 2014 20:39:58 +0000 (22:39 +0200)]
Also check if 'debug_backtrace' is disabled in Maintenance::shouldExecute()

And execute the script if $wgCommandLineMode is true. Otherwise scripts
never get executed.

Change-Id: I609d859b616905ab44a060a861be500609e5a9f0

10 years agoMerge "Include trx state in query profiling (and DBPerformance log)"
jenkins-bot [Thu, 26 Jun 2014 00:01:55 +0000 (00:01 +0000)]
Merge "Include trx state in query profiling (and DBPerformance log)"

10 years agoMerge "Removed old DB_LAST cruft"
jenkins-bot [Thu, 26 Jun 2014 00:01:02 +0000 (00:01 +0000)]
Merge "Removed old DB_LAST cruft"

10 years agoRemoved old DB_LAST cruft
Aaron Schulz [Wed, 25 Jun 2014 23:12:36 +0000 (16:12 -0700)]
Removed old DB_LAST cruft

Change-Id: I5517c43389182e61e4a969ed9ca71dae2388a5d0

10 years agoskins: Update .gitignore
Kevin Israel [Wed, 25 Jun 2014 23:04:53 +0000 (19:04 -0400)]
skins: Update .gitignore

... so symlinks to mediawiki/skins repos won't appear as "Untracked
files" and new files under common/, MonoBook/, and Vector/ will.

Change-Id: I31e81a51aafb6f00e5302531ed64d8f0c325929a

10 years agoMerge "Check for $wgAllowUserCss and $wgAllowUserJs in EditPage.php"
jenkins-bot [Wed, 25 Jun 2014 22:44:02 +0000 (22:44 +0000)]
Merge "Check for $wgAllowUserCss and $wgAllowUserJs in EditPage.php"

10 years agoAdd es5-shim library v3.4.0
James D. Forrester [Thu, 12 Jun 2014 23:19:46 +0000 (16:19 -0700)]
Add es5-shim library v3.4.0

With skip function to bypass loading in modern browsers.

Add dependency on es5-shim to OOjs and OOjs UI, and json2 to the former.

The ES5 skip function simply asserts the 'use strict' feature, which
means that all MSIE9 clients will recieve the library, which should
mostly be a no-op but will increase the load.

* Source code
  https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js

As OOjs UI isn't yet tested against non-ES5 browsers using this shim,
leaving the note about likely breakage for that one.

Change-Id: I2556b39d6040d99693f6b9d469b92951ffb2e7b2

10 years agoMerge "Adding and improving function and param descriptions in HtmlFormatter"
jenkins-bot [Wed, 25 Jun 2014 22:10:43 +0000 (22:10 +0000)]
Merge "Adding and improving function and param descriptions in HtmlFormatter"

10 years agoMerge "Only use limit.sh if /bin/bash executable, instead of if linux."
jenkins-bot [Wed, 25 Jun 2014 21:53:56 +0000 (21:53 +0000)]
Merge "Only use limit.sh if /bin/bash executable, instead of if linux."

10 years agoAdding and improving function and param descriptions in HtmlFormatter
kaldari [Wed, 25 Jun 2014 21:40:13 +0000 (14:40 -0700)]
Adding and improving function and param descriptions in HtmlFormatter

The change only includes documentation changes, no code changes.

Change-Id: Ie1fdfcc774883882f50fd53d3cb32ade7f0bad34

10 years agoInclude trx state in query profiling (and DBPerformance log)
Aaron Schulz [Wed, 25 Jun 2014 18:33:20 +0000 (11:33 -0700)]
Include trx state in query profiling (and DBPerformance log)

* Replaced use of spl hash with random transaction IDs.
  These can be correlated better and make the DBPerformance
  log easier to make sense of. They are also shorter.

Change-Id: I5f49c0d0c26e37807341bbc83b1b41b124164419

10 years agoMerge "SECURITY: Prevent external resources in SVG files"
Mglaser [Wed, 25 Jun 2014 20:38:37 +0000 (20:38 +0000)]
Merge "SECURITY: Prevent external resources in SVG files"

10 years agoSECURITY: Prevent external resources in SVG files
csteipp [Wed, 28 May 2014 23:55:40 +0000 (16:55 -0700)]
SECURITY: Prevent external resources in SVG files

On bug 65724, it was discovered that a user could upload SVG images
with embedded <image> elements that pulled in the resource via http.
This could allow an attacker to track all viewers of an SVG by having
the image embed another image hosted on their own server.

While testing the patch, I also identified 3 more element namespaces
that have been used on commons and seem harmless, so I added those to
the whitelist.

Change-Id: Iaaabc3a60c0ec4e6e426a8680d7a2cef5d469d29

10 years agoDon't parse disable_functions INI value
Kevin Israel [Mon, 31 Mar 2014 14:19:57 +0000 (10:19 -0400)]
Don't parse disable_functions INI value

In wfDebugBacktrace() and wfShellExecDisabled(), use function_exists()
instead of getting the value of the disable_functions INI setting,
then splitting it into a list of functions, then checking that list
for the function to be called.

Also removed the check for Zend Optimizer, an old PHP extension that
does not work with PHP 5.3.

Change-Id: I04f0e026f8a6e0414f08d5302aff6c084a1d19a7

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 25 Jun 2014 20:07:31 +0000 (20:07 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8386f5aae3990abe420df402d3f778589934c64a

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 25 Jun 2014 19:59:06 +0000 (19:59 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I6cb91ddcb23051e3eeca7692bca619aef979f9bd

10 years agoRemove ApiBase::createContext() (deprecated since 1.19)
umherirrender [Wed, 25 Jun 2014 18:35:56 +0000 (20:35 +0200)]
Remove ApiBase::createContext() (deprecated since 1.19)

Change-Id: Iee20e1c5e5b83b5b43303bde7e524b95b74eb62b

10 years agoDeprecate wfCheckLimits(), nothing calls this anymore
Chad Horohoe [Wed, 25 Jun 2014 18:22:39 +0000 (11:22 -0700)]
Deprecate wfCheckLimits(), nothing calls this anymore

Some old things in SVN called it, hence the deprecation.

Change-Id: Iefabd1a6bee261a393f3b1af083c8a075abf1e48

10 years agoPrevent OutputPage::addWikiText and friends from causing UNIQ fails
Brian Wolff [Fri, 20 Jun 2014 20:38:10 +0000 (17:38 -0300)]
Prevent OutputPage::addWikiText and friends from causing UNIQ fails

If you transclude a special page, OutputPage::addWikiText can cause
problems. This prevents that from happening, by using a new object
if currently in a parsing operation.

Bug: 14562
Bug: 65826
Change-Id: I7c38fa9e2fbd270e45f73f522612451e77ab8cbb

10 years agoUpdate OOjs UI to v0.1.0-pre (9aad824bd6)
James D. Forrester [Wed, 25 Jun 2014 18:00:00 +0000 (11:00 -0700)]
Update OOjs UI to v0.1.0-pre (9aad824bd6)

New changes:
414c051 build: Update jscs and use new "wikimedia" preset
0401aff Accessibility: Set aria-hidden attribute on elements while dialogs are open
9aad824 Revert "Accessibility: Restore element focus when a window closes"

Change-Id: I8df631bdce8446ab9845c4e971c2c58cf94bc7e4

10 years agoRemove LoadBalancer::closeConnecton (deprecated since 1.18)
umherirrender [Wed, 25 Jun 2014 17:57:05 +0000 (19:57 +0200)]
Remove LoadBalancer::closeConnecton (deprecated since 1.18)

Change-Id: Ic572ab2787623bb2b525ffa640e1232dcb1643fb

10 years agoRemove DatabaseMysqlBase::getLagFromProcesslist() (deprecated 1.19)
umherirrender [Wed, 25 Jun 2014 17:54:15 +0000 (19:54 +0200)]
Remove DatabaseMysqlBase::getLagFromProcesslist() (deprecated 1.19)

Change-Id: I7dfdd943abf1c94a35e2401f92208c19683dc200

10 years agoMade DB rollback() method properly bail out if no trx is active
Aaron Schulz [Wed, 25 Jun 2014 17:17:21 +0000 (10:17 -0700)]
Made DB rollback() method properly bail out if no trx is active

Change-Id: I157b3c9e7a869866c08d127cb7f9277582e1bc9e

10 years agoMade DB commit() method properly bail out if no trx is active
Aaron Schulz [Wed, 25 Jun 2014 17:12:44 +0000 (10:12 -0700)]
Made DB commit() method properly bail out if no trx is active

* Also flipped conditional to avoid being in the negative

Change-Id: I30bce9a015bea5909322bba93493500b5b418d18

10 years agoMerge "SpecialSearch: Simplify result info"
jenkins-bot [Wed, 25 Jun 2014 16:17:13 +0000 (16:17 +0000)]
Merge "SpecialSearch: Simplify result info"

10 years agoRemove ImageGalleryBase::useSkin() (deprecated since 1.18)
umherirrender [Tue, 24 Jun 2014 17:52:29 +0000 (19:52 +0200)]
Remove ImageGalleryBase::useSkin() (deprecated since 1.18)

Change-Id: If1f92984bec36948a1149fffef765e7fa78cc26a

10 years agoAdd json2.js polyfill (v2014-02-04; with module skip function)
Timo Tijhof [Wed, 18 Jun 2014 20:20:37 +0000 (22:20 +0200)]
Add json2.js polyfill (v2014-02-04; with module skip function)

Source from https://github.com/douglascrockford/JSON-js/blob/3d7767b/json2.js

* Deprecate jquery.json which is a little dated and less efficient
  because it always downloads the entire polyfill to the client
  even if it isn't needed. We also can't add a skip function to
  jquery.json because it exposes a different interface ($.toJSON
  instead of JSON.stringify).

* Update 'mediawiki.inspect' to use 'json' instead.

* Update 'jquery.jStorage' to use 'json' instead (doesn't need
  a change to its code as it looks for either JSON.stringify or
  $.toJSON by design).

Change-Id: I8978be3491b08fbbfd83f1306e816b1b20f16161

10 years agoDouble check its safe before dropping new table during db cloning
Brian Wolff [Thu, 22 May 2014 20:44:39 +0000 (17:44 -0300)]
Double check its safe before dropping new table during db cloning

parserTests.php just killed my user table :(

Bug: 65654
Change-Id: Idcf1c6af6a513c9e6dc650237863db8d61519886

10 years agotest: Remove MagicVariableTest#testServernameFromDifferentProtocols
Timo Tijhof [Tue, 24 Jun 2014 19:20:01 +0000 (21:20 +0200)]
test: Remove MagicVariableTest#testServernameFromDifferentProtocols

This test was causing failures locally when wgServer != localhost
because {{SERVERNAME}} is derived from wgServerName, not wgServer
and the test is only mocking wgServer.

> MagicVariableTest::testServername.. with data set #2 ('//localhost/')
> Magic servername should be <localhost:string>
> Failed asserting that two strings are identical.
> --- Expected
> +++ Actual
> @@ @@
> -localhost
> +krinkle.dev

This value is no longer derived by the Parser, but is instead
set using wfParserUrl in Setup.php.

Remove this obsolete test and add any missing test cases for
wgParserUrl to its test suite.

Change-Id: I7d7d201cb46841e63dac8ab9fd81b45b252264a3