lhc/web/wiklou.git
11 years agoRevert "Adding sanity check to Title::isRedirect()."
Brion VIBBER [Sun, 3 Jun 2012 11:00:54 +0000 (11:00 +0000)]
Revert "Adding sanity check to Title::isRedirect()."

This reverts commit 7d12b7b72c2060c58b6bd0759b80d985bb9431be

11 years agoAdding sanity check to Title::isRedirect().
daniel [Thu, 24 May 2012 14:42:26 +0000 (16:42 +0200)]
Adding sanity check to Title::isRedirect().

isRedirect() assumes that the LinkCache already contains
information about this title. If that is not the case, it
currently returns false, even though it just doesn't know
whether this link is a redirect.

The new check asserts the assumption that this title
is already known to the link cache.

Amend: use Exception instead of assert()

Change-Id: Id3ad2d4e140b270b1f5ca1f7af9b3320cffff5a2

11 years agoMerge "Make errors from ArticleSave hooks propagate to the interface"
Aaron Schulz [Fri, 18 May 2012 05:39:19 +0000 (05:39 +0000)]
Merge "Make errors from ArticleSave hooks propagate to the interface"

11 years agoMerge "Various fixes to Special:Mostlinked."
Aaron Schulz [Fri, 18 May 2012 05:22:55 +0000 (05:22 +0000)]
Merge "Various fixes to Special:Mostlinked."

11 years agoMerge "Document DBO_PERSISTENT in DefaultSettings.php"
Aaron Schulz [Fri, 18 May 2012 05:15:39 +0000 (05:15 +0000)]
Merge "Document DBO_PERSISTENT in DefaultSettings.php"

11 years agoMerge "exclude immovable namespaces from the namespace selector on Special:MovePage"
Aaron Schulz [Fri, 18 May 2012 05:14:18 +0000 (05:14 +0000)]
Merge "exclude immovable namespaces from the namespace selector on Special:MovePage"

11 years agoMerge "Remove extra unneeded whitespace"
Tim Starling [Fri, 18 May 2012 04:57:44 +0000 (04:57 +0000)]
Merge "Remove extra unneeded whitespace"

11 years agoMerge "[FileRepo] Use faster doQuickOperations() function for thumbnails ops."
Tim Starling [Fri, 18 May 2012 04:49:44 +0000 (04:49 +0000)]
Merge "[FileRepo] Use faster doQuickOperations() function for thumbnails ops."

11 years ago[FileBackend] Moved closeResources() call up to parent class function.
Aaron [Fri, 18 May 2012 00:21:39 +0000 (17:21 -0700)]
[FileBackend] Moved closeResources() call up to parent class function.

Change-Id: I903b40c17e8f757bc3642e24552ddd518c0ef39d

11 years agoMerge "[FileBackend] Fixed parallelize check in doQuickOperationsInternal()."
Reedy [Thu, 17 May 2012 23:48:58 +0000 (23:48 +0000)]
Merge "[FileBackend] Fixed parallelize check in doQuickOperationsInternal()."

11 years ago[FileBackend] Fixed parallelize check in doQuickOperationsInternal().
Aaron [Thu, 17 May 2012 23:17:01 +0000 (16:17 -0700)]
[FileBackend] Fixed parallelize check in doQuickOperationsInternal().

Change-Id: Ia552a5094e61f418bc3fa8958f1a4869018be536

11 years agoAt least use /*$wgDBTableOptions*/; if passed through MW
Reedy [Thu, 17 May 2012 22:27:38 +0000 (23:27 +0100)]
At least use  /*$wgDBTableOptions*/; if passed through MW

Change-Id: I7ed0ae6223d362e24121836a290a6e159d672878

11 years agoDocument DBO_PERSISTENT in DefaultSettings.php
Reedy [Thu, 17 May 2012 22:08:07 +0000 (23:08 +0100)]
Document DBO_PERSISTENT in DefaultSettings.php

Change-Id: Iee17925fdfd011218a36d5e555ce6494c27837ff

11 years ago[FileBackend] Added profiling to doQuickOperationsInternal().
Aaron [Thu, 17 May 2012 21:18:45 +0000 (14:18 -0700)]
[FileBackend] Added profiling to doQuickOperationsInternal().

Change-Id: I98ce4bdfb61bf55b5306dabf0f20427c26319c3c

11 years ago[FileBackend] A few code cleanups and some error message improvements.
Aaron [Thu, 17 May 2012 18:28:05 +0000 (11:28 -0700)]
[FileBackend] A few code cleanups and some error message improvements.

Change-Id: I75f066104b98638ca956042c4e877c0f6327509c

11 years ago[FileRepo] Use faster doQuickOperations() function for thumbnails ops.
Aaron [Wed, 16 May 2012 20:45:31 +0000 (13:45 -0700)]
[FileRepo] Use faster doQuickOperations() function for thumbnails ops.

Change-Id: I8139b7f6f8533bb0dbeddba12750ab9342b2dd82

11 years agoMerge "[FileBackend] Improved connection error handling and logging a bit for Swift."
Tim Starling [Thu, 17 May 2012 07:52:06 +0000 (07:52 +0000)]
Merge "[FileBackend] Improved connection error handling and logging a bit for Swift."

11 years agoMerge "[FileBackend] Added doQuickOperations() function for things like purging thumb...
Tim Starling [Thu, 17 May 2012 07:42:07 +0000 (07:42 +0000)]
Merge "[FileBackend] Added doQuickOperations() function for things like purging thumbnails."

11 years agoMerge "[FileBackend] Added CDN support to Swift for third-party sites."
Tim Starling [Thu, 17 May 2012 07:16:08 +0000 (07:16 +0000)]
Merge "[FileBackend] Added CDN support to Swift for third-party sites."

11 years agoMerge "[FileBackend] Made it easy to use registed file backend config in multi-write...
Tim Starling [Thu, 17 May 2012 07:08:51 +0000 (07:08 +0000)]
Merge "[FileBackend] Made it easy to use registed file backend config in multi-write backends."

11 years agoMerge "[FileBackend] Syncing from journal support."
Tim Starling [Thu, 17 May 2012 07:03:34 +0000 (07:03 +0000)]
Merge "[FileBackend] Syncing from journal support."

11 years agoTweak includes/zhtable/Makefile.py
Liangent [Sat, 12 May 2012 13:31:07 +0000 (21:31 +0800)]
Tweak includes/zhtable/Makefile.py

* Make it executable and use a more generic shebang line.
* Write ZhConversion.php to its own location directly, so it can be more
  convenient to do git checkout -b; edits; ./Makefile.py; git diff; to
  confirm changes made.
* Cosmetic text changes.

Change-Id: Ia3556e3b2cd5ee4eeaa67c4e535141576f13dc16

11 years agoMerge "Updating Release Notes about addition of getCreator and getOldestRevision...
Hashar [Thu, 17 May 2012 04:50:20 +0000 (04:50 +0000)]
Merge "Updating Release Notes about addition of getCreator and getOldestRevision methods"

11 years agoMerge "Introduced the concept of raw ResourceLoader modules"
Catrope [Thu, 17 May 2012 03:11:04 +0000 (03:11 +0000)]
Merge "Introduced the concept of raw ResourceLoader modules"

11 years ago[FileBackend] Improved connection error handling and logging a bit for Swift.
Aaron Schulz [Thu, 17 May 2012 01:51:38 +0000 (18:51 -0700)]
[FileBackend] Improved connection error handling and logging a bit for Swift.

Change-Id: I9a128bc5027cba85b1cf4992434d697215b3277f

11 years agoMerge "add since tags"
Reedy [Wed, 16 May 2012 23:48:49 +0000 (23:48 +0000)]
Merge "add since tags"

11 years ago[Upload] Added various profiling calls to upload code.
Aaron [Wed, 16 May 2012 23:44:48 +0000 (16:44 -0700)]
[Upload] Added various profiling calls to upload code.

Change-Id: Ib13be24393eee05e3af4a942a1c8cdcf590b0da9

11 years agoMerge "prop=revisions: join user table to get user name"
Aaron Schulz [Wed, 16 May 2012 22:20:49 +0000 (22:20 +0000)]
Merge "prop=revisions: join user table to get user name"

11 years agoMerge "Add DebugInfos to api result"
Aaron Schulz [Wed, 16 May 2012 22:17:17 +0000 (22:17 +0000)]
Merge "Add DebugInfos to api result"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Siebrand [Wed, 16 May 2012 21:31:28 +0000 (21:31 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Renamed new BagOStuff getBatch() function to getMulti() for consistency."
Reedy [Wed, 16 May 2012 20:17:34 +0000 (20:17 +0000)]
Merge "Renamed new BagOStuff getBatch() function to getMulti() for consistency."

11 years agoempty string test for old page_restricions entries
umherirrender [Wed, 16 May 2012 19:14:40 +0000 (21:14 +0200)]
empty string test for old page_restricions entries

some old page_restricions entries are move=:edit=,
which result in any empty string as level in the JS var
wgRestrictionEdit

Checking wgRestrictionEdit.length is than not possible

Change-Id: I250b4f9bda60361d4cd8c3139b17b299fec0a718

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 16 May 2012 18:38:16 +0000 (18:38 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6f811ac3d564cb4d114cdd03a1e4bb3fe833181c

11 years agoFixed call to setArticleBodyOnly() on wrong object type.
Aaron [Wed, 16 May 2012 18:15:00 +0000 (11:15 -0700)]
Fixed call to setArticleBodyOnly() on wrong object type.

Change-Id: I492bbdb41aa849a86b162c7cc659dde391874454

11 years ago[FileBackend] Added doQuickOperations() function for things like purging thumbnails.
Aaron [Wed, 16 May 2012 00:42:20 +0000 (17:42 -0700)]
[FileBackend] Added doQuickOperations() function for things like purging thumbnails.

* doQuickOperations() lets us do things like purge thumbnails as fast as possible.
  Stat calls, SHA1 checks, and RTTs in general are avoided. It also avoids the
  slowness of lazy population of thumbnail SHA1s in Swift (for those made by rewrite.py).
* Removed supportedOperations() to avoid the extra complexity.
* Made a few variable type and exception documentation cleanups.
* Cleaned up unit test file removal a bit and made some functions private.

Change-Id: I6922368c6af7752a6927d96402519132203108a1

11 years agoadd since tags
jeroendedauw [Wed, 16 May 2012 16:25:30 +0000 (18:25 +0200)]
add since tags

Change-Id: I4601600f3d0de79c34f5a1a4074384b27f57b005

11 years agoprop=revisions: join user table to get user name
umherirrender [Wed, 16 May 2012 14:38:40 +0000 (16:38 +0200)]
prop=revisions: join user table to get user name

this avoid a lazy load of the user name for each row

Change-Id: I5d8983476e03cc2f6dad074577402f5255080838

11 years agoMerge "Add includes/zhtable/.gitignore to avoid data files to be committed."
Reedy [Wed, 16 May 2012 02:10:29 +0000 (02:10 +0000)]
Merge "Add includes/zhtable/.gitignore to avoid data files to be committed."

11 years agoMerge "[FileBackend] Avoid infinite loops when populating missing metadata in Swift."
Reedy [Wed, 16 May 2012 01:51:34 +0000 (01:51 +0000)]
Merge "[FileBackend] Avoid infinite loops when populating missing metadata in Swift."

11 years agoRevert "Added RandomRootPage extension ( bug 16655 )"
Reedy [Wed, 16 May 2012 00:50:07 +0000 (00:50 +0000)]
Revert "Added RandomRootPage extension ( bug 16655 )"

This reverts commit d5bfa3bff2be3b29abb02d9619aa8e3cbd2954ac

11 years agoAdded RandomRootPage extension ( bug 16655 )
Reedy [Wed, 16 May 2012 00:46:48 +0000 (01:46 +0100)]
Added RandomRootPage extension ( bug 16655 )

Change-Id: Ib81dd7aa301680272e3e51c5709d04c4265a4371

11 years agoIntroduced the concept of raw ResourceLoader modules
Max Semenik [Fri, 11 May 2012 19:16:29 +0000 (23:16 +0400)]
Introduced the concept of raw ResourceLoader modules

This is needed for mobile scripts that are supposed to work on dumb
devices and as such can't rely on client-side RL, but still can take
advantage of server-side minification and concatenation.

Patchset 2: Allow loading raw modules with &raw=true appended to URL.

Change-Id: I9410ffbf6633075e07bd06b10a98a4d12d9b6106

11 years ago[FileBackend] Avoid infinite loops when populating missing metadata in Swift.
Aaron [Tue, 15 May 2012 20:05:46 +0000 (13:05 -0700)]
[FileBackend] Avoid infinite loops when populating missing metadata in Swift.

Change-Id: Ief13048256ee11caf3494d934eb5267f5eb71e8b

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 15 May 2012 19:56:40 +0000 (19:56 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5301759ec55c626bacd552f31f27411f0ec3aab7

11 years agoMerge "[IP] Added an IP::prettifyIP() function for displaying IPs."
Reedy [Tue, 15 May 2012 19:10:51 +0000 (19:10 +0000)]
Merge "[IP] Added an IP::prettifyIP() function for displaying IPs."

11 years agoUpdating Release Notes about addition of getCreator and getOldestRevision methods
Kaldari [Tue, 15 May 2012 17:50:23 +0000 (10:50 -0700)]
Updating Release Notes about addition of getCreator and getOldestRevision methods

Change-Id: I2cda54984c6cc652e868608d941be704cba3dae6

11 years ago(bug 36851) Update autonym for 'bpy'.
Siebrand Mazeland [Tue, 15 May 2012 17:11:48 +0000 (19:11 +0200)]
(bug 36851) Update autonym for 'bpy'.

To ÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎé ÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎéÎõÎé as mentioned
in https://en.wikipedia.org/wiki/Bishnupriya_Manipuri_language.

Change-Id: Iac949eccceb4a9dc77deb09483fb9209be0050be

11 years agoMerge "Various fixes to Special:Mostcategories."
Aaron Schulz [Tue, 15 May 2012 09:16:59 +0000 (09:16 +0000)]
Merge "Various fixes to Special:Mostcategories."

11 years agoRenamed new BagOStuff getBatch() function to getMulti() for consistency.
Aaron Schulz [Tue, 15 May 2012 08:48:22 +0000 (01:48 -0700)]
Renamed new BagOStuff getBatch() function to getMulti() for consistency.

Change-Id: Icfe673919f65192565aa114c165c90d97d33785a

11 years agoMerge "Don't log HttpError"
Aaron Schulz [Tue, 15 May 2012 08:45:03 +0000 (08:45 +0000)]
Merge "Don't log HttpError"

11 years agoMerge "Minor PECL client fixes"
Aaron Schulz [Tue, 15 May 2012 08:38:54 +0000 (08:38 +0000)]
Merge "Minor PECL client fixes"

11 years agoDon't log HttpError
Tim Starling [Tue, 15 May 2012 04:19:32 +0000 (14:19 +1000)]
Don't log HttpError

Fix for r97314: don't log HttpError exceptions to the exception log channel. Do
this by overriding MWException::report() rather than
MWException::reportHTML(), same as every other child class in
Exception.php.

Change-Id: I3fb2b0ca9b0e7c67c210078d1fd90e1430be39df

11 years agoMinor PECL client fixes
Tim Starling [Tue, 15 May 2012 03:34:24 +0000 (13:34 +1000)]
Minor PECL client fixes

* Fixed the check for igbinary presence. It's not enough for the
  extension to be loaded, the memcached extension also needs to be
  compiled with --enable-memcached-igbinary.
* When delete() is attempted on a key that doesn't exist, return true,
  as in the other BagOStuff implementations.

Change-Id: I298952f4a9925d860fa5673f632d073b1f20aa47

11 years agoMerge "Reduced contention slam potential in User::invalidateCache()."
Tim Starling [Tue, 15 May 2012 01:37:02 +0000 (01:37 +0000)]
Merge "Reduced contention slam potential in User::invalidateCache()."

11 years ago[FileBackend] Removed likely surperflous memcached retry code.
Aaron [Tue, 15 May 2012 01:26:56 +0000 (18:26 -0700)]
[FileBackend] Removed likely surperflous memcached retry code.

Change-Id: I934cd658d14c051f99f72d7e37e12f8646e59458

11 years agoMerge "Add/update function level parameter documentation"
Aaron Schulz [Tue, 15 May 2012 01:09:37 +0000 (01:09 +0000)]
Merge "Add/update function level parameter documentation"

11 years agoMerge "Implemented a wrapper for the memcached PECL client"
Aaron Schulz [Tue, 15 May 2012 01:07:05 +0000 (01:07 +0000)]
Merge "Implemented a wrapper for the memcached PECL client"

11 years agoMerge "Cosmetic change: add a new line after a section title."
Reedy [Tue, 15 May 2012 01:00:05 +0000 (01:00 +0000)]
Merge "Cosmetic change: add a new line after a section title."

11 years agoImplemented a wrapper for the memcached PECL client
Tim Starling [Fri, 11 May 2012 05:45:23 +0000 (15:45 +1000)]
Implemented a wrapper for the memcached PECL client

* Introduced a common base class for the two memcached clients, called
  MemcachedBagOStuff.
* Moved the expiry time normalisation from MemcachedClient.php to
  MemcachedBagOStuff since libmemcached needs the same workaround.

Change-Id: I507d4ec5a7fd863ae64a94f2c453981f9f03746c

11 years agoAdd/update function level parameter documentation
Reedy [Fri, 11 May 2012 19:17:39 +0000 (20:17 +0100)]
Add/update function level parameter documentation

Change-Id: I148b84e3b81c29c63585f3bf524fc445fd7683a7

11 years agoMerge "Added missing GPLv2 headers in some places."
Reedy [Mon, 14 May 2012 23:38:10 +0000 (23:38 +0000)]
Merge "Added missing GPLv2 headers in some places."

11 years ago[FileBackend] Added CDN support to Swift for third-party sites.
Aaron [Fri, 11 May 2012 00:41:48 +0000 (17:41 -0700)]
[FileBackend] Added CDN support to Swift for third-party sites.

Change-Id: I220ab8cf8fd97d3a080b8dcc8f010d97fcc09671

11 years agoMerge "Adding NamespaceIsMovable hook to isMovable in MWNamespace, much like done...
Aaron Schulz [Mon, 14 May 2012 22:23:46 +0000 (22:23 +0000)]
Merge "Adding NamespaceIsMovable hook to isMovable in MWNamespace, much like done in Title::isMovable."

11 years agoMerge "Generalizing LinksUpdate to allow extensions to add arbitrary update handlers."
Aaron Schulz [Mon, 14 May 2012 22:20:04 +0000 (22:20 +0000)]
Merge "Generalizing LinksUpdate to allow extensions to add arbitrary update handlers."

11 years agoMerge "GROUP BY and ORDER BY supports arrays in Database class"
Aaron Schulz [Mon, 14 May 2012 22:17:00 +0000 (22:17 +0000)]
Merge "GROUP BY and ORDER BY supports arrays in Database class"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 14 May 2012 19:11:57 +0000 (19:11 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ibcf87687d3cca6f95bb1bc0d040b150f9df094da

11 years agoAdded missing GPLv2 headers in some places.
Alexandre Emsenhuber [Mon, 14 May 2012 17:59:58 +0000 (19:59 +0200)]
Added missing GPLv2 headers in some places.

Also made file/class documentation more consistent.

Change-Id: Iaebd4e253ff3b35b568e9b394231a5691445ac95

11 years agoCosmetic change: add a new line after a section title.
Liangent [Mon, 14 May 2012 16:32:42 +0000 (00:32 +0800)]
Cosmetic change: add a new line after a section title.

Change-Id: I3e0557e5a1e4e69f795fcf4992b2ce64bbb70e59

11 years agoMerge "Fix typo in comment"
Tim Starling [Mon, 14 May 2012 07:25:13 +0000 (07:25 +0000)]
Merge "Fix typo in comment"

11 years agoFix typo in comment
Tim Starling [Mon, 14 May 2012 07:23:47 +0000 (17:23 +1000)]
Fix typo in comment

Change-Id: I67d040cb9e4ed450b5487fcc4e5b4cdf857b8552

11 years agoMerge "[FileBackend] Added support for concurrent file write operations."
Tim Starling [Mon, 14 May 2012 07:23:29 +0000 (07:23 +0000)]
Merge "[FileBackend] Added support for concurrent file write operations."

11 years agoMerge "Use local context to get messages and time formatting methods of Language...
Nikerabbit [Mon, 14 May 2012 06:28:20 +0000 (06:28 +0000)]
Merge "Use local context to get messages and time formatting methods of Language class"

11 years agoMake the private-logs-UDP code path in saveContent() also return $newId
Catrope [Sun, 13 May 2012 21:40:15 +0000 (14:40 -0700)]
Make the private-logs-UDP code path in saveContent() also return $newId

This was an oversight in a69fb4827409786203ee6f4befc5aa4009d13ef8 which
changed saveContent() (and, by extension, addEntry()) to return a log_id
rather than a boolean.

Also update the documentation comments to reflect this, and remove a
resolved TODO

Change-Id: I8fe269f452f8c8d4fa0318c120b676ac10efebae

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 13 May 2012 19:31:49 +0000 (19:31 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I3fe8abcda6a2741980c36b90aaf9a1ae28ee8ad2

11 years agoGeneralizing LinksUpdate to allow extensions to add arbitrary update handlers.
daniel [Tue, 8 May 2012 15:09:30 +0000 (17:09 +0200)]
Generalizing LinksUpdate to allow extensions to add arbitrary update handlers.

This supercedes I6d03bf2a, using better names for the new classes and
incorporating the changes requested by Aaron.

This change introduces the base class SecondaryDataUpdate to be used for any
updates that need to be applied when a page is changed or deleted. Until now,
this was done by the LinksUpdate class for updates and WikiPage::doDeletionUpdates
upon deletion. This patch uses a list of SecondaryDataUpdates in both cases.

This allows extensions (e.g. via the ContentHandler facility, once that is in) to
easily specify what needs to be done when a page is updated or deleted in order to
keep any secondary data stores (such as link tables) in sync.

Note that limited transactional logic is also introduced, so SecondaryDataUpdate
can be implemented to only commit their changes if all updates were performed
sucessfully.

Patch Set 2: fixing some coding style issues mentioned by Nikerabbit.

Patch Set 4: some stuff I kept from the old LinksUpdate class needs cleanup,
             but might break extensions when changed. Marking as todo for now.

Patch Set 5: fixed misnamed member in LinksDeletionUpdate (thanks Aaron).

Change-Id: Ibe3e88fadd8c1d4063cf13bb6972f2a23569a73f

11 years agoMerge "Introducing LinksUpdateTest."
Aaron Schulz [Sun, 13 May 2012 17:24:34 +0000 (17:24 +0000)]
Merge "Introducing LinksUpdateTest."

11 years agoIntroducing LinksUpdateTest.
daniel [Thu, 10 May 2012 20:56:34 +0000 (22:56 +0200)]
Introducing LinksUpdateTest.

This test case is intended to test the updating of various links
tables using a LinksUpdate object, based on the information in
a ParserOutput object.

Patch set 3: Suggestions by Aaron:
             factored assertSelect() out into MediaWikiTestCase.
             Force sorting of result set under testing.

Change-Id: I2d01e67ee7396080a04e5dff637aca0dc159c65d

11 years agoAdd DebugInfos to api result
umherirrender [Sun, 13 May 2012 09:20:04 +0000 (11:20 +0200)]
Add DebugInfos to api result

This allow to get the queries of the api due the same api request,
when setting $wgDebugToolbar = true, that acts like the inline script
added to index.php

Change-Id: I7c121822827137ba098d95a54ec90f824e0ddf01

11 years agoFix qunit failure when run from https://intergration..
Timo Tijhof [Sat, 12 May 2012 23:14:48 +0000 (01:14 +0200)]
Fix qunit failure when run from  https://intergration..

Change-Id: Ibc42bb34aae4af1fc472ac1f02056842d6a23f88

11 years agoAllow custom teardown/setup per module through Qunit.newMwEnvironment
Timo Tijhof [Sat, 12 May 2012 22:37:30 +0000 (00:37 +0200)]
Allow custom teardown/setup per module through Qunit.newMwEnvironment

- Instead of having newMwEnvironment only create an object with
  setup() and teardown() that is passed to module() which uses them.

  Also allow a module test to pass additional setup/teardown to run.
  Otherwise one would have to extend newMwEnvironment, this is
  simpler.

- Also added a few unit tests of the test runner's newMwEnvironment
  method itself. (also serves as document/example for how to use it)

- This changes the signature of QUnit.newMwEnvironment. Was only
  used in 2 places in core. Adding release notes just in case.

- Needed to fix a unit test breakage in mw.Uri

Change-Id: I2c17f4a309208276ab7bd2420b720c0d8e4bf328

11 years agoGROUP BY and ORDER BY supports arrays in Database class
umherirrender [Sat, 12 May 2012 22:06:48 +0000 (00:06 +0200)]
GROUP BY and ORDER BY supports arrays in Database class

Change-Id: Ib431b07ffa2ce6843e21536de2ff19c648e0a595

11 years agoRemove extra unneeded whitespace
robin [Sat, 12 May 2012 21:25:35 +0000 (23:25 +0200)]
Remove extra unneeded whitespace

This whitespaces causes an extra empty paragraph between text and transcluding a special page.
When a heading precedes a transcluded special page, there is no difference and it's fine with or without this whitespace.

See for example http://incubator.wikimedia.org/w/index.php?title=Incubator:Sandbox&oldid=822299

Change-Id: I6b06006d921368619d3969660c244176344e8aff

11 years agoUse local context to get messages and time formatting methods of Language class
Alexandre Emsenhuber [Sat, 12 May 2012 21:26:47 +0000 (23:26 +0200)]
Use local context to get messages and time formatting methods of Language class

Also pass the context to the LogFormatter instance.

Change-Id: I30d88822d8ede5c138dd5403a998dd722f950bbe

11 years agoAdded missing GPLv2 headers in some places.
Alexandre Emsenhuber [Sat, 12 May 2012 20:33:02 +0000 (22:33 +0200)]
Added missing GPLv2 headers in some places.

Also made file/class documentation more consistent.

Change-Id: I0db3461139284edcb6ac02923eb83d54e6756ffb

11 years agoMerge "Add maxresults to list=querypage"
Aaron Schulz [Sat, 12 May 2012 17:13:35 +0000 (17:13 +0000)]
Merge "Add maxresults to list=querypage"

11 years agoMerge "ApiPageSet::populateFromTitles can work with Titles"
Aaron Schulz [Sat, 12 May 2012 17:13:03 +0000 (17:13 +0000)]
Merge "ApiPageSet::populateFromTitles can work with Titles"

11 years agoMerge "set tidy = true for action=purge&forcelinkupdate="
Aaron Schulz [Sat, 12 May 2012 17:09:08 +0000 (17:09 +0000)]
Merge "set tidy = true for action=purge&forcelinkupdate="

11 years agoMerge "Update Chinese conversion table: 海淀山後"
Siebrand [Sat, 12 May 2012 16:27:43 +0000 (16:27 +0000)]
Merge "Update Chinese conversion table: 海淀山後"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 12 May 2012 16:21:11 +0000 (16:21 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib40693a628c4ff0d7dab68c37af49e91e9c3583d

11 years agoAdd maxresults to list=querypage
umherirrender [Sat, 12 May 2012 15:11:47 +0000 (17:11 +0200)]
Add maxresults to list=querypage

Change-Id: I96e12428305d86c623e810d58f3f3173906f42e1

11 years agoApiPageSet::populateFromTitles can work with Titles
umherirrender [Sat, 12 May 2012 15:02:53 +0000 (17:02 +0200)]
ApiPageSet::populateFromTitles can work with Titles

Change-Id: I492c350cbb487c1a35bc96c7bcf5f0af9a9d530c

11 years agoRemove mixed script messages.
Siebrand Mazeland [Sat, 12 May 2012 14:56:44 +0000 (16:56 +0200)]
Remove mixed script messages.

Were introduced in the past months. The "nan" localisation should be in
Lantin script.

Change-Id: Id8c870314537ed39faf23bc1f7065846a691441c

11 years agoset tidy = true for action=purge&forcelinkupdate=
umherirrender [Sat, 12 May 2012 13:56:31 +0000 (15:56 +0200)]
set tidy = true for action=purge&forcelinkupdate=

Change-Id: Ibf17c312193629b64c3d5184b8fb26387862dd0d

11 years agoUpdate Chinese conversion table: 海淀山後
Liangent [Sat, 12 May 2012 13:48:58 +0000 (21:48 +0800)]
Update Chinese conversion table: 海淀山後

Change-Id: Iae9c711ff66a2694c5f1e120fd84e602ca7ceb21

11 years agoAdd includes/zhtable/.gitignore to avoid data files to be committed.
Liangent [Sat, 12 May 2012 13:15:00 +0000 (21:15 +0800)]
Add includes/zhtable/.gitignore to avoid data files to be committed.

Change-Id: I7ac9cd01d4eac5357278e0fd50d7d728d3107def

11 years agoMerge "Add username as parameter for gender support"
Aaron Schulz [Sat, 12 May 2012 01:41:26 +0000 (01:41 +0000)]
Merge "Add username as parameter for gender support"

11 years agoAdd username as parameter for gender support
robin [Sat, 12 May 2012 01:24:10 +0000 (03:24 +0200)]
Add username as parameter for gender support

Change-Id: I66ec154e6d62172321f983f6898fa074d53e0e23

11 years agoMerge "Localisation updates from http://translatewiki.net."
Reedy [Fri, 11 May 2012 23:19:22 +0000 (23:19 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Integrating mobile device detection class into MW core"
Reedy [Fri, 11 May 2012 22:50:35 +0000 (22:50 +0000)]
Merge "Integrating mobile device detection class into MW core"

11 years agoMerge "add Interwiki::selectFields"
Aaron Schulz [Fri, 11 May 2012 22:33:58 +0000 (22:33 +0000)]
Merge "add Interwiki::selectFields"