lhc/web/wiklou.git
9 years agoMerge "Move footer icons to assets/ directory"
jenkins-bot [Sun, 14 Sep 2014 12:19:10 +0000 (12:19 +0000)]
Merge "Move footer icons to assets/ directory"

9 years agoMerge "API: Add rawcontinue parameter to action=query"
jenkins-bot [Sun, 14 Sep 2014 11:31:53 +0000 (11:31 +0000)]
Merge "API: Add rawcontinue parameter to action=query"

9 years agoMerge "Use local var in Action::setHeaders"
jenkins-bot [Sun, 14 Sep 2014 11:21:33 +0000 (11:21 +0000)]
Merge "Use local var in Action::setHeaders"

9 years agoMerge "Allow preloadparams for Special:MyPage"
jenkins-bot [Sun, 14 Sep 2014 11:21:06 +0000 (11:21 +0000)]
Merge "Allow preloadparams for Special:MyPage"

9 years agoResourceLoaderWikiModule: Check content format instead of content model
Kunal Mehta [Sat, 13 Sep 2014 23:35:56 +0000 (16:35 -0700)]
ResourceLoaderWikiModule: Check content format instead of content model

For Gadgets 2.0, we have custom content models that represent
JavaScript and CSS pages. Comparing the exact content model here
is too strict, when we really want to know if the page supports
the JavaScript or CSS formats.

Also fix a debug log comment that didn't work due to improper quoting.

Change-Id: I64e86c74173b1c88cac71483327cacdd8b9967b9

9 years agoFix subclassing of CssContent and JavaScriptContent
Kunal Mehta [Sat, 13 Sep 2014 22:31:18 +0000 (15:31 -0700)]
Fix subclassing of CssContent and JavaScriptContent

We need to be able to set a different content model via the
constructor, so make it an optional parameter.

Change-Id: I8b31084e0cfbcca1b3785176eac492d837e0cb0f

9 years agoAPI: Add rawcontinue parameter to action=query
Brad Jorsch [Thu, 14 Aug 2014 17:18:07 +0000 (13:18 -0400)]
API: Add rawcontinue parameter to action=query

Soon the simplified continuation will become the default for
action=query. This parameter will then serve select the return of the
raw continuation data. To allow for clients to transition without
"unrecognized parameter" warnings, I'd like to add the parameter now
before even adding deprecation warnings.

Change-Id: I5f6895b6a94c53a231a50707ee9463f91295da8f

9 years agoMerge "Clean up mediawiki.legacy.protect a bit."
jenkins-bot [Sat, 13 Sep 2014 16:30:12 +0000 (16:30 +0000)]
Merge "Clean up mediawiki.legacy.protect a bit."

9 years agoMerge "Move Config::set() to MutableConfig::set()"
jenkins-bot [Sat, 13 Sep 2014 16:29:00 +0000 (16:29 +0000)]
Merge "Move Config::set() to MutableConfig::set()"

9 years agoClean up mediawiki.legacy.protect a bit.
Alex Monk [Fri, 29 Aug 2014 22:40:10 +0000 (23:40 +0100)]
Clean up mediawiki.legacy.protect a bit.

Also kills some inline JS stuff in ProtectionForm

Bug: 33871
Change-Id: Ie43c80bf5ebd6107458d5284cc68b7128f29359a

9 years agoMerge "resourceloader: Condition-wrap the HTML tag instead of JS response"
jenkins-bot [Sat, 13 Sep 2014 13:29:06 +0000 (13:29 +0000)]
Merge "resourceloader: Condition-wrap the HTML tag instead of JS response"

9 years agoMerge "Revert "Add support for svg in .list-style-image""
jenkins-bot [Sat, 13 Sep 2014 13:18:30 +0000 (13:18 +0000)]
Merge "Revert "Add support for svg in .list-style-image""

9 years agoRevert "Add support for svg in .list-style-image"
Bartosz Dziewoński [Sat, 13 Sep 2014 13:11:08 +0000 (13:11 +0000)]
Revert "Add support for svg in .list-style-image"

The generated CSS is invalid, as you can't have multiple
list-style-images (unlike background-images). Browsers
either ignore the invalid properties with linear-gradient
and use non-embedded PNG fallback (Chrome, Firefox, modern
IE), or accept the properties but ignore everything after
the comma, using the fully transparent gradient (Opera).

This reverts commit 502fffe3bf2cb6a8fccb8059436a038e21153596.

Change-Id: I87f8142b5e718f96ca8ee74578224b4db7dedce9

9 years agoMerge "Add margin below CAPTCHA box (and above submit) for signup and login"
jenkins-bot [Sat, 13 Sep 2014 08:43:12 +0000 (08:43 +0000)]
Merge "Add margin below CAPTCHA box (and above submit) for signup and login"

9 years agoUse local var in Action::setHeaders
umherirrender [Tue, 9 Sep 2014 18:22:35 +0000 (20:22 +0200)]
Use local var in Action::setHeaders

Change-Id: I543d45835016fd6f4f2ec0e84f4e5453237bbf25

9 years agoTablePager: Use wfScript() instead of $wgScript
Kunal Mehta [Sat, 13 Sep 2014 06:03:12 +0000 (23:03 -0700)]
TablePager: Use wfScript() instead of $wgScript

Change-Id: Ib12bd3dfa102dc673789c27506becc2fd8138f56

9 years agoMerge "SpecialEmailUser: Use Config instead of globals"
jenkins-bot [Sat, 13 Sep 2014 06:53:44 +0000 (06:53 +0000)]
Merge "SpecialEmailUser: Use Config instead of globals"

9 years agoMerge "Typo: compatability -> compatibility"
jenkins-bot [Sat, 13 Sep 2014 06:47:42 +0000 (06:47 +0000)]
Merge "Typo: compatability -> compatibility"

9 years agoSpecialEmailUser: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 21:52:07 +0000 (14:52 -0700)]
SpecialEmailUser: Use Config instead of globals

Change-Id: I81f6fb942a9cb12332c4763ab4c26cfcc556ddcb

9 years agoTypo: compatability -> compatibility
umherirrender [Sat, 13 Sep 2014 06:30:48 +0000 (08:30 +0200)]
Typo: compatability -> compatibility

Change-Id: I533dfc9daff5e11c1732d5d81a54faa9d7b0c43a

9 years agoPreferences: Use Config instead of globals
Kunal Mehta [Wed, 20 Aug 2014 06:09:25 +0000 (23:09 -0700)]
Preferences: Use Config instead of globals

Change-Id: Iab8725ded4da532a3072fb68e3060bd8f8ddf30a

9 years agoMerge "Make MySQLi work with non-standard socket"
jenkins-bot [Sat, 13 Sep 2014 05:26:21 +0000 (05:26 +0000)]
Merge "Make MySQLi work with non-standard socket"

9 years agoMake MySQLi work with non-standard socket
Jesús Martínez Novo [Sun, 1 Jun 2014 13:54:48 +0000 (15:54 +0200)]
Make MySQLi work with non-standard socket

MySQLi needs to specify the socket location as a parameter, and not as part
of the hostname.

Split the socket out of the hostname if it contains *one* colon (IPv6 safe)
after checking for the port number.

Bug: 65998
Change-Id: I66ee34e1029bc1630669bde4272d0eae9d3fd9f1

9 years agoUse safe attribute accessor for RecentChange
Bryan Davis [Fri, 22 Aug 2014 15:44:15 +0000 (09:44 -0600)]
Use safe attribute accessor for RecentChange

The RecentChange does not guarantee that all attributes are populated.
Handily it provides a safe getter function in
RecentChange::getAttribute() that will return null with out triggering
an undefined index warning for missing attributes. Protects against log
spam like "Notice: Undefined index: rc_id".

Change-Id: Idee844f0d40a2a084e17f201b5e1501d59a0464d

9 years agoAdd margin below CAPTCHA box (and above submit) for signup and login
Matthew Flaschen [Sat, 13 Sep 2014 03:11:13 +0000 (23:11 -0400)]
Add margin below CAPTCHA box (and above submit) for signup and login

Only applies if the CAPTCHA box is shown, which is if ConfirmEdit is
installed.

Bug: 68788
Change-Id: I8fa5f9e0b0394594bb59b1c3f62077e5e7428525

9 years agoAdd support for svg in .list-style-image
paladox [Thu, 4 Sep 2014 20:13:53 +0000 (22:13 +0200)]
Add support for svg in .list-style-image

* You can now use .list-style-image-svg for support for svg.

* Please see I5196952088e584d3121600e9e829647e8c195bbb for it being used on vector.

Note: This has been tested by me.

Change-Id: Iffff2bc52e1572e661930242ad15937bc83abace

9 years agoMerge "Group E-mail settings stuff in Setup.php"
Aaron Schulz [Fri, 12 Sep 2014 22:37:05 +0000 (22:37 +0000)]
Merge "Group E-mail settings stuff in Setup.php"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 12 Sep 2014 22:06:42 +0000 (00:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4c78d0591a5cf4fff95dd076bf08741eec4ca050

9 years agoMerge "RawAction: private variable removing m prefix + doc better"
jenkins-bot [Fri, 12 Sep 2014 21:29:41 +0000 (21:29 +0000)]
Merge "RawAction: private variable removing m prefix + doc better"

9 years agoMerge "Sort modules in alphabetical order and leave note about this"
jenkins-bot [Fri, 12 Sep 2014 20:49:34 +0000 (20:49 +0000)]
Merge "Sort modules in alphabetical order and leave note about this"

9 years agoMerge "SearchResult: clean up construction"
jenkins-bot [Fri, 12 Sep 2014 20:41:49 +0000 (20:41 +0000)]
Merge "SearchResult: clean up construction"

9 years agoMerge "Fix for Ia9baaf0b: Make previously public variables public again"
jenkins-bot [Fri, 12 Sep 2014 19:52:51 +0000 (19:52 +0000)]
Merge "Fix for Ia9baaf0b: Make previously public variables public again"

9 years agoSearchResult: clean up construction
Chad Horohoe [Fri, 12 Sep 2014 19:37:35 +0000 (12:37 -0700)]
SearchResult: clean up construction

- Remove old pre-1.17 constructor format. No core or extension callers
- Remove only usage of newFromRow(), needless abstraction

Change-Id: Ifad161aa36837bb4c8b5c9aecac1c46e2e6cc84c

9 years agoMerge "Clear the DBO_TRX flag for sanity in ExternalStore"
jenkins-bot [Fri, 12 Sep 2014 19:30:45 +0000 (19:30 +0000)]
Merge "Clear the DBO_TRX flag for sanity in ExternalStore"

9 years agoClear the DBO_TRX flag for sanity in ExternalStore
Aaron Schulz [Fri, 12 Sep 2014 18:43:34 +0000 (11:43 -0700)]
Clear the DBO_TRX flag for sanity in ExternalStore

* This avoids an explicit commit of an implicit transaction when the site
  config for the ES cluster does not clear that flag by mistake.

Change-Id: I57d8b04cbf3249849db1643fc82673e9de8ea15b

9 years agoMerge "Commented and re-ordered the LoadBalancer fields"
jenkins-bot [Fri, 12 Sep 2014 18:41:39 +0000 (18:41 +0000)]
Merge "Commented and re-ordered the LoadBalancer fields"

9 years agoMerge "Remove patch-restructure.sql"
jenkins-bot [Fri, 12 Sep 2014 18:40:32 +0000 (18:40 +0000)]
Merge "Remove patch-restructure.sql"

9 years agoRawAction: private variable removing m prefix + doc better
Chad Horohoe [Fri, 12 Sep 2014 18:39:36 +0000 (11:39 -0700)]
RawAction: private variable removing m prefix + doc better

Change-Id: I526ebcbb1429af42fa9e33cdf59d12c4854247f7

9 years agoMerge "Fix SpecialPageFactory::getTitleForAlias"
jenkins-bot [Fri, 12 Sep 2014 18:37:02 +0000 (18:37 +0000)]
Merge "Fix SpecialPageFactory::getTitleForAlias"

9 years agoMerge "Add release notes for BagOStuff::replace() removal"
jenkins-bot [Fri, 12 Sep 2014 18:33:55 +0000 (18:33 +0000)]
Merge "Add release notes for BagOStuff::replace() removal"

9 years agoCommented and re-ordered the LoadBalancer fields
Aaron Schulz [Fri, 12 Sep 2014 18:32:01 +0000 (11:32 -0700)]
Commented and re-ordered the LoadBalancer fields

Change-Id: Ie05cfd9a4a60f07ea9710c6bf7657ca956a7dd5e

9 years agoRemove patch-restructure.sql
Chad Horohoe [Fri, 12 Sep 2014 18:29:35 +0000 (11:29 -0700)]
Remove patch-restructure.sql

Unused. Basically reimplemented as doSchemaRestructuring(). That
method could possibly be broken up and make more use of patch
files though.

Change-Id: Idb0a3740dd1401632f2e273ff46dd856a5d4d735

9 years agoFix SpecialPageFactory::getTitleForAlias
Elliott Eggleston [Tue, 24 Jun 2014 21:19:32 +0000 (14:19 -0700)]
Fix SpecialPageFactory::getTitleForAlias

It takes the result of resolveAlias and calls SpecialPage::getTitleFor.
Unfortunately, resolveAlias returns an array of [name, subpage] while
getTitleFor expects two string arguments.

This commit makes SpecialPageFactory::getTitleForAlias call
SpecialPage::getTitleFor with two string arguments instead of an array.

Bug: 67045
Change-Id: Ia1a0abf753b03fc69d3d4de025c88312e3e45763

9 years agoMerge "Removed MultiWriteBagOStuff::replace"
jenkins-bot [Fri, 12 Sep 2014 18:25:45 +0000 (18:25 +0000)]
Merge "Removed MultiWriteBagOStuff::replace"

9 years agoAdd release notes for BagOStuff::replace() removal
Kunal Mehta [Fri, 12 Sep 2014 18:25:14 +0000 (11:25 -0700)]
Add release notes for BagOStuff::replace() removal

Change-Id: If90237c54a56a3d6e14835654cb3a514a3ae6cb3

9 years agoRemoved MultiWriteBagOStuff::replace
Aaron Schulz [Fri, 12 Sep 2014 18:13:06 +0000 (11:13 -0700)]
Removed MultiWriteBagOStuff::replace

Change-Id: Ifa6373cda099d1b87e90592598267987e9185a25

9 years agoMake Special:Unblock link to contributions page for IP blockees
TK-999 [Tue, 8 Jul 2014 21:21:15 +0000 (23:21 +0200)]
Make Special:Unblock link to contributions page for IP blockees

Currently, Special:Unblock links to the user page of anon editors,
which is inconsistent with other areas of the software,
and also less useful, as IP userpages are often redlinks.
This patch converts these links to Contributions links.

Originally reported on Wikia, with an (incomplete) patch here:
https://github.com/WikiaVolDev/app/compare/VOLDEV-31

Change-Id: I0fc73c7ee4fd7c81ed876717e8f60749c51685ae

9 years agoMerge "kss: Add links upto depth 2 in ToC"
jenkins-bot [Fri, 12 Sep 2014 18:03:09 +0000 (18:03 +0000)]
Merge "kss: Add links upto depth 2 in ToC"

9 years agoMerge "Removed some b/c code from file backend"
jenkins-bot [Fri, 12 Sep 2014 17:53:56 +0000 (17:53 +0000)]
Merge "Removed some b/c code from file backend"

9 years agokss: Add links upto depth 2 in ToC
Prateek Saxena [Sat, 6 Sep 2014 05:53:14 +0000 (11:23 +0530)]
kss: Add links upto depth 2 in ToC

Change-Id: Ibdf130ee01a3c754276470200a4c61b01731199f

9 years agoMerge "Removed deprecated BagOStuff::replace() method"
jenkins-bot [Fri, 12 Sep 2014 17:48:44 +0000 (17:48 +0000)]
Merge "Removed deprecated BagOStuff::replace() method"

9 years agoMerge "API: Fix list=allusers with multiple values for augroup"
jenkins-bot [Fri, 12 Sep 2014 17:27:02 +0000 (17:27 +0000)]
Merge "API: Fix list=allusers with multiple values for augroup"

9 years agoMerge "Properly deprecate srprop=score|hasrelated"
jenkins-bot [Fri, 12 Sep 2014 16:38:50 +0000 (16:38 +0000)]
Merge "Properly deprecate srprop=score|hasrelated"

9 years agoMerge "Remove "related" searches"
jenkins-bot [Fri, 12 Sep 2014 16:38:48 +0000 (16:38 +0000)]
Merge "Remove "related" searches"

9 years agoProperly deprecate srprop=score|hasrelated
Chad Horohoe [Wed, 10 Sep 2014 20:16:12 +0000 (13:16 -0700)]
Properly deprecate srprop=score|hasrelated

Logs stats on usage, output param descriptions for callers.

Change-Id: I000b91ff4d81dc1563231cd3ae0b56952b9574fd

9 years agoRemove "related" searches
Chad Horohoe [Wed, 10 Sep 2014 19:22:04 +0000 (12:22 -0700)]
Remove "related" searches

Poorly documented and never used anywhere properly.

- No core search backend supports it.
- MWSearch implements it but we've never turned it on.
- SolrStore copies MWSearch but it doesn't even work.
- CirrusSearch doesn't bother because it's silly.

Change-Id: I8b052e8e772030fba6c361fdb2775b10a7f7a15a

9 years agoAPI: Fix list=allusers with multiple values for augroup
Brad Jorsch [Sat, 6 Sep 2014 19:25:11 +0000 (15:25 -0400)]
API: Fix list=allusers with multiple values for augroup

The existing query only works with a single value for augroup, or mostly
if it's combined with auprop=groups or auprop=rights (since most users
don't have every possible group).

When used with multiple values for augroup, it will raise an error if it
happens to encounter enough users who have more than one of the
specified groups. And further, it will lead to repeated groups for these
users if combined with auprop=groups or auprop=rights.

To avoid both these issues, let's use EXISTS instead of a JOIN to test
augroup. While auexcludegroup doesn't have this problem, we may as well
make the same change there, too. And doing that, there's no reason to
continue with an error when both augroup and auexcludegroup are used.

Bug: 70496
Change-Id: Ia7086ce87012c22651ac4c7a3f75558347276226

9 years agoRemoved deprecated BagOStuff::replace() method
Aaron Schulz [Fri, 12 Sep 2014 09:03:32 +0000 (02:03 -0700)]
Removed deprecated BagOStuff::replace() method

Change-Id: Ife2f8e0f10ad7be76b79d5aee435491ea78d4655

9 years agoRemoved some b/c code from file backend
Aaron Schulz [Fri, 12 Sep 2014 07:54:24 +0000 (00:54 -0700)]
Removed some b/c code from file backend

Change-Id: Ie8dbff588b067a202b24dfeaf792301c1077f08b

9 years agoUpdate OOjs UI to v0.1.0-pre (bd008e8aed)
Roan Kattouw [Thu, 11 Sep 2014 23:10:13 +0000 (16:10 -0700)]
Update OOjs UI to v0.1.0-pre (bd008e8aed)

New changes:
845287a Update OOjs to v1.1.1
f7d11f7 Make popups position themselves correctly when dimensions change

Change-Id: I16ae22e6a921666de5b7ada7d7750621eb3ca5a7

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 11 Sep 2014 20:47:37 +0000 (22:47 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ief6252f5235622a08d6c0c8f41ce4c0a49e15d9e

9 years agoSpecialListgrouprights: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:13:49 +0000 (16:13 -0700)]
SpecialListgrouprights: Use Config instead of globals

Change-Id: I4c8e48adab856de4e3b736b6ae0366588fb82bc5

9 years agoMerge "API: Deprecate binary sortkey input in ApiQueryCategoryMembers"
jenkins-bot [Thu, 11 Sep 2014 18:41:27 +0000 (18:41 +0000)]
Merge "API: Deprecate binary sortkey input in ApiQueryCategoryMembers"

9 years agoMerge "HTMLFormFieldCloner: Make sure the delete and create buttons have a parent"
jenkins-bot [Thu, 11 Sep 2014 18:09:54 +0000 (18:09 +0000)]
Merge "HTMLFormFieldCloner: Make sure the delete and create buttons have a parent"

9 years agoMerge "Remove term from search results info"
jenkins-bot [Thu, 11 Sep 2014 17:16:26 +0000 (17:16 +0000)]
Merge "Remove term from search results info"

9 years agoHTMLFormFieldCloner: Make sure the delete and create buttons have a parent
Kunal Mehta [Thu, 11 Sep 2014 16:47:26 +0000 (09:47 -0700)]
HTMLFormFieldCloner: Make sure the delete and create buttons have a parent

Also fix the type in documentation.

Change-Id: I0fee2dbb9dd1db157acfba2063a2e4e40152cddf

9 years agoMove Config::set() to MutableConfig::set()
Kunal Mehta [Wed, 10 Sep 2014 21:51:16 +0000 (14:51 -0700)]
Move Config::set() to MutableConfig::set()

Introduces a new interface for Config types
that are mutable. Not all Config instances
should be mutable, like MultiConfig.

Change-Id: I56e193cbbf72b7afdf551f60ea635fc347e14b3e

9 years agoAPI: Deprecate binary sortkey input in ApiQueryCategoryMembers
Brad Jorsch [Thu, 11 Sep 2014 14:46:33 +0000 (10:46 -0400)]
API: Deprecate binary sortkey input in ApiQueryCategoryMembers

Depending on what method is being used to encode the binary sortkeys,
it's very possible that sending a binary value will be mangled by
WebRequest's UTF-8 normalization.

Rather than trying to fight it, let's just do what should have been done
in the first place when r86257 changed sortkey output to hex-encoded.
Too bad now we have to deprecate the old params and add
differently-named new ones instead of piggybacking on the original
breaking change.

Bug: 70690
Change-Id: I5a031e980967cbe574dddc261d56604cecc7147a

9 years agoClean Resources.php for phpcs
Amir E. Aharoni [Thu, 11 Sep 2014 09:36:44 +0000 (12:36 +0300)]
Clean Resources.php for phpcs

Change-Id: I138527fd235fc65a7ee10338681a6cf83abddfdd

9 years agoClarify "mustposttoken" API error message
MZMcBride [Thu, 11 Sep 2014 01:22:17 +0000 (21:22 -0400)]
Clarify "mustposttoken" API error message

Bug: 70656
Change-Id: Id30e54472299bc3998644914eca4e19e9429fd2b

9 years agoUpdate OOjs to v1.1.1
James D. Forrester [Thu, 11 Sep 2014 00:43:02 +0000 (17:43 -0700)]
Update OOjs to v1.1.1

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

Change-Id: I2a78dcd147def3b02314c176e51accb2cefe872e

9 years agoRemove term from search results info
Chad Horohoe [Wed, 10 Sep 2014 22:27:37 +0000 (15:27 -0700)]
Remove term from search results info

In surveying other search engines, nobody returns this extra information
and clutters their search results. The information is already available
in the <input> box as well as various context clues (like your actual
results).

Change-Id: Iea21a203731331ca31ced786fb7c0011bd4932eb

9 years agoMerge "Disable JavaScript for MSIE7 users, update tests accordingly"
jenkins-bot [Wed, 10 Sep 2014 20:56:59 +0000 (20:56 +0000)]
Merge "Disable JavaScript for MSIE7 users, update tests accordingly"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 10 Sep 2014 20:48:17 +0000 (22:48 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9b3a5891bac18ec36541b13836a957fdcefec5d5

9 years agoMerge "Don't cast SpecialPageFactory::$list to an object"
jenkins-bot [Wed, 10 Sep 2014 20:22:42 +0000 (20:22 +0000)]
Merge "Don't cast SpecialPageFactory::$list to an object"

9 years agoMerge "Fix column alias in sql on ApiQueryAllUsers.php"
jenkins-bot [Wed, 10 Sep 2014 20:02:27 +0000 (20:02 +0000)]
Merge "Fix column alias in sql on ApiQueryAllUsers.php"

9 years agoMerge "TitleTest: Break secure and split test into two tests with providers"
jenkins-bot [Wed, 10 Sep 2014 20:01:36 +0000 (20:01 +0000)]
Merge "TitleTest: Break secure and split test into two tests with providers"

9 years agoMerge "Under HHVM, measure resources for the thread, not calling process"
jenkins-bot [Wed, 10 Sep 2014 19:20:03 +0000 (19:20 +0000)]
Merge "Under HHVM, measure resources for the thread, not calling process"

9 years agoDon't cast SpecialPageFactory::$list to an object
Reedy [Wed, 10 Sep 2014 18:45:43 +0000 (19:45 +0100)]
Don't cast SpecialPageFactory::$list to an object

Callers insisde SpecialPageFactory using it as an object updated.

All other callers in extensions et al iterate over the array.

Bug: 67596
Change-Id: Ic917c7d87d5b316b4a2b2bde5932325ff67cf372

9 years agoUnder HHVM, measure resources for the thread, not calling process
Ori Livneh [Thu, 4 Sep 2014 23:56:20 +0000 (16:56 -0700)]
Under HHVM, measure resources for the thread, not calling process

As of <https://github.com/facebook/hhvm/commit/0f98cab>, it is possible to
call getrusage( [ int $who = 0 ] ) with $who = 2 to request resource usage
info for the current thread (RUSAGE_THERAD), rather than the calling process
(RUSAGE_SELF). (Earlier versions of HHVM return RUSAGE_SELF data unless $who
is 1.)

PHP5 code can assume that each request is handled in a dedicated subprocess,
but the same is not true of HHVM, which is multi-threaded. Therefore, to get
resource usage data for the current request context, it is necessary to ask
for RUSAGE_THREAD rather than RUSAGE_SELF.

To do this, introduce a new global function in Profiler.php: wfGetRusage().
It is defined there and not in GlobalFunctions.php so that it can be used early
in WebStart.php.

Bug: 70227
Change-Id: Ibe9598ecdfc0f6c434f8b3c7a94f06a7b2fcca23

9 years agoFix column alias in sql on ApiQueryAllUsers.php
umherirrender [Wed, 10 Sep 2014 18:41:14 +0000 (20:41 +0200)]
Fix column alias in sql on ApiQueryAllUsers.php

PostgreSQL needs explicit AS, so using the array syntax, which produce
the correct sql.

Change-Id: I9588678af955f260df628c6355bf0865f894c224

9 years agoMerge "Show the revision list immediately on "umerge" log action links"
jenkins-bot [Wed, 10 Sep 2014 18:05:50 +0000 (18:05 +0000)]
Merge "Show the revision list immediately on "umerge" log action links"

9 years agoMerge "Do deletion updates after commit."
jenkins-bot [Wed, 10 Sep 2014 17:54:54 +0000 (17:54 +0000)]
Merge "Do deletion updates after commit."

9 years agoMerge "Remove JSONContentHandler::$contentClass"
jenkins-bot [Wed, 10 Sep 2014 17:53:22 +0000 (17:53 +0000)]
Merge "Remove JSONContentHandler::$contentClass"

9 years agoDo deletion updates after commit.
daniel [Wed, 10 Sep 2014 17:40:25 +0000 (19:40 +0200)]
Do deletion updates after commit.

WikiPage::doDeleteArticleReal now triggers secondary data updates
(link tables, etc) only after the deletion proper is committed.
This is consistent with the way doEditContent applies secondary
data updates, and avoids nested transactions (e.g. by one of the
updates using a retry loop).

Change-Id: Ie4d96f77d210c9953104a0e6fb11ea8ed348c42a

9 years agoUpdate OOjs UI to v0.1.0-pre (f9c217dfa4)
James D. Forrester [Wed, 10 Sep 2014 17:25:43 +0000 (10:25 -0700)]
Update OOjs UI to v0.1.0-pre (f9c217dfa4)

New changes:
720debe PopupWidget: Toggle clipping -after- updating dimensions

Change-Id: I77f667b1eadc49096f2312a55157c070376be61e

9 years agoMerge "Ignore duplicate key errors in update-keys.sql"
jenkins-bot [Wed, 10 Sep 2014 17:20:10 +0000 (17:20 +0000)]
Merge "Ignore duplicate key errors in update-keys.sql"

9 years agoMerge "Add release notes for Iac37a2369"
jenkins-bot [Wed, 10 Sep 2014 17:04:34 +0000 (17:04 +0000)]
Merge "Add release notes for Iac37a2369"

9 years agoAdd release notes for Iac37a2369
Kunal Mehta [Wed, 10 Sep 2014 16:56:21 +0000 (09:56 -0700)]
Add release notes for Iac37a2369

Change-Id: I986448d862bd1023440ff85a912e3d7267a3579f

9 years agoAvoid a fatal error in maintenance/cleanupTitles.php
Alexandre Emsenhuber [Mon, 8 Sep 2014 18:54:53 +0000 (20:54 +0200)]
Avoid a fatal error in maintenance/cleanupTitles.php

Title::makeTitleSafe() can return null; so only call
exists() if an object was returned, and otherwise behave
the same way as if the page existed: use another name.

Change-Id: I75ea5c5b25fa5fdf6646a177a5fbccc0dbff9b47

9 years agoMerge "Merge mediawiki.legacy.upload into mediawiki.special.upload"
jenkins-bot [Wed, 10 Sep 2014 16:46:09 +0000 (16:46 +0000)]
Merge "Merge mediawiki.legacy.upload into mediawiki.special.upload"

9 years agoMerge "Added DatabaseBase::selectRowCount() method"
jenkins-bot [Wed, 10 Sep 2014 14:52:28 +0000 (14:52 +0000)]
Merge "Added DatabaseBase::selectRowCount() method"

9 years agoMerge "Fix malformed UTF-8 going to query profiler"
jenkins-bot [Wed, 10 Sep 2014 11:45:48 +0000 (11:45 +0000)]
Merge "Fix malformed UTF-8 going to query profiler"

9 years agoMerge "Maintenance: Add an easy way to access Config instances"
jenkins-bot [Wed, 10 Sep 2014 11:32:11 +0000 (11:32 +0000)]
Merge "Maintenance: Add an easy way to access Config instances"

9 years agoMerge "StatCounter: Use Config instead of globals"
jenkins-bot [Wed, 10 Sep 2014 10:07:57 +0000 (10:07 +0000)]
Merge "StatCounter: Use Config instead of globals"

9 years agoMaintenance: Add an easy way to access Config instances
Kunal Mehta [Thu, 7 Aug 2014 20:57:14 +0000 (21:57 +0100)]
Maintenance: Add an easy way to access Config instances

Change-Id: I97d50c624e988c70bb2ac0da4fc33957ce3cf524

9 years agoStatCounter: Use Config instead of globals
Kunal Mehta [Wed, 10 Sep 2014 00:18:00 +0000 (17:18 -0700)]
StatCounter: Use Config instead of globals

Change-Id: I5b2281291c907ce543e8aa0400b0bda3bf253579

9 years agoMerge "Apply vform styling to HTMLForm buttons"
jenkins-bot [Wed, 10 Sep 2014 00:05:32 +0000 (00:05 +0000)]
Merge "Apply vform styling to HTMLForm buttons"

9 years agoSpecialUpload: Use Config instead of global
Florian [Fri, 1 Aug 2014 14:56:29 +0000 (16:56 +0200)]
SpecialUpload: Use Config instead of global

Bug: 69188
Change-Id: I40f6e17aea365b88ba5c445580f445c3b03d0f31

9 years agoAdd padding to printfooter
Amir E. Aharoni [Tue, 9 Sep 2014 20:04:30 +0000 (23:04 +0300)]
Add padding to printfooter

Without padding it sticks too close to the categories
and to the article text.

Change-Id: I04cbd1daed470f33b8212f10622736fd17525ddd