lhc/web/wiklou.git
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 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 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

10 years agoUpdate docs and declare visibility on class props
Siebrand Mazeland [Fri, 4 Oct 2013 13:43:09 +0000 (15:43 +0200)]
Update docs and declare visibility on class props

Change-Id: Ib0f02202d075d4a56dc4e37b08d7ac9399e8c86c

10 years agoMerge "Renamed "Your name" to "Your username" to match with the Media wiki login...
jenkins-bot [Fri, 1 Nov 2013 10:41:19 +0000 (10:41 +0000)]
Merge "Renamed "Your name" to "Your username" to match with the Media wiki login page"

10 years agoMerge "SkinTemplate: Move debug HTML above bottomscripts"
jenkins-bot [Thu, 31 Oct 2013 21:33:40 +0000 (21:33 +0000)]
Merge "SkinTemplate: Move debug HTML above bottomscripts"

10 years agoMerge "mediawiki.inspect#dumpTable: fix broken FF workaround"
jenkins-bot [Thu, 31 Oct 2013 21:09:18 +0000 (21:09 +0000)]
Merge "mediawiki.inspect#dumpTable: fix broken FF workaround"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 31 Oct 2013 20:17:20 +0000 (20:17 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I38c68bc52196182ebc0fe0ad538cb93b16c37300

10 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Thu, 31 Oct 2013 20:01:42 +0000 (20:01 +0000)]
Merge "Sync up with Parsoid parserTests."

10 years agoFix Oracle installation SQL
Freakolowsky [Fri, 23 Aug 2013 08:48:59 +0000 (10:48 +0200)]
Fix Oracle installation SQL

The starting and minimal values of sequences on Oracle are both '1' by
default. We want a user with id of 0 (used for anonymous edits), so
these were both set to '0' and the user was inserted with its id being
the next value in the sequence.

However, due to some low level caching settings you can miss the first
value in a sequence. It makes no difference to other sequences, but it
does with this one, as it must be 0 to maintain foreign key validity.
Therefore let's just set the sequence to default starting value of '1'
and insert the user with hardcoded id=0.

Bug: 38411
Change-Id: Ic9a17b92d6052fbdc24dd431726e4d82dbf48034

10 years agoMerge "Add clarification to wfUseMW() phpdoc"
jenkins-bot [Thu, 31 Oct 2013 19:21:38 +0000 (19:21 +0000)]
Merge "Add clarification to wfUseMW() phpdoc"

10 years agomediawiki.inspect#dumpTable: fix broken FF workaround
Ori Livneh [Thu, 31 Oct 2013 16:47:15 +0000 (09:47 -0700)]
mediawiki.inspect#dumpTable: fix broken FF workaround

In Ib45487d10, we changed to invocation of console#table from
'console.table( data )' to 'console.table.call( console.table, data )'
to force an exception on Firefox, which doesn't define console.table
but doesn't complain if you try to invoke it. It should have been
'console.table.call( console, data )' instead.

Change-Id: Ib2252003f29586a47efb9ec534becc6396936b34

10 years agoSync up with Parsoid parserTests.
Subramanya Sastry [Thu, 31 Oct 2013 16:49:04 +0000 (11:49 -0500)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 325c6e5a47a6b3bf7a26778e534c8acabaca0058

Change-Id: I5c7cf9186197c49de449784265ffd8b0bb2bbb2c

10 years agoUse HTTPS for the link in FAQ
Alexandre Emsenhuber [Thu, 31 Oct 2013 11:25:49 +0000 (12:25 +0100)]
Use HTTPS for the link in FAQ

For consistency with the ones in README.

Change-Id: Ia82694286a9f0797b3839cc0f5cbfefbf4e37461

10 years agoMerge "exception: Use MWExceptionHandler::logException in more places"
jenkins-bot [Thu, 31 Oct 2013 13:58:30 +0000 (13:58 +0000)]
Merge "exception: Use MWExceptionHandler::logException in more places"

10 years agoMerge "use getOldid and getNewid methods in DifferenceEngineTest"
jenkins-bot [Thu, 31 Oct 2013 10:48:34 +0000 (10:48 +0000)]
Merge "use getOldid and getNewid methods in DifferenceEngineTest"

10 years agoAvoid strip markes on transcluded Special:RecentChanges[Linked]
umherirrender [Fri, 25 Oct 2013 16:44:27 +0000 (18:44 +0200)]
Avoid strip markes on transcluded Special:RecentChanges[Linked]

OutputPage::wrapWikiText results in a Parser::parse call, which should
not be done recursively. Using workaround from the warning under
https://www.mediawiki.org?oldid=807703#OutputPage-.3EaddWikiText.28.29

This only was happen, when the special page has no result or for
RecentChangesLinked a bad title was given.

Bug: 56167
Change-Id: I334bc6c36800af80e311301d46c7d48be1b6a055

10 years agoMerge "More 1.22 -> 1.23"
jenkins-bot [Thu, 31 Oct 2013 10:41:00 +0000 (10:41 +0000)]
Merge "More 1.22 -> 1.23"

10 years agoPut get diff body cache key into own function
aude [Sun, 27 Oct 2013 02:47:28 +0000 (02:47 +0000)]
Put get diff body cache key into own function

This allows derivative DifferenceEngine classes to
generate cache keys in a different format, as appropriate.

(e.g. for Wikibase, allow diffs to be cached by language
and fully localized)

Bug: 55667
Change-Id: I22bf4e70f86da832a86baf6790ad4a403fce4bf1

10 years agouse getOldid and getNewid methods in DifferenceEngineTest
aude [Thu, 31 Oct 2013 10:22:02 +0000 (11:22 +0100)]
use getOldid and getNewid methods in DifferenceEngineTest

- instead of direct variable access.

Change-Id: I019017ca1b4f3c2a511e703bc65b93a8ce47fae9

10 years agoMore 1.22 -> 1.23
umherirrender [Thu, 31 Oct 2013 10:17:07 +0000 (11:17 +0100)]
More 1.22 -> 1.23

Follow-Up: I1c2d7bdd1d861ace3f7e7bd8f8f0047c31194446
Change-Id: Icc3d612d401c7c2a91678a4a5dc4a228383452e6

10 years agoMerge "Add .sass-cache to .gitignore"
jenkins-bot [Thu, 31 Oct 2013 07:56:16 +0000 (07:56 +0000)]
Merge "Add .sass-cache to .gitignore"

10 years agoMerge "Add method for inspecting module dependency relations"
jenkins-bot [Thu, 31 Oct 2013 04:44:34 +0000 (04:44 +0000)]
Merge "Add method for inspecting module dependency relations"

10 years agoMerge "Accessibility: Make the collapsible sidebar screen reader friendly"
jenkins-bot [Thu, 31 Oct 2013 00:29:44 +0000 (00:29 +0000)]
Merge "Accessibility: Make the collapsible sidebar screen reader friendly"

10 years agoMerge "mw.loader.store: temporarily allow users to opt-in via cookie"
jenkins-bot [Wed, 30 Oct 2013 23:26:15 +0000 (23:26 +0000)]
Merge "mw.loader.store: temporarily allow users to opt-in via cookie"

10 years agoMerge "Adding description how to use Special:Redirect"
Adamw [Wed, 30 Oct 2013 22:56:18 +0000 (22:56 +0000)]
Merge "Adding description how to use Special:Redirect"

10 years agomw.loader.store: temporarily allow users to opt-in via cookie
Ori Livneh [Wed, 30 Oct 2013 22:23:48 +0000 (15:23 -0700)]
mw.loader.store: temporarily allow users to opt-in via cookie

To facilitate mw.loader.store testing on production wikis, it would be good to
allow developers and JavaScript-savvy users to opt-in for mw.loader.store
testing by manually setting a cookie in their browser. With this patch in
place, this would be possible to do by executing the following statement in a
debug console:

    $.cookie( 'ResourceLoaderStorageEnabled', 1, { expires: 7, path: '/' } );

This will be removed from mediawiki.js (long) before the 1.23 release.

Bug: 56397
Change-Id: I51cfd563734a3aeed3667fbb19bf3be40fabbb6b

10 years agoexception: Use MWExceptionHandler::logException in more places
Timo Tijhof [Fri, 11 Oct 2013 19:22:40 +0000 (21:22 +0200)]
exception: Use MWExceptionHandler::logException in more places

Most code replaced wasn't exactly like what logException does
but most probably should be.

A few implementation differences with the code it replaced in
various places:

* MWException if-guards
  Was there only to prevent a crash because getLogMessage is an
  MWException method. Now that logException is generic, it seems
  sensible to start logging those as well (follows-up a97f3550a0).

* Exception::getTraceAsString
  Now using MWExceptionHandler::formatRedactedTrace instead.
  It wasn't using it because that method didn't exist yet.

Notes:

* DatabaseError::getLogMessage
  Removed as this override was no longer doing anything (we're using
  MWExceptionHandler::getLogMessage instead of $e->getLogMessage).
  Introduced isLoggable() to take over the responsibility of indicating
  when an exception should not be logged (follows-up bcb9f9e1c0d).

* DeferredUpdates and Wiki.php
  Both specificy MWException. Though ApiMain intends to catch all
  and only logged MWException because it couldn't otherwise, these
  actually only catch MWException (as opposed to catching all and
  having an if-statement inside). Left those as-is to have them
  continue propagate other exceptions.

* JobQueueFederated and JobQueueGroup
  All specify to catch JobQueueError only.
  Not sure whether it should catch other exceptions. It now can,
  but I'll leave it as is in case it intends to have those be
  handled elsewhere (or fatal).

Change-Id: I4578a0fe7d95a080f1a3b292ce7ae73a4d5fcaca

10 years agoMerge "Wrap up remaining legacy javascript (IEFixes, wikibits)"
jenkins-bot [Wed, 30 Oct 2013 22:15:32 +0000 (22:15 +0000)]
Merge "Wrap up remaining legacy javascript (IEFixes, wikibits)"

10 years agoMerge "Exception: Clean up html document for error pages"
jenkins-bot [Wed, 30 Oct 2013 21:57:43 +0000 (21:57 +0000)]
Merge "Exception: Clean up html document for error pages"

10 years agoException: Clean up html document for error pages
Timo Tijhof [Thu, 19 Sep 2013 16:22:51 +0000 (18:22 +0200)]
Exception: Clean up html document for error pages

Interface:
* Restore sitename as part of error page document title
  (follows-up 4ca9805). Moved to general Exception class as it
  is useful in general, this effectively changes the title from
  "This wiki has a problem" to "Internal error - Wikipedia".
* Added basic <style> to have it use a sans-serif font and a bit
  padding to offset it from the edge of the window.
* Output stacktrace in <pre> as-is (with linebreaks) instead of
  in a <p> with <br/>.

Clean up:
* Removed spurious "<!-- SiteSearch Google -->" comment.
* Change sitesearch radio button to not need the id/for
  attributes but simply nest them. Visual rendering and browser
  behaviour is identical.
* Renamed $text to $html since that is what it is (follows-up
  4ca9805 which reused that variable for html, it used to contain
  text).
* Remove odd linebreak from "dberr-problems" message, it was
  being output as-is in the html (html escaped, of course) and
  line breaks have no meaning inside an <h1> tag. Using a simple
  space instead. Visual rendering is identical.

Coding style:
* Using <!DOCTYPE html> instead of <!doctype html> for consistency
  with other documents we output.
* Switched a few inline #-style comments to use // instead.
* Switched a few strings from double quotes to single quotes in
  areas close to the changed code.

Change-Id: I33232d871200cbd23501c9a6c5f8a178931e135e

10 years agoMerge "vector: Restore gray search input placeholder"
jenkins-bot [Wed, 30 Oct 2013 21:33:51 +0000 (21:33 +0000)]
Merge "vector: Restore gray search input placeholder"

10 years agoVector: Remove media=screen from skins.vector.beta module
Timo Tijhof [Wed, 30 Oct 2013 20:25:31 +0000 (21:25 +0100)]
Vector: Remove media=screen from skins.vector.beta module

Follows-up 8b6ed4d

Change-Id: Iee20d5003470b794e288c0e40842696b2b6dccb0

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 30 Oct 2013 19:34:17 +0000 (19:34 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I525f42a0ea16e63b7c03c16b4cefd043dec51aeb

10 years agoRenamed "Your name" to "Your username" to match with the Media wiki login page
Tony Thomas [Wed, 30 Oct 2013 19:10:51 +0000 (19:10 +0000)]
Renamed "Your name" to "Your username" to match with the Media wiki login page

Bug: 56235
Change-Id: Id7d303932b3ddf74308e2d9f3b54e08c6b1df5eb

10 years agoMerge "Add tests for DifferenceEngine for revision loading"
jenkins-bot [Wed, 30 Oct 2013 15:52:20 +0000 (15:52 +0000)]
Merge "Add tests for DifferenceEngine for revision loading"

10 years agoAdd tests for DifferenceEngine for revision loading
aude [Tue, 29 Oct 2013 11:06:11 +0000 (11:06 +0000)]
Add tests for DifferenceEngine for revision loading

Change-Id: Ia206b396e96b52ba9ac4895aae0f2839dca6f958

10 years agoMerge "Remove linkprefix message, add $linkPrefixCharset"
jenkins-bot [Wed, 30 Oct 2013 15:12:39 +0000 (15:12 +0000)]
Merge "Remove linkprefix message, add $linkPrefixCharset"

10 years agoWrap up remaining legacy javascript (IEFixes, wikibits)
Timo Tijhof [Tue, 22 Oct 2013 22:22:39 +0000 (00:22 +0200)]
Wrap up remaining legacy javascript (IEFixes, wikibits)

IEFixes:

* Take String.prototype.hasClass off the prototype and into
  a local function.

* Removed module definition "mediawiki.legacy.IEFixes" as it
  is not used anywhere (only pollutes the startup module and
  gives a false impression that its dependencies are indeed
  properly being enforced). The file is loaded raw from
  wikibits.js if isIE6 is true.

wikibits:

* Re-ordered to group related methods together.
* Moved up wgBreakFrames so we don't waste any time running
  code if we'll break the frame anyway.
* All properties that haven't been removed to this date are now
  wrapped in mw.log.deprecate.
  - Replaced most with dummy values of the same type.
  - Kept a few ones around to make highly popular method still
    work (such as addOnloadHook).
  - Kept the importScript family of functions unwrapped for now
    as those don't have a proper replacement until users can
    create modules (bug 34958). Though we could promote these to
    mw.util or mw.loader, that would not solve anything and only
    require scripts to be changed again in the future. Can be kept
    as-is for now and is not yet formerly deprecated.
* Created a local reference to the "window" global as it is
  referenced quite often here.

Change-Id: Iab65de1a0a87abad38b834828cd838dfd1c48ba1

10 years agowfShellExec: Work around PHP 5.3 stream_select() issue
Kevin Israel [Wed, 30 Oct 2013 01:46:27 +0000 (21:46 -0400)]
wfShellExec: Work around PHP 5.3 stream_select() issue

Follows-up e53af95c9301ca092ffa1f7de022beb24d60ea52.

Bug: 56360
Change-Id: I66f2dc8a2f43236799c23f6e25bbbd0a440f4283

10 years agoMerge "mw.loader.store: do one eval per batch, rather than one per module"
jenkins-bot [Tue, 29 Oct 2013 23:55:34 +0000 (23:55 +0000)]
Merge "mw.loader.store: do one eval per batch, rather than one per module"

10 years agoRemove linkprefix message, add $linkPrefixCharset
Brad Jorsch [Wed, 23 Oct 2013 18:06:19 +0000 (14:06 -0400)]
Remove linkprefix message, add $linkPrefixCharset

The existing "linkprefix" message is unlikely to be accurately
customized by message translators (as shown by the fact that, of the 10
distinct customizations prior to Iaa7eaa44 (which made them even more
complicated), 3 were broken or entirely ineffective, 1 was half
ineffective, and 2 more seem to have included the Latin-1 Supplement by
accident) or by local wiki admins. So, like linktrail before it, let's
move it out of the system messages and into a separate language
variable.

At the same time, let's make it a simple character set (like
$wgLegalTitleChars) rather than a complicated regular expression. The
complicated regex now lives in the parser.

This also adjusts the output of the API's action=query&meta=siteinfo and
adds an accessor parallel to the linkTrail accessor to Language.

Note the following changes that are not simply extracting the existing
charset from the linkprefix message for $linkPrefixCharset:
* The En message matched all non-ASCII UTF-8 characters by matching the
  component bytes (\\x80-\\xff). The new character set is equivalent.
* Various languages were identical to En and so have no $linkPrefixCharset
  set. These are: Ary Az Ce Ga Id Ka Kiu Km Ltg Mk Ms Ne Nn Ro Roa_tara Sc Si
  Sr_ec Sr_el Tl Tt_cyrl Tt_latn Ug_arab War
* Cu, Uk, and Udm are changed to match any number of „ or « in the prefix.
* Cv tried to include "«" that was redundant to the range \\x80-\\xff
  (see En comment). This was removed.
* Diq was entirely bogus, and so was removed.
* Gu included many additional UTF-8 characters that are redundant to the
  range \\x80-\\xff (see En comment). These were removed, and the
  resulting character set is equivalent to En.
* Mt has been broken since it was introduced in r37242. The charset used is
  equivalent to the broken regex.

Bug: 56031
Change-Id: I3369851b33113fc118a1bace38f3ac310cdd9725

10 years agoMerge "Improve logging for wfShellExec() and ignore missing cgroup"
jenkins-bot [Tue, 29 Oct 2013 22:42:17 +0000 (22:42 +0000)]
Merge "Improve logging for wfShellExec() and ignore missing cgroup"

10 years agoRename wfIsHipHop() to wfIsHHVM()
Chad Horohoe [Tue, 29 Oct 2013 22:23:30 +0000 (15:23 -0700)]
Rename wfIsHipHop() to wfIsHHVM()

The former is only really used to refer to the older hphp compiler.
Now all docs pretty much exclusively are referring to HHVM and
that's the project's name going forward.

While we're here, swap HPHP_VERSION for HHVM_VERSION. Either work,
but the latter is more correct.

Only affected extension (in Git or SVN) is GWToolset, fixing in
I3a490ef.

Change-Id: I81e4ce5d14e344e67045050261f91b3c0159f222

10 years agomw.loader.store: do one eval per batch, rather than one per module
Ori Livneh [Tue, 29 Oct 2013 08:35:05 +0000 (01:35 -0700)]
mw.loader.store: do one eval per batch, rather than one per module

Concatenating module implementations and calling $.globalEval on the result is
reproducibly faster for me than calling $.globalEval for each module.

Change-Id: I70e5bcedb43cd1331720a8e5e6c52cfeabb41ab7

10 years agoMerge "Rewrite Vector's special.preferences.less with LESS nesting"
jenkins-bot [Tue, 29 Oct 2013 21:29:06 +0000 (21:29 +0000)]
Merge "Rewrite Vector's special.preferences.less with LESS nesting"

10 years agoRewrite Vector's special.preferences.less with LESS nesting
jrobson [Wed, 16 Oct 2013 18:43:23 +0000 (11:43 -0700)]
Rewrite Vector's special.preferences.less with LESS nesting

Take advantage of LESS syntax to make this file more readable.

Change-Id: I8e77cd181a0b57a74aaac7c4dd45674bc3869ff3

10 years agoMerge "Move Vector's preferences css out of screen.less"
jenkins-bot [Tue, 29 Oct 2013 21:17:03 +0000 (21:17 +0000)]
Merge "Move Vector's preferences css out of screen.less"

10 years agoMove Vector's preferences css out of screen.less
jrobson [Wed, 16 Oct 2013 17:56:34 +0000 (10:56 -0700)]
Move Vector's preferences css out of screen.less

* Move the preferences styling out of screen.less,
  no need to penalise all our users with it.
* Limited to Vector skin for time being as other skins do not play nicely
  with these styles.

Change-Id: I121b3d88945d994c9e30d96bab7548c839510276

10 years agoAdd expensive parser functions {{REVISION*:}}
umherirrender [Tue, 29 Oct 2013 21:02:59 +0000 (22:02 +0100)]
Add expensive parser functions {{REVISION*:}}

The magic words REVISIONID, REVISIONUSER and REVISIONTIMESTAMP (with
friends) now exists as parser function to fetch revision information
from another page specified as param to the parser function.

Invalid title or non-existing title will return an empty string.
Requesting revision deleted information will always return an empty
string, because this is for public audience and goes into the parser
cache.

The parser function will register a template link to get updated with
refresh jobs on edit of the remote page. This is the same way, than
the parser function pagesize is working.

When the given param is equal to the current title of the parser, the
parser function will yield the previous versions on preview and on
substitution, that includes empty strings when used on page creation,
but using the values from the current version for page view, including
viewing old revisions.

Bug: 6092
Change-Id: Ib15a4e54c65192ec3caef71fd5dcb93fb6fc444e

10 years agoMerge "Add language handling to imageinfo/extmetadata API"
jenkins-bot [Tue, 29 Oct 2013 18:33:32 +0000 (18:33 +0000)]
Merge "Add language handling to imageinfo/extmetadata API"

10 years agoMerge "Add extmetadata to the ForeignAPIFile iiprops"
jenkins-bot [Tue, 29 Oct 2013 18:32:53 +0000 (18:32 +0000)]
Merge "Add extmetadata to the ForeignAPIFile iiprops"

10 years agoMerge "Add "extended" file metadata to API"
jenkins-bot [Tue, 29 Oct 2013 18:29:32 +0000 (18:29 +0000)]
Merge "Add "extended" file metadata to API"

10 years agoMerge "Make FormatMetadata accept RequestContext, instead of hard coding $wgLang."
jenkins-bot [Tue, 29 Oct 2013 18:25:57 +0000 (18:25 +0000)]
Merge "Make FormatMetadata accept RequestContext, instead of hard coding $wgLang."

10 years agoMerge "Add an interface for getting "standard" file metadata."
jenkins-bot [Tue, 29 Oct 2013 18:23:10 +0000 (18:23 +0000)]
Merge "Add an interface for getting "standard" file metadata."

10 years agoAdd language handling to imageinfo/extmetadata API
tgr [Mon, 28 Oct 2013 18:18:05 +0000 (18:18 +0000)]
Add language handling to imageinfo/extmetadata API

Adds options to return metadata in all available languages, or in
a single selected language.

Change-Id: I78f096318904a08abd317a5ed3f74ee33d3289cb