lhc/web/wiklou.git
10 years agoMerge "Add parserTests for language converter markup."
jenkins-bot [Thu, 7 Nov 2013 16:39:56 +0000 (16:39 +0000)]
Merge "Add parserTests for language converter markup."

10 years agoAdd the full resolution of a file to the list of "Other resolutions:"
Brian Wolff [Sat, 28 Sep 2013 18:53:20 +0000 (15:53 -0300)]
Add the full resolution of a file to the list of "Other resolutions:"

There is a link below for the "Full Resolution" of the file, but I
think it is also good to also have this in with the size choices,
as the user may not realize the full resolution is not one of the
"other" resolution choices.

Additionally, some people have said it would be useful for tiff files
to have a link to a high resolution but converted to jpeg file.

See also gerrit change 86383. Bryan had a similar patch to this
on bug 31366

Change-Id: I771650017edee2f5e0240912835455f5ad62a9bb

10 years agoMerge "mw.Map: add ability to map over an existing object other than 'window'"
jenkins-bot [Thu, 7 Nov 2013 15:58:42 +0000 (15:58 +0000)]
Merge "mw.Map: add ability to map over an existing object other than 'window'"

10 years agoMerge "Add "wgRelevantUserName" from skin to mw.config"
jenkins-bot [Thu, 7 Nov 2013 15:54:29 +0000 (15:54 +0000)]
Merge "Add "wgRelevantUserName" from skin to mw.config"

10 years agoMerge "Update formatting"
jenkins-bot [Thu, 7 Nov 2013 14:30:38 +0000 (14:30 +0000)]
Merge "Update formatting"

10 years agoMySQL method to find out view + fix fatal in tests
AlephNull [Fri, 24 May 2013 15:14:40 +0000 (11:14 -0400)]
MySQL method to find out view + fix fatal in tests

We were missing a method to list out views defined in a database. This
patch adds in MysqlBase::isView() and MysqlBse::listViews().

Since listViews() cache its result in DatabaseBase::$allViews, we also
introduce a final DatabaseBase::clearViewsCache() to let us clear the
per process cache.

Finally, fixed fatal error when duplicating VIEWs in MySQL.

bug: 43571
Change-Id: I8650baa4b721fe69ea3e1d557dd76745c0c7754e

10 years agoMerge "Handle Swift JSON listings with unqualified timestamps"
jenkins-bot [Thu, 7 Nov 2013 01:55:50 +0000 (01:55 +0000)]
Merge "Handle Swift JSON listings with unqualified timestamps"

10 years agoMerge "Cache page content language in Title object"
jenkins-bot [Thu, 7 Nov 2013 01:43:00 +0000 (01:43 +0000)]
Merge "Cache page content language in Title object"

10 years agoHandle Swift JSON listings with unqualified timestamps
Aaron Schulz [Thu, 7 Nov 2013 00:55:55 +0000 (16:55 -0800)]
Handle Swift JSON listings with unqualified timestamps

* Throw errors next time invalid timestamps are encountered

Change-Id: Ie5d6c63863cacbf7dc3bc3f408b395bdce859db9

10 years agoRemove unused function
Chad Horohoe [Thu, 7 Nov 2013 00:19:38 +0000 (16:19 -0800)]
Remove unused function

Change-Id: I68ad2093c08adba2a92344c7db0737c10db9d150

10 years agoRemove unused function
Chad Horohoe [Thu, 7 Nov 2013 00:18:54 +0000 (16:18 -0800)]
Remove unused function

Change-Id: I6a1386077282cbf8faf7b35311cd886e939c76a8

10 years agoRemove unused function
Chad Horohoe [Thu, 7 Nov 2013 00:09:29 +0000 (16:09 -0800)]
Remove unused function

Change-Id: I51975357c91295f757532ff219a8db8ca939ba0c

10 years agoMerge "Catch temp container thumbnails in cleanup script"
jenkins-bot [Wed, 6 Nov 2013 21:48:16 +0000 (21:48 +0000)]
Merge "Catch temp container thumbnails in cleanup script"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 6 Nov 2013 20:48:19 +0000 (20:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I32273978338fd36bd5d5fe8d916ccf801697e1ed

10 years agoCatch temp container thumbnails in cleanup script
Aaron Schulz [Wed, 6 Nov 2013 20:47:49 +0000 (12:47 -0800)]
Catch temp container thumbnails in cleanup script

Change-Id: Iba2badac3abf08e5c4a409ccf10d831e0e9b341e

10 years agoMerge "Don't show "Send code" button when email is already confirmed on Special:Confi...
jenkins-bot [Wed, 6 Nov 2013 19:50:34 +0000 (19:50 +0000)]
Merge "Don't show "Send code" button when email is already confirmed on Special:ConfirmEmail"

10 years agoMerge "Avoid fatal in ContentHandler::getUndoContent by null content"
jenkins-bot [Wed, 6 Nov 2013 19:45:30 +0000 (19:45 +0000)]
Merge "Avoid fatal in ContentHandler::getUndoContent by null content"

10 years agoMerge "Move ManualLogEntry to RecentChange logic into own function"
jenkins-bot [Wed, 6 Nov 2013 19:24:00 +0000 (19:24 +0000)]
Merge "Move ManualLogEntry to RecentChange logic into own function"

10 years agoMerge "Change mode of non-executable files back to 0644"
jenkins-bot [Wed, 6 Nov 2013 19:06:42 +0000 (19:06 +0000)]
Merge "Change mode of non-executable files back to 0644"

10 years agoDon't show "Send code" button when email is already confirmed on Special:ConfirmEmail
Alexandre Emsenhuber [Sun, 3 Nov 2013 19:51:45 +0000 (20:51 +0100)]
Don't show "Send code" button when email is already confirmed on Special:ConfirmEmail

Also, consistently use "confirmed", rather than "authenticated", in the
Special:ConfirmEmail and Special:Preferences UI, when messaging whether
or not the user has confirmed an email address.

Bug: 56443
Change-Id: I6fca42ea4568c13bca6b10e19d17e023ed0eacca

10 years agoMerge "Add a RefreshLinks job when a template is deleted"
jenkins-bot [Wed, 6 Nov 2013 18:36:56 +0000 (18:36 +0000)]
Merge "Add a RefreshLinks job when a template is deleted"

10 years agoMerge "Update comments a bit"
jenkins-bot [Wed, 6 Nov 2013 18:00:49 +0000 (18:00 +0000)]
Merge "Update comments a bit"

10 years agoAdd a RefreshLinks job when a template is deleted
Brad Jorsch [Wed, 6 Nov 2013 17:51:23 +0000 (12:51 -0500)]
Add a RefreshLinks job when a template is deleted

When a template is deleted, all pages transcluding it need to be
reparsed so that entries for transcluding pages in the various links
tables due to the transcluded content are properly removed.

Bug: 5382
Change-Id: I838b546caa3f5887e6bd312017c1fa71d3c3463a

10 years agoUpdate comments a bit
Siebrand Mazeland [Wed, 6 Nov 2013 17:53:07 +0000 (18:53 +0100)]
Update comments a bit

Change-Id: I12992379c7d87db4145ee7090f0fdd1622d3a797

10 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Wed, 6 Nov 2013 17:42:10 +0000 (17:42 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 6 Nov 2013 17:33:55 +0000 (17:33 +0000)]
Localisation updates from translatewiki.net.

Add support for Goan Konkani (gom-latn).

Change-Id: I8e6a2d01a94e680abca5334aa5560396ac49247b

10 years agoMerge "Introduce WebRequest::getProtocol()"
jenkins-bot [Wed, 6 Nov 2013 17:23:01 +0000 (17:23 +0000)]
Merge "Introduce WebRequest::getProtocol()"

10 years agoIntroduce WebRequest::getProtocol()
Tim Starling [Wed, 21 Aug 2013 05:35:40 +0000 (15:35 +1000)]
Introduce WebRequest::getProtocol()

The use of static server detection outside of its intended use case
(i.e. at the start of DefaultSettings.php), for example in r93258, was
an architectural error. Every other bit of information about the web
request in non-setup code comes from non-static methods of WebRequest,
which allows the request object to be meaningfully replaced or
subclassed. The situation became increasingly ridiculous as more
callers of WebRequest::detectProtocol() were introduced. Two of the
callers were calling it non-statically! I suppose they had the right
idea, in a way.

Using a non-static call allows caching, which is a nice additional
benefit.

WebRequest::detectProtocolAndStdPort() was introduced in r93258 as part of
the introduction of WebRequest::detectProtocol(). It was basically
useless. Grep indicates there was only one caller in core and WMF
deployed extensions, and it is patched here.

Change-Id: Ia0a61e98fbff7a46ceaeebcb02236e5eac3df0e1

10 years agoMark Math-specific functions in core as deprecated
physikerwelt (Moritz Schubotz) [Sun, 3 Nov 2013 21:52:17 +0000 (22:52 +0100)]
Mark Math-specific functions in core as deprecated

The math specific functions in core are not needed
anymore and should be removed in future versions.
Math can access these settings in the same way as
all other extensions do.

Since Math 2.0 the rendered element has the property
"markerType" => 'nowiki'

Change-Id: I20d3714bed9da864146f133a08cf4ca90eda42ab

10 years agoMerge "Update documentation"
jenkins-bot [Wed, 6 Nov 2013 16:20:21 +0000 (16:20 +0000)]
Merge "Update documentation"

10 years agofilebackend: path normalization fixes
Aaron Schulz [Fri, 1 Nov 2013 18:40:27 +0000 (11:40 -0700)]
filebackend: path normalization fixes

* Only normalize file path parameters, not other ones
* Actually use the normalized paths instead of throwing it away for the raw paths

Change-Id: I8d36735359f804371e2beae64e5ec6f792d87b27

10 years agoMerge "Use a more standard "Forgot your password?" in userlogin-resetpassword-link"
jenkins-bot [Wed, 6 Nov 2013 14:22:10 +0000 (14:22 +0000)]
Merge "Use a more standard "Forgot your password?" in userlogin-resetpassword-link"

10 years agoTests for MWExceptionHandler::jsonSerializeException
Antoine Musso [Mon, 28 Oct 2013 16:24:50 +0000 (17:24 +0100)]
Tests for MWExceptionHandler::jsonSerializeException

MWExceptionHandler::jsonSerializeException was introduced in Iacda90fb4. This
patch add tests that verify that JSON-serialized exceptions have the right set
of keys with the right types of values.

Change-Id: I37f2a837e2d26bf9780e56edc7ec039e8e447525

10 years agoMerge "Minor doc tweak"
jenkins-bot [Wed, 6 Nov 2013 01:38:40 +0000 (01:38 +0000)]
Merge "Minor doc tweak"

10 years agoMerge "Fixed redis reconnect handling when passwords are used in luaEval()"
jenkins-bot [Wed, 6 Nov 2013 00:16:40 +0000 (00:16 +0000)]
Merge "Fixed redis reconnect handling when passwords are used in luaEval()"

10 years agoFixed redis reconnect handling when passwords are used in luaEval()
Aaron Schulz [Tue, 5 Nov 2013 22:43:49 +0000 (14:43 -0800)]
Fixed redis reconnect handling when passwords are used in luaEval()

Change-Id: Ifc974e6787d180f9b14624481ffe7c456f689254

10 years agoMerge "Added "maxPartitionsTry" option to JobQueueFederated"
jenkins-bot [Tue, 5 Nov 2013 22:27:35 +0000 (22:27 +0000)]
Merge "Added "maxPartitionsTry" option to JobQueueFederated"

10 years agoMinor doc tweak
Aaron Schulz [Tue, 5 Nov 2013 21:59:55 +0000 (13:59 -0800)]
Minor doc tweak

Change-Id: Ic028b8f11ece0c41ae0b22d9d3c91bbdff02af66

10 years agoMerge "Fixing documentation for memcached."
jenkins-bot [Tue, 5 Nov 2013 21:58:11 +0000 (21:58 +0000)]
Merge "Fixing documentation for memcached."

10 years agoFixing documentation for memcached.
kaldari [Mon, 28 Oct 2013 05:09:13 +0000 (22:09 -0700)]
Fixing documentation for memcached.

I believe that MediaWiki's memcached client does support PECL now.
Also fixing a typo.

Change-Id: Ibcf9c25d077b19de733cc79b5664437479f23a3b

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 5 Nov 2013 21:13:27 +0000 (21:13 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 5 Nov 2013 20:44:08 +0000 (20:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0cb138f59a07949a93af2e0d69e974a35cd72b19

10 years agoLog JSON-formatted exceptions to 'exception-json' log bucket
Ori Livneh [Sat, 27 Jul 2013 18:55:48 +0000 (11:55 -0700)]
Log JSON-formatted exceptions to 'exception-json' log bucket

Much of the original scope of this patch has been made redundant by other
patches, so it's nice and compact now. This patch makes MediaWiki serialize
exceptions to JSON and log them to an 'exception-json' log group.

To facilitate this, two related changes are included:

* Consolidated the code for annotating the exception with the request URL (if
  the exception was encountered while responding to a request) in a method,
  Exception->getURL.

* Removed the code path that checked for a falsey return value from
  $wgRequest->getRequestURL() and set the url to '[no URL]'. ('[no req]' is
  retained.) Nowadays getRequestURL() always returns a string (or throws an
  exception). Wikimedia's cluster doesn't have a single '[no URL]' in its log
  archives, which go back several months.

Change-Id: Iacda90fb401f6a45ed1ac1a991e0884663e6c0bf

10 years agoRelease notes & comment fix for Ib0ece5d5d
Ori Livneh [Tue, 5 Nov 2013 20:22:35 +0000 (12:22 -0800)]
Release notes & comment fix for Ib0ece5d5d

Adds release notes and fixes two inaccurate comments added in Ib0ece5d5d
("Configurable log sampling via $wgDebugLogGroups").

Change-Id: I224a0319b7432300d3cb6f4d14e61ea9d36ee228

10 years agoMerge "Configurable log sampling via $wgDebugLogGroups"
jenkins-bot [Tue, 5 Nov 2013 20:12:58 +0000 (20:12 +0000)]
Merge "Configurable log sampling via $wgDebugLogGroups"

10 years agoMerge "ApiFormatWddxTest @requires wddx_deserialize"
jenkins-bot [Tue, 5 Nov 2013 20:11:25 +0000 (20:11 +0000)]
Merge "ApiFormatWddxTest @requires wddx_deserialize"

10 years agoConfigurable log sampling via $wgDebugLogGroups
Ori Livneh [Tue, 5 Nov 2013 19:42:49 +0000 (11:42 -0800)]
Configurable log sampling via $wgDebugLogGroups

Make it possible to configure a log-group-specific sampling factor by allowing
$wgDebugLogGroups values to be associative arrays with 'destination' & 'sample'
keys.

The immediate use-case I have in mind is the memcached log, which is too
verbose to enable in production. We could sample on the receiving end, but
doing so would not help MediaWiki, which would still be on the hook for
processing and dispatching every single record.

Idea was vetted by Dr. Manhattan:

<TimStarling> I think you could have each element in $wgDebugLogGroups be an
  associative array
<TimStarling> e.g. array( 'sample' => 1000, 'target' => "$host:$port")
<TimStarling> that would allow for more features to be added to it in
  future

Change-Id: Ib0ece5d5d9c2aadef13b77ac38995b0e47ac086f

10 years agoAvoid fatal in ContentHandler::getUndoContent by null content
umherirrender [Tue, 5 Nov 2013 19:37:45 +0000 (20:37 +0100)]
Avoid fatal in ContentHandler::getUndoContent by null content

Revision::getContent can return null, which would here result in a fatal
error. Return false to indicate that this undo is not possible.

Change-Id: I6f6b4b59e86f9762f61c50dd65f81a7256c5255a

10 years agofix typo in @deprecated
umherirrender [Tue, 5 Nov 2013 18:01:26 +0000 (19:01 +0100)]
fix typo in @deprecated

Change-Id: I4a8fb12238a3c1256c8d8d5348ca84dbc2820f3a

10 years agoAdd "wgRelevantUserName" from skin to mw.config
umherirrender [Tue, 29 Oct 2013 20:49:17 +0000 (21:49 +0100)]
Add "wgRelevantUserName" from skin to mw.config

A skin can have a relevant user, then some help links in the sidebar
are shown. When a user want extend this informationen with userjs, he
has to parse the existing items or the title param of the url to get the
name of the user for which this help links are shown. Having the name as
javascript variable makes it easier to add more links in the sidebar.

Change-Id: I17a75902b6e739d5149d332b6a94a6568b79501f

10 years agoInvalid argument supplied for foreach() in FormatMetadata.php on line 1566
Reedy [Mon, 4 Nov 2013 23:04:01 +0000 (23:04 +0000)]
Invalid argument supplied for foreach() in FormatMetadata.php on line 1566

Bug: 56585
Change-Id: I5f65333cc94b66fd80fcf5abcfad7e10e4669310

10 years agoMerge "Add ability to show the time taken by update.php"
jenkins-bot [Tue, 5 Nov 2013 14:27:45 +0000 (14:27 +0000)]
Merge "Add ability to show the time taken by update.php"

10 years agoMerge "Add DROP INDEX support to DatabaseSqlite::replaceVars method"
jenkins-bot [Tue, 5 Nov 2013 14:18:01 +0000 (14:18 +0000)]
Merge "Add DROP INDEX support to DatabaseSqlite::replaceVars method"

10 years agoSplit ApiTest class into seperate module classes
addshore [Wed, 23 Oct 2013 15:36:40 +0000 (16:36 +0100)]
Split ApiTest class into seperate module classes

Also!
 - adds @covers tags

Change-Id: I6d4f98f75cd3c2a52c982ece6dd295a4bf84a6fa

10 years agoMove ManualLogEntry to RecentChange logic into own function
Kunal Mehta [Tue, 5 Nov 2013 08:02:54 +0000 (00:02 -0800)]
Move ManualLogEntry to RecentChange logic into own function

There are certain cases where extensions might want to get
a RecentChanges object without actually inserting it into
the recentchanges table.

Change-Id: I2873c648285a2918661c3650bb90e8db0e05c40c

10 years agoChange mode of non-executable files back to 0644
Alexandre Emsenhuber [Tue, 5 Nov 2013 07:13:32 +0000 (08:13 +0100)]
Change mode of non-executable files back to 0644

Change-Id: Ib9dce1eea8c34986364aabed7f1770101c72c649

10 years agoApiFormatWddxTest @requires wddx_deserialize
Tim Starling [Tue, 5 Nov 2013 06:06:23 +0000 (17:06 +1100)]
ApiFormatWddxTest @requires wddx_deserialize

Not the format module, that works fine without it, the test just fails.

Change-Id: I8135bbdbb070485bc3477fce474f36412f7547af

10 years agoAdd ability to show the time taken by update.php
mayankmadan [Sun, 3 Nov 2013 14:47:02 +0000 (20:17 +0530)]
Add ability to show the time taken by update.php

Bug: 28278

Change-Id: I42cd0da35a2ed20748374afbe1a02773cd941136

10 years agoMerge "API: Have action=parse indicate hidden categories"
jenkins-bot [Tue, 5 Nov 2013 00:57:24 +0000 (00:57 +0000)]
Merge "API: Have action=parse indicate hidden categories"

10 years agoMerge "Include server in redis lua errors"
jenkins-bot [Tue, 5 Nov 2013 00:53:14 +0000 (00:53 +0000)]
Merge "Include server in redis lua errors"

10 years agoMerge "Add expensive parser functions {{REVISION*:}}"
jenkins-bot [Mon, 4 Nov 2013 23:21:46 +0000 (23:21 +0000)]
Merge "Add expensive parser functions {{REVISION*:}}"

10 years agoInclude server in redis lua errors
Aaron Schulz [Mon, 4 Nov 2013 21:43:44 +0000 (13:43 -0800)]
Include server in redis lua errors

Change-Id: Ib8dbed08fa9d8010d496475de44f61aca31fd410

10 years agoMerge "mediawiki.user: Return a promise from getRights/getGroups"
jenkins-bot [Mon, 4 Nov 2013 20:58:53 +0000 (20:58 +0000)]
Merge "mediawiki.user: Return a promise from getRights/getGroups"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 4 Nov 2013 19:57:15 +0000 (19:57 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I1ff5e72f90c07badaf934e5a9563e088d17af132

10 years agoMerge "Added DatabaseBase::startAtomic and endAtomic"
jenkins-bot [Mon, 4 Nov 2013 18:34:29 +0000 (18:34 +0000)]
Merge "Added DatabaseBase::startAtomic and endAtomic"

10 years agoMerge "Rename wfIsHipHop() to wfIsHHVM()"
jenkins-bot [Mon, 4 Nov 2013 18:32:39 +0000 (18:32 +0000)]
Merge "Rename wfIsHipHop() to wfIsHHVM()"

10 years agoMerge "Catch all stash errors in cleanup script"
jenkins-bot [Mon, 4 Nov 2013 17:51:14 +0000 (17:51 +0000)]
Merge "Catch all stash errors in cleanup script"

10 years agoMerge "ResourcesTest: Assert no @media is used inside 'media'-specified resources"
jenkins-bot [Mon, 4 Nov 2013 17:41:24 +0000 (17:41 +0000)]
Merge "ResourcesTest: Assert no @media is used inside 'media'-specified resources"

10 years agoCatch all stash errors in cleanup script
Aaron Schulz [Mon, 4 Nov 2013 17:40:56 +0000 (09:40 -0800)]
Catch all stash errors in cleanup script

bug: 56401
Change-Id: I3dcd8728a46fdcbecbda0bdc6e3aef49e8f41ed8

10 years agoAPI: Have action=parse indicate hidden categories
Brad Jorsch [Wed, 2 Oct 2013 18:58:54 +0000 (14:58 -0400)]
API: Have action=parse indicate hidden categories

Also whether the category page exists, since we can get that basically
for free along with the 'hidden' flag.

Bug: 54884
Change-Id: I5c435f04b1b3b65c4153dea1767d48b49ed427c2

10 years agoRemove pointless pass-by-reference
Chad Horohoe [Mon, 4 Nov 2013 15:09:35 +0000 (07:09 -0800)]
Remove pointless pass-by-reference

Change-Id: I80541a627af89f4f84734014c0e211c322e87d45

10 years agoUpdate formatting
Siebrand Mazeland [Mon, 4 Nov 2013 09:29:25 +0000 (10:29 +0100)]
Update formatting

Change-Id: I5ec6257295261caab6cb2d9eb9d32ce76cae08a2

10 years agoIntroduce includes/utils directory
Tim Starling [Fri, 1 Nov 2013 06:17:45 +0000 (17:17 +1100)]
Introduce includes/utils directory

These are classes that provide facilities for use by any caller, are
independent of user interface, and have a limited set of dependencies on
the rest of MediaWiki. See the README file for a more precise
definition.

These classes cannot go in includes/libs because of a dependency on the
MediaWiki framework, such as wfDebug() or MWException, but they are
otherwise similar. I thought it would be useful to put them in their own
directory, to make them more discoverable, and as part of a general
program of reducing clutter in the base includes/ directory.

I've probably missed a few classes which could be included here, but the
following classes were considered and were rejected for now:

* Fallback: single caller only
* GitInfo: getViewers() has inappropriate dependencies
* HttpFunctions: depends on configuration, $wgTitle
* PoolCounter: depends on configuration
* CacheHelper: depends on IContextSource, wfMemc()

Also moved a couple of classes into libs/ instead, where that seemed to
be more appropriate.

Change-Id: I274cff805b7d694b728a89b764a049cd62d320fe

10 years agoMove the DeferredUpdates hierarchy to its own directory
Tim Starling [Fri, 1 Nov 2013 04:59:17 +0000 (15:59 +1100)]
Move the DeferredUpdates hierarchy to its own directory

The grouping makes at least as much sense as job/, and certainly makes
more sense than cache/. With directories named after base classes, it is
fairly easy to tell what should go where. The grouping of
DeferredUpdates, DataUpdate and CallableUpdate would surely be
uncontroversial.

The move of SearchUpdate out of search/ demonstrates the conflict between
arrangement by module versus arrangement by type, which is the most
difficult design question here. I think arrangement by type is more
consistent with e.g. the arrangement of the core root, i.e. tests/,
resources/, maintenance/, etc. where a given feature will have its files
split up into a mostly type-based hierarchy.

I also tidied up AutoLoader.php by moving includes/content to the correct
location, sorted alphabetically by subdirectory.

Verified with AutoLoaderTest.

Change-Id: Ib369411d0caca38e72978084aa57348f1b892ed0

10 years agoResourcesTest: Assert no @media is used inside 'media'-specified resources
Timo Tijhof [Wed, 30 Oct 2013 20:24:12 +0000 (21:24 +0100)]
ResourcesTest: Assert no @media is used inside 'media'-specified resources

Change-Id: I85d652da7c1713d46a5085b9fde7fb24045348be

10 years agoMerge "Vector: Set media screen on styles.less"
jenkins-bot [Sun, 3 Nov 2013 23:05:56 +0000 (23:05 +0000)]
Merge "Vector: Set media screen on styles.less"

10 years agoVector: Set media screen on styles.less
jrobson [Wed, 30 Oct 2013 16:23:49 +0000 (09:23 -0700)]
Vector: Set media screen on styles.less

This prevents the styles from overriding the print stylesheet.
Follows-up Ica0b69ad950, which removed it.

Bug: 56366
Change-Id: I3979a90f828ff808deae2f7fcc5c1dd7e83e9b67

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 3 Nov 2013 19:55:40 +0000 (19:55 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I876a124154e85c153d855ef2df596d28554b4bad

10 years agoMerge "mw.inspect: add report for mw.loader.store"
jenkins-bot [Sun, 3 Nov 2013 18:50:12 +0000 (18:50 +0000)]
Merge "mw.inspect: add report for mw.loader.store"

10 years agoRemove obtrusive styles for <q>
Bartosz Dziewoński [Fri, 11 Oct 2013 10:36:52 +0000 (12:36 +0200)]
Remove obtrusive styles for <q>

Bug: 55591
Change-Id: Ibbc89d3b97df606476e019a70621ffd055ccf0dc

10 years agomw.inspect: add report for mw.loader.store
Ori Livneh [Thu, 31 Oct 2013 16:26:40 +0000 (09:26 -0700)]
mw.inspect: add report for mw.loader.store

Adds a 'store' report to mw.inspect, which outputs:
* Whether localStorage module caching is enabled.
* Cache hit / miss counts.
* Number of items purged from the cache.
* Total size of the cache blob in localStorage.

Rather than duplicate the logic that converted a numeric byte count to a
human-readable format, I moved it to new helper function: humanSize.

Change-Id: I5b98322ba843f32e6a99829b4cf3d8fb0bc61514

10 years agoMerge "Made the revision history deletion page's radio buttons less confusing Chang...
jenkins-bot [Sun, 3 Nov 2013 10:28:18 +0000 (10:28 +0000)]
Merge "Made the revision history deletion page's radio buttons less confusing   Changed the radio button to 'Visible' and 'Hidden' from 'Yes' and 'No' and changed the respective label messages."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 2 Nov 2013 19:49:49 +0000 (19:49 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I38ceb5df39b41324a4c7cb323774b827cae5cf02

10 years agoMade the revision history deletion page's radio buttons less confusing
--replace-all [Sat, 2 Nov 2013 14:20:41 +0000 (19:50 +0530)]
Made the revision history deletion page's radio buttons less confusing

Changed the radio button to 'Visible' and 'Hidden' from 'Yes' and 'No' and
changed the respective label messages.

Bug: 56210
Change-Id: I4263e9e15241bb705b288b2bb65f9915557bf472

10 years agoMerge "Put the HTML attribute whitelist closer to HTML5"
jenkins-bot [Sat, 2 Nov 2013 14:07:07 +0000 (14:07 +0000)]
Merge "Put the HTML attribute whitelist closer to HTML5"

10 years agoMerge "HistoryBlobCurStub: correct setting name in doc comment"
jenkins-bot [Sat, 2 Nov 2013 13:59:56 +0000 (13:59 +0000)]
Merge "HistoryBlobCurStub: correct setting name in doc comment"

10 years agoMerge "Kill $wgArticle"
jenkins-bot [Sat, 2 Nov 2013 02:50:30 +0000 (02:50 +0000)]
Merge "Kill $wgArticle"

10 years agoAdd test for getRedactedTrace and reference args
Brad Jorsch [Fri, 1 Nov 2013 18:33:21 +0000 (14:33 -0400)]
Add test for getRedactedTrace and reference args

This tests the issue PleaseStand noticed when reviewing I3d570a63, where
if some function in the call stack took arguments by reference then
passing the exception to MWExceptionHandler::getRedactedTrace would
clobber those arguments.

Change-Id: Iaaba3ef2fb5eb6a338ab229201105ed4308b0692

10 years agoMerge "MWException: Cleanup exception message output"
jenkins-bot [Fri, 1 Nov 2013 23:32:29 +0000 (23:32 +0000)]
Merge "MWException: Cleanup exception message output"

10 years agoMerge "Make it possible to install extensions using Composer"
MarkAHershberger [Fri, 1 Nov 2013 21:56:53 +0000 (21:56 +0000)]
Merge "Make it possible to install extensions using Composer"

10 years agoKill $wgArticle
Chad Horohoe [Fri, 1 Nov 2013 21:13:15 +0000 (14:13 -0700)]
Kill $wgArticle

This has been deprecated since 1.18, throwing warnings for over a
year and a half now, and nothing uses it anywhere in core or deployed
extensions.

No extensions in SVN seem to have this anymore (we must've cleaned
up well), and the only affected extensions in Git are:

- BlueSpiceExtensions
- DynamicPageList (commented, so shouldn't be a worry)
- SemanticPageMaker
- TwitterCards

If you're the author of one of these extensions or are feeling like
cleaning up ancient code, please get them fixed.

Change-Id: I8f3a54c14be4b38a8b917e32ba3a832e0a7ca116

10 years agoUnify name of Czech language with CLDR
Mormegil [Fri, 1 Nov 2013 20:51:48 +0000 (21:51 +0100)]
Unify name of Czech language with CLDR

While MediaWiki core used adverbial form for the Czech language (cs)
in its Names.php, CLDR uses a noun, which is confusing when the
CLDR extension is used, as both variants can be seen in different
places, seemingly randomly.

Therefore, unified to the CLDR variant. See also
http://lists.wikimedia.org/pipermail/mediawiki-i18n/2013-October/000763.html

Change-Id: I2527373c36b2b93f5e11f2d8713f3f81125d1a90

10 years agoMerge "Add forgotten RELEASE-NOTES line"
jenkins-bot [Fri, 1 Nov 2013 19:29:52 +0000 (19:29 +0000)]
Merge "Add forgotten RELEASE-NOTES line"

10 years agoAdd forgotten RELEASE-NOTES line
Mark A. Hershberger [Fri, 1 Nov 2013 19:23:24 +0000 (15:23 -0400)]
Add forgotten RELEASE-NOTES line

Bug: 47271
Change-Id: I96ac80ab15772a4a9935f27e28905828ec95cc93

10 years agoMWException: Cleanup exception message output
Brad Jorsch [Fri, 1 Nov 2013 18:46:19 +0000 (14:46 -0400)]
MWException: Cleanup exception message output

Change I0a9e9244 lost the message when handling a non-MWException
exception, and for a long time MWException's getHTML and getText have
been missing the actual file and line where the exception was thrown.

We may as well use MWExceptionHandler::getLogMessage to fix all of
these, resulting in a more standardized exception output.

Change-Id: I8a9b4831c9c586bafe0a54516ff779cdfb008984

10 years agoMerge "redact exception traces and abstract getTrace"
jenkins-bot [Fri, 1 Nov 2013 18:36:55 +0000 (18:36 +0000)]
Merge "redact exception traces and abstract getTrace"

10 years agoDisable $wgContentHandlerUseDB during upgrade where fields don't exist.
Mark A. Hershberger [Fri, 1 Nov 2013 18:24:18 +0000 (14:24 -0400)]
Disable $wgContentHandlerUseDB during upgrade where fields don't exist.

They can cause problems if, for example, the installation has hooks
for UserSaveSettings or UserSaveOptions that try to update a user page.

Change-Id: I31078678e8939c897b1357bcb77eb2d26f806f29
Bug: 47271

10 years agoredact exception traces and abstract getTrace
Antoine Musso [Mon, 28 Oct 2013 16:56:37 +0000 (17:56 +0100)]
redact exception traces and abstract getTrace

* Partially reverts I0a9e92448 (rationale:
   http://www.gossamer-threads.com/lists/wiki/wikitech/401558)
  - wfDebugLog()'d exceptions are always unredacted
  - Other backtraces are redacted by replacing all argument values with class /
    type names.
* Adds a pair of static methods to MWExceptionHandler:
  - MWExceptionHandler::getRedactedTrace
equivalent to Exception::getTrace, but replaces each argument value
in the trace with its class or type name.
  - MWExceptionHandler::getRedactedTraceAsString
    equivalent to Exception::getTraceAsString, but with argument values
likewise redacted.
* The rename of 'formatRedactedTrace' to 'getRedactedTraceAsString' is
  justified on two grounds:
  - 'formatRedactedTrace' didn't actually take a trace object (it took an
exception).
  - 'getRedactedTraceAsString' maintains the symmetry with
    Exception::getTraceAsString.

Change-Id: I3d570a6385f96a606e1af53c50faa03b9ebacd38

10 years agoAdded DatabaseBase::startAtomic and endAtomic
Tyler Anthony Romeo [Mon, 21 Oct 2013 01:46:37 +0000 (21:46 -0400)]
Added DatabaseBase::startAtomic and endAtomic

Added new functions to ensure certain groups of statements
are atomic without having to go through the trouble of
starting a new transaction if one has already been opened.

Change-Id: I5328fb337e5544bf28ea282860ef8f81e19ac43c

10 years agoMake it possible to install extensions using Composer
jeroendedauw [Thu, 31 Oct 2013 23:37:10 +0000 (00:37 +0100)]
Make it possible to install extensions using Composer

With this change it is possible for users to create a composer.json
file in which they list the extensions they want to have installed
and then install them via Composer. They can copy composer-example.json
to get started.

Before this change there was an actual composer.json file tracked by
git, so people would get a change tracked by git if they modified it.

Surprisingly this is all that is needed to get extension installation
to work, for the extensions that already support it. Kudos to hashar
and others that already did the other required work.

With this change core no longer pretends to be a component that is
installable via composer. This never worked, and core will need to
be modified in several ways before this can work. In other words,
no working functionality is lost, and quite a lot is gained.

Example usage:

* Copy composer-example.json to composer.json.
* Run "composer require diff/diff 0.9"
* Hit Special:Version and be happy

Change-Id: Ib125bea00cd29a800c22f260e87dfe3327a0b618