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

12 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"

12 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."

12 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

12 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

12 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."

12 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."

12 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."

12 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"

12 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

12 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

12 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

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

12 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

12 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."

12 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"

12 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

12 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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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"

12 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"

12 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="

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

12 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

12 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

12 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

12 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

12 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

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

Change-Id: Iae9c711ff66a2694c5f1e120fd84e602ca7ceb21

12 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"

12 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

12 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."

12 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"

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

12 years agoMerge "Add unit test for MWNamespace::isNonincludable"
Aaron Schulz [Fri, 11 May 2012 22:32:53 +0000 (22:32 +0000)]
Merge "Add unit test for MWNamespace::isNonincludable"

12 years agoMerge "Add user talk page in newusers log to LinkBatch"
Aaron Schulz [Fri, 11 May 2012 22:31:15 +0000 (22:31 +0000)]
Merge "Add user talk page in newusers log to LinkBatch"

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

Change-Id: I399631991fc191d215aeb64eee167ce1d66f8a5e

12 years agoChanging HD threshold to 1000px per request.
Kaldari [Fri, 11 May 2012 20:36:25 +0000 (13:36 -0700)]
Changing HD threshold to 1000px per request.
Apparently iPhone and iPad use 980px width and the new layout doesn't
give enough room to the content area according to Heather.

Patchset 2: adjusting per comment
Change-Id: Ie6b0474f285366d0bfedb6393d1d6f65b55fc604

12 years agoUse local context to get messages.
Alexandre Emsenhuber [Fri, 11 May 2012 09:09:48 +0000 (11:09 +0200)]
Use local context to get messages.

Also added "false, false" to Language::time() and Language::date() calls in Special:Lockdb, this is to have the date using the default format and not in the format of the user locking the database.

Change-Id: I9309022b005fcc7d31350242b8989ca7eabf69a8

12 years agoadd Interwiki::selectFields
umherirrender [Fri, 11 May 2012 20:16:19 +0000 (22:16 +0200)]
add Interwiki::selectFields

to avoid * inside select

Change-Id: I9d0ac631d9389744f68d744fa1d3fa3e3866a956

12 years agoAdd user talk page in newusers log to LinkBatch
umherirrender [Fri, 11 May 2012 19:27:40 +0000 (21:27 +0200)]
Add user talk page in newusers log to LinkBatch

Using NewUsersLogFormatter::getPreloadTitles for that

Change-Id: Ib3bede90e33c3d240aad5950247d52d732d8876b

12 years agoAdd unit test for MWNamespace::isNonincludable
umherirrender [Fri, 11 May 2012 17:52:34 +0000 (19:52 +0200)]
Add unit test for MWNamespace::isNonincludable

rename MWNamespace::isNonincludableNamespace
to MWNamespace::isNonincludable, because "Namespace" is already in the
class name

Change-Id: Ie982835c7dc84cb10c823996e5360cc1b342f704

12 years agoAdding NamespaceIsMovable hook to isMovable in MWNamespace, much like done in Title...
jeroendedauw [Thu, 10 May 2012 10:19:56 +0000 (12:19 +0200)]
Adding NamespaceIsMovable hook to isMovable in MWNamespace, much like done in Title::isMovable.

Change-Id: I72c19be541391857aa25ff2433c017e5d63a8ecd

12 years agoMerge "Added some more output to cleanupUploadStash.php"
Demon [Fri, 11 May 2012 13:14:40 +0000 (13:14 +0000)]
Merge "Added some more output to cleanupUploadStash.php"

12 years agoMerge "Fix E_STRICT from I6d164e45c1e31d4f83e0fa390011c5d182eb69c3."
Demon [Fri, 11 May 2012 13:12:30 +0000 (13:12 +0000)]
Merge "Fix E_STRICT from I6d164e45c1e31d4f83e0fa390011c5d182eb69c3."

12 years agoMerge "Added missing GPLv2 headers in some places."
Demon [Fri, 11 May 2012 12:49:12 +0000 (12:49 +0000)]
Merge "Added missing GPLv2 headers in some places."

12 years agoMerge "(bug 33928) make diff title page more relevant"
Nikerabbit [Fri, 11 May 2012 09:05:44 +0000 (09:05 +0000)]
Merge "(bug 33928) make diff title page more relevant"

12 years agoAdded missing GPLv2 headers in some places.
Alexandre Emsenhuber [Fri, 11 May 2012 08:34:29 +0000 (10:34 +0200)]
Added missing GPLv2 headers in some places.

Also made file/class documentation more consistent.

Change-Id: Ia45d0756cd84138da267bf1cbd1a58be7f28c6d1

12 years agoMerge "Parameter documentation stuffs"
Aaron Schulz [Thu, 10 May 2012 23:17:40 +0000 (23:17 +0000)]
Merge "Parameter documentation stuffs"

12 years agoParameter documentation stuffs
Reedy [Thu, 10 May 2012 07:55:33 +0000 (08:55 +0100)]
Parameter documentation stuffs

Change-Id: I2d9e800bf21d420fb26c130d0f271f6739c730a4

12 years agoMerge "Revert r97711"
Aaron Schulz [Thu, 10 May 2012 23:00:50 +0000 (23:00 +0000)]
Merge "Revert r97711"

12 years agoMerge "[SiteStatsUpdate] Reduced contention by using a new lockIsFree() DB function."
Catrope [Thu, 10 May 2012 22:52:23 +0000 (22:52 +0000)]
Merge "[SiteStatsUpdate] Reduced contention by using a new lockIsFree() DB function."

12 years ago[SiteStatsUpdate] Reduced contention by using a new lockIsFree() DB function.
Aaron [Thu, 10 May 2012 22:42:59 +0000 (15:42 -0700)]
[SiteStatsUpdate] Reduced contention by using a new lockIsFree() DB function.

* Note: follows up a4b3979160c3ae895d4763967c485380448ce8c0
* Cleanup up transaction statements a bit; transactions don't effect the lock calls
* Also made DatabaseMysql::unlock() actually return a bool

Change-Id: Iade2efa94165b6918eae0863716cc163f36a07b8

12 years agoMerge "Append a user name to 'user' module requests loaded by JavaScript."
Catrope [Thu, 10 May 2012 22:42:56 +0000 (22:42 +0000)]
Merge "Append a user name to 'user' module requests loaded by JavaScript."

12 years agoMerge "Add support for User:0 in 'user' and 'user.groups' RL modules."
Catrope [Thu, 10 May 2012 22:42:03 +0000 (22:42 +0000)]
Merge "Add support for User:0 in 'user' and 'user.groups' RL modules."

12 years agoMerge "[SiteStatsUpdate] Added support for memcached staging of stats updates."
Catrope [Thu, 10 May 2012 22:23:14 +0000 (22:23 +0000)]
Merge "[SiteStatsUpdate] Added support for memcached staging of stats updates."

12 years ago[SiteStatsUpdate] Added support for memcached staging of stats updates.
Aaron [Wed, 9 May 2012 23:30:29 +0000 (16:30 -0700)]
[SiteStatsUpdate] Added support for memcached staging of stats updates.

Change-Id: I0bfdd6a4c9b8b09355bf008bd97456401f8b485b

12 years agoAppend a user name to 'user' module requests loaded by JavaScript.
Szymon Świerkosz [Thu, 10 May 2012 20:56:55 +0000 (22:56 +0200)]
Append a user name to 'user' module requests loaded by JavaScript.

Change-Id: Id1b3256cc5b325b94531d0722aaa159ea20042f4

12 years agoFix E_STRICT from I6d164e45c1e31d4f83e0fa390011c5d182eb69c3.
Alexandre Emsenhuber [Thu, 10 May 2012 19:44:00 +0000 (21:44 +0200)]
Fix E_STRICT from I6d164e45c1e31d4f83e0fa390011c5d182eb69c3.

The error is Strict Standards: Declaration of SkinVector::addToBodyAttributes() should be compatible with that of Skin::addToBodyAttributes() in skins/Vector.php on line 71.

Change-Id: I429609359870547f3df895902909754899ec30df

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 10 May 2012 19:42:14 +0000 (19:42 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie23359c95892267c83482051e4a793ad740689db

12 years agoMerge "(bug 35240) Fix mw.loader state machine."
Catrope [Thu, 10 May 2012 19:01:47 +0000 (19:01 +0000)]
Merge "(bug 35240) Fix mw.loader state machine."

12 years agoMerge "(bug 19195) Make user IDs more readily available with the API"
Reedy [Thu, 10 May 2012 18:47:42 +0000 (18:47 +0000)]
Merge "(bug 19195) Make user IDs more readily available with the API"

12 years agoMerge "Added a class to body which enables/disables layout transitions"
Catrope [Thu, 10 May 2012 18:44:11 +0000 (18:44 +0000)]
Merge "Added a class to body which enables/disables layout transitions"

12 years agoFixed typo in description in categorymembers module
Petr Onderka [Thu, 10 May 2012 18:36:34 +0000 (20:36 +0200)]
Fixed typo in description in categorymembers module

Change-Id: I7d82df6a4b0f65fe763e0eea23dfa05ae2e7c5f1

12 years agoAdded a class to body which enables/disables layout transitions
Trevor Parscal [Thu, 10 May 2012 18:17:05 +0000 (11:17 -0700)]
Added a class to body which enables/disables layout transitions

This allows people to disable animation of CSS properties temporarily
if needed by removing the vector-animateLayout class from the body.

// Disabled CSS transitions on properties customized by the hd layout
$( 'body' ).removeClass( 'vector-animateLayout' );
// Change something that would normally be animated
$( '#content' ).css( 'margin-left', 0 );
// Re-enables transitions
$( 'body' ).addClass( 'vector-animateLayout' );

Change-Id: I6d164e45c1e31d4f83e0fa390011c5d182eb69c3

12 years agoAdd support for User:0 in 'user' and 'user.groups' RL modules.
Szymon Świerkosz [Thu, 10 May 2012 18:12:13 +0000 (20:12 +0200)]
Add support for User:0 in 'user' and 'user.groups' RL modules.

Change-Id: I290e44166306036629ada990e233f098558c2aea

12 years agoMerge "Use local context to get messages"
Aaron Schulz [Thu, 10 May 2012 18:11:02 +0000 (18:11 +0000)]
Merge "Use local context to get messages"

12 years agoMerge "Fix typo in comments, rm debugging code"
Aaron Schulz [Thu, 10 May 2012 18:10:00 +0000 (18:10 +0000)]
Merge "Fix typo in comments, rm debugging code"

12 years agoMerge "Added missing GPLv2 headers in some places."
Reedy [Thu, 10 May 2012 18:09:23 +0000 (18:09 +0000)]
Merge "Added missing GPLv2 headers in some places."

12 years agoMerge "Adding new getCreator and getOldestRevision methods to WikiPage class."
Brion VIBBER [Thu, 10 May 2012 18:03:19 +0000 (18:03 +0000)]
Merge "Adding new getCreator and getOldestRevision methods to WikiPage class."

12 years agoFix typo in comments, rm debugging code
Max Semenik [Thu, 10 May 2012 17:01:50 +0000 (21:01 +0400)]
Fix typo in comments, rm debugging code

Change-Id: I1ae2e59048fbeaf1a1f279dd5bd38bd19b5a8498

12 years agoUse local context to get messages
Alexandre Emsenhuber [Thu, 10 May 2012 15:58:38 +0000 (17:58 +0200)]
Use local context to get messages

Change-Id: I942ce637b53599b865f36012bd9a91f0fea63b1f

12 years agoAdded missing GPLv2 headers in some places.
Alexandre Emsenhuber [Thu, 10 May 2012 15:51:44 +0000 (17:51 +0200)]
Added missing GPLv2 headers in some places.

Also made file/class documentation more consistent and removed a duplicate comment from SpecialPageFactory.php in SpecialPage.php.

Change-Id: I99dd2de7fe461f2fad4e0bd315ebc2899958a90f

12 years agoMerge "Use the style for htmlform.tip Vector wide."
Nikerabbit [Thu, 10 May 2012 06:40:45 +0000 (06:40 +0000)]
Merge "Use the style for htmlform.tip Vector wide."

12 years agoAdding new getCreator and getOldestRevision methods to WikiPage class.
Kaldari [Mon, 7 May 2012 20:39:02 +0000 (13:39 -0700)]
Adding new getCreator and getOldestRevision methods to WikiPage class.

Patch 2: Adding getOldest method per comments
Patch 3: whitespace fix
Patch 4: renaming getOldest to getOldestRevision
Patch 5: separating into 3 methods: getOldestRevisionId, getOldestRevision, getCreator
Patch 6: more concise, fixing whitespace
Patch 7: return user object instead of user id
Patch 8: consolidating revision methods per discussion
Patch 9: whitespace
Patch 11: better commit summary
Patch 12: Typo, sigh
Patch 13: switching to use Revision::newFromRow per comment
Patch 14: using Revision::selectFields()
Patch 15: moving outside of while loop
Change-Id: I140e17a95b89c9263978942fd642d6a236a5cc4f

12 years agoMerge "Factor out module name validation into a static function"
Aaron Schulz [Wed, 9 May 2012 23:41:44 +0000 (23:41 +0000)]
Merge "Factor out module name validation into a static function"

12 years agoMerge "Remove 'jquery.ui.button' as dependency for mediawiki.action.history"
Catrope [Wed, 9 May 2012 22:43:45 +0000 (22:43 +0000)]
Merge "Remove 'jquery.ui.button' as dependency for mediawiki.action.history"

12 years agoFactor out module name validation into a static function
Catrope [Wed, 9 May 2012 21:10:33 +0000 (14:10 -0700)]
Factor out module name validation into a static function

Also add the requirement that module names be at most 255 bytes, so
they'll fit in the DB fields that we put module names in (md_module,
mr_resource, mrl_resource)

Change-Id: I7193c9beb7aff4eabfe20db461e6f9032ae994b1

12 years agoIntegrating mobile device detection class into MW core
awjrichards [Wed, 9 May 2012 21:26:31 +0000 (14:26 -0700)]
Integrating mobile device detection class into MW core

Change-Id: Ic7bbeba746ea37a92c1df5dbaa1fb4fd08da130c

12 years ago[SiteStatsUpdate] Changing raw DB update calls to use SiteStatsUpdate.
Aaron [Wed, 9 May 2012 20:59:27 +0000 (13:59 -0700)]
[SiteStatsUpdate] Changing raw DB update calls to use SiteStatsUpdate.

* Made SiteStatsUpdate fields protected
* Added factory function for unretarded object construction
* Changed FileRepo code to use deferred stats updates like everything else

Change-Id: I93039104b14f0362509e37b6852604ffb0898dc7

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 9 May 2012 20:10:15 +0000 (20:10 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5c0b31d07219bbc804862ff53c877e82d803b789

12 years agoMerge "Use local context to get messages"
Aaron Schulz [Wed, 9 May 2012 18:44:11 +0000 (18:44 +0000)]
Merge "Use local context to get messages"

12 years agoMerge "[FileRepo] Purging/transaction fixes."
Brion VIBBER [Wed, 9 May 2012 18:37:23 +0000 (18:37 +0000)]
Merge "[FileRepo] Purging/transaction fixes."

12 years agoUse local context to get messages
Alexandre Emsenhuber [Mon, 7 May 2012 04:38:51 +0000 (06:38 +0200)]
Use local context to get messages

Change-Id: Ieb3564e5532e421b4b803ed6c327d6a75ed0103c

12 years agoAdded missing GPLv2 headers in some places.
Alexandre Emsenhuber [Wed, 9 May 2012 17:55:56 +0000 (19:55 +0200)]
Added missing GPLv2 headers in some places.

Also made file/class documentation more consistent.

Change-Id: Ib46e50da4ec649a6a06cbeed00752effb79ed06e

12 years agoRevert r97711
Timo Tijhof [Sat, 14 Apr 2012 15:08:04 +0000 (17:08 +0200)]
Revert r97711

WONTFIX:
 * (bug 30245) Use the correct way to construct a log page title.

 This was previously reverted for 1.19 and now reverting again for
 1.20, only this time proposing it not to be temporary.

 Right now this is already live on 2 wikis and as soon as it goes
 live on a non-English wiki (since English namespace name for Log
 matches the canonical name "Log", and as such causes no breakage yet
 for bots using the IRC feed), as soon as it goes live on a
 non-English wiki it will all log actions that bots are monitoring
 using the irc feed.

 (because no matter which log action is monitored, it all goes
 back to detecting the page title of Special:Log)

 If properly announced ahead of time it could be done, but we don't
 have that time anymore. Perhaps re-try in 1.21 or 1.22, but as far
 as I'm concerned, this bug can be kept WONTFIX as it only affects
 the IRC feed. And it's not worth the loss that will undoubtedly
 result from breaking this.
 Theoretically a certain amount of time for the announcement could be
 required, and if the change enables something or fixes a security
 problem, it could be justified, but for this it is just not worth
 it.

 The human-readable output from the API and on Special:Log are fully
 localized and even better so with the rewrite that Niklas did last
 year. The IRC feed however, has little to no gain from this and only
 causes breakages for the the large amount of bot usage from it, of
 which many are no longer maintained and as such will not be fixed,
 no matter how much time it is given. Granted those will probably
 break no matter what at some point, but hopefully we will have
 push notification *with* structured data[2] by that time to
 encourage rewrites of those bots.

Change-Id: I229e345c74b10f4d96b8d2d305b4a7623825b3f6
Links:
 * https://www.mediawiki.org/wiki/Special:Code/MediaWiki/97711
 * https://www.mediawiki.org/wiki/Requests_for_comment/Structured_data_push_notification_support_for_recent_changes

12 years agoMerge "Add CSS class .mw-code (matching <pre>)"
Timo Tijhof [Wed, 9 May 2012 14:40:34 +0000 (14:40 +0000)]
Merge "Add CSS class .mw-code (matching <pre>)"

12 years agoAdd CSS class .mw-code (matching <pre>)
Timo Tijhof [Sat, 14 Apr 2012 03:23:16 +0000 (05:23 +0200)]
Add CSS class .mw-code (matching <pre>)

- Add CSS class .mw-code.
  All skins that stye <pre> now also style .mw-code.
  This is because there are situations where a <pre> element is not
  allowed (e.g. when the child code contains <div>) by Tidy and W3C, but
  should still be styled as such.

- Required for fixing bug 19416 and bug 35875.
  SyntaxHighlighter Geshi has it's own custom markup that can't be relied on
  for both consistency (it can change over time) and due to its own
  over "!important"-ized css reset on it's own classes, so although it
  (sometimes!) does use a <pre>, that <pre> is completely reset so the skins
  css doesn't (and frankly shouldn't) apply to that.

  Up until last year this extension wrapped all of Geshi's internal output in
  a <div class="mw-geshi" />. Leaving all wmf wikis to have to create a hack
  in their local css (for every skins!) to reproduce the skins's <pre> style
  on .mw-geshi.

  Previously this was attempted to be fixed inside Geshi itself by wrapping
  all of Geshi's internal output in a <PRE class="mw-geshi"> instead of a
  <DIV class="mw-geshi">. That worked fine because that element didn't have
  any of geshi's internal classes on it so it was outside the scope of the
  reset and the skins' css applied fine.

  However when Tidy is enabled this got messed up badly and (part) of the
  Geshi output was ripped out of the containing <pre> by Tidy because the W3C
  doesn't allow a <div> to be inside a <pre>.

  Now fixed in a different way by instead providing a css class in all skins
  that when given to any element will give it the same styling that it does
  to <pre>. Separation of content and styling.

  Tested in all core skins, works great. The style of the geshi output is
  preserved and the container looks like any other <pre> in that skin.

Change-Id: I4ff5d0197ba8dc0dad3cafd03f2b120bc22e75cb

12 years ago[FileBackend] Added support for concurrent file write operations.
Aaron [Wed, 11 Apr 2012 17:51:02 +0000 (10:51 -0700)]
[FileBackend] Added support for concurrent file write operations.

* FS backends work via popen() and basic shell commands.
* Swift backends use the custom SwiftCloudFiles async features.
* Refactored storagePathsRead()/storagePathsChanged() to normalize the paths
  for correct dependency detection in FileOpBatch.
* Cleaned up SwiftFileBackend exception handling to make debugging easier.
* Added a quick and dirty performance testing script.
* Updated unit tests to include a run with parallelize=implicit.
* Improved file test failure output a bit.

Change-Id: I6a5ed743c30c598e0dd7301dbdb3631c460332fd

12 years agoUse the style for htmlform.tip Vector wide.
Siebrand Mazeland [Wed, 9 May 2012 11:08:16 +0000 (13:08 +0200)]
Use the style for htmlform.tip Vector wide.

Instead of only in preferences.

Change-Id: I54438d8661c6181eede73c992e60298c4a54535d

12 years agoMerge "Follow up change Icc8dc4ae: add new message keys to maintenance scripts"
Siebrand [Wed, 9 May 2012 09:11:26 +0000 (09:11 +0000)]
Merge "Follow up change Icc8dc4ae: add new message keys to maintenance scripts"

12 years ago(bug 35240) Fix mw.loader state machine.
lupo [Wed, 9 May 2012 09:01:19 +0000 (11:01 +0200)]
(bug 35240) Fix mw.loader state machine.

Main changes:

* handlePending() correctly handles "missing" and "error" states
and propagates error states up the dependency tree.

* handlePending() is called whenever a module enters one of the
states "ready", "error", or "missing" (in execute() and
mw.loader.state()).

* load() filters out not only undefined modules, but -- by the logic of
the comment there -- also modules in state "error" or "missing".

Minor changes:

* recurse() renamed to sortDependencies(), also uses a hash for
unresolved now instead of an array.

* execute() was never called with the second parameter "callback", hence
I've removed it.

* simplified the "are all dependencies 'ready'?" test and moved it to
its own function.

The change comes with additional QUnit tests for mw.loader. If I run
these tests against the current mediawiki.js, several of them fail. In
particular test #86 ("mw.loader real missing dependency") is
instructive: if the server returns "missing" for a module, dependent
modules never progress beyond "loaded", and if there are jobs (from
mw.loader.using()) depending on such a missing module (directly or
indirectly), neither ready() nor error() is ever called.

Running the tests against the changed mediawiki.js in this change, they
all succeed for me.

Patchset 2: whitespace changes, $_GET instead of $_REQUEST in
testloader.

Patchset 3: XML::encodeJsVar() in testloader, deepEqual() in Qunit
tests.

Patchset 4: rebase

Patchset 5: Amend commit message only (typo)

Change-Id: Ia67edfc07fc9237def04ed13bb2cee16e519d7af

12 years agoRemove UI overrides for simple English.
Siebrand Mazeland [Wed, 9 May 2012 07:26:26 +0000 (09:26 +0200)]
Remove UI overrides for simple English.

This was introduced a while ago, but this code should simply fall back to
English completely.

Change-Id: If311c2b6847068bdca6dd44d294ca207639a9f5b