lhc/web/wiklou.git
11 years agoMerge "Separate language generation from outputPage"
jenkins-bot [Sat, 20 Apr 2013 00:11:18 +0000 (00:11 +0000)]
Merge "Separate language generation from outputPage"

11 years agoSeparate language generation from outputPage
jrobson [Fri, 19 Apr 2013 05:54:54 +0000 (22:54 -0700)]
Separate language generation from outputPage

Helps with readability - outputPage function is extremely long
Also helps with extensions of SkinTemplate that override outputPage
(for example skin in MobileFrontend)

See related change id: I04b625c8d76bb6a061e3201847bf97185c6b7a29

Change-Id: I4a49e704f6fe72c74ecb9103fb081aed93a86de7

11 years ago[JobQueue] Fixed numbers given to redis queue stat calls.
Aaron Schulz [Fri, 19 Apr 2013 23:51:27 +0000 (16:51 -0700)]
[JobQueue] Fixed numbers given to redis queue stat calls.

Change-Id: Ia70e6ab947aab9ed807ea993b04647aa488fbf3d

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 19 Apr 2013 20:41:17 +0000 (20:41 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoAdded abandoned job stats.
Aaron Schulz [Fri, 19 Apr 2013 20:06:11 +0000 (13:06 -0700)]
Added abandoned job stats.

Change-Id: I3ef8c56e1a3e16875c7282afc4d3d0b135bd776d

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 19 Apr 2013 19:46:24 +0000 (19:46 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4445cabf897d43873aac8750f1e0a1585cff6b14

11 years agoAPI: Add new hook 'APIGetPossibleErrors'
umherirrender [Fri, 5 Apr 2013 16:34:47 +0000 (18:34 +0200)]
API: Add new hook 'APIGetPossibleErrors'

This allows extensions to modify the array.

This completes the serie of hooks for similar get methods in ApiBase.

Change-Id: Ib398f5815ab57f25d56356b0997c55a03fd96874

11 years agoOnly allow fields from isFieldSortable to be sorted on.
Brian Wolff [Thu, 18 Apr 2013 19:02:29 +0000 (16:02 -0300)]
Only allow fields from isFieldSortable to be sorted on.

Prevents people from doing stupid things like:
https://commons.wikimedia.org/w/index.php?title=Special%3AListFiles&limit=50&user=bawolff&sort=img_description&asc=&desc=1
Which don't have indexes.

Change-Id: I7aeb89032e89283dd7dfe5d7bf12872203ca5520

11 years ago[FileBackend] Made stat cache factor in last-modified time.
Aaron Schulz [Sun, 14 Apr 2013 20:32:34 +0000 (13:32 -0700)]
[FileBackend] Made stat cache factor in last-modified time.

* This should lesson the chance of consistency problems
  if there is any memcached flapping.
* Also cleaned up some documentation.

Change-Id: I89401892c7e848fcff0b093eaa861dfe02387a5c

11 years ago[FileBackend] Disallow files ending in / and clarified some docs.
Aaron Schulz [Thu, 4 Apr 2013 23:50:51 +0000 (16:50 -0700)]
[FileBackend] Disallow files ending in / and clarified some docs.

Change-Id: I162ca34fe9f92d862345004bd184013531da9e8d

11 years ago[JobQueue] Added JobQueueFederated class for partitioned queues.
Aaron Schulz [Thu, 28 Feb 2013 22:21:28 +0000 (14:21 -0800)]
[JobQueue] Added JobQueueFederated class for partitioned queues.

* This lets queues be horizontally partitioned onto
  different servers, with weights assigned to each.
  The queue classes used by the different partitions
  can be hetereogenous or homogeneous.
* How partitioning is done is setup similar to LBFactory,
  where wikis belong to sections and sections have config.

Change-Id: I44d59b67cf417dca28a3e9b25371dac5a7ffcb47

11 years ago[LockManager] Added a RedisLockManager class.
Aaron Schulz [Tue, 19 Feb 2013 02:45:23 +0000 (18:45 -0800)]
[LockManager] Added a RedisLockManager class.

Change-Id: I7ade74eb307a5075533f36836768af60f106a6b9

11 years ago[JobQueue] Deprecated confusing Job::getId() function.
Aaron Schulz [Wed, 20 Mar 2013 19:59:59 +0000 (12:59 -0700)]
[JobQueue] Deprecated confusing Job::getId() function.

* Also slimmed down $job->metadata use by JobQueueRedis to just the ID.

Change-Id: If9fdb33afd6d1ce2be957a1eea107f54bd6dac53

11 years agoFactored JobQueueRedis::redisEval() into RedisConnRef::luaEval().
Aaron Schulz [Thu, 18 Apr 2013 05:20:50 +0000 (22:20 -0700)]
Factored JobQueueRedis::redisEval() into RedisConnRef::luaEval().

Change-Id: I1b4bb4f4bb5e25fc3f358c9e2b16e4672584c68b

11 years agoMerge "UIDGenerator: better support for 32-bit machines"
jenkins-bot [Thu, 18 Apr 2013 23:43:48 +0000 (23:43 +0000)]
Merge "UIDGenerator: better support for 32-bit machines"

11 years agoMerge "Wrap job execution around profiling calls."
jenkins-bot [Thu, 18 Apr 2013 23:11:56 +0000 (23:11 +0000)]
Merge "Wrap job execution around profiling calls."

11 years agoMerge "[JobQueue] Added per-type stat counter calls for better graphs."
jenkins-bot [Thu, 18 Apr 2013 23:05:57 +0000 (23:05 +0000)]
Merge "[JobQueue] Added per-type stat counter calls for better graphs."

11 years agoMoved Block and Title purgeExpired() functions to onTransactionIdle().
Aaron Schulz [Thu, 18 Apr 2013 04:35:33 +0000 (21:35 -0700)]
Moved Block and Title purgeExpired() functions to onTransactionIdle().

Change-Id: I82b2f4689a42481cd2a476351354f55ded581ff5

11 years agoUIDGenerator: better support for 32-bit machines
Tim Starling [Thu, 18 Apr 2013 22:34:20 +0000 (08:34 +1000)]
UIDGenerator: better support for 32-bit machines

Replace one exception with another that is less likely. Integer
multiplication is exact up to the limit of the double precision
mantissa size, and wfBaseConvert() will work up to any size of string.
So it's not necessary to require bcmath/gmp to be installed. The modulo
operation is equivalent to truncation of the binary form.

Perhaps mantissa sizes will be extended before the year 144680, made
possible by improved computing hardware. The exception message should be
altered when such hardware becomes available.

Change-Id: I8116dac1958b5dbef977d3900973bf13be3d9d17

11 years agoFix @return type hint for Title::newFromID
Ori Livneh [Thu, 18 Apr 2013 21:57:03 +0000 (14:57 -0700)]
Fix @return type hint for Title::newFromID

Change-Id: I7f9ff81b91dcabb68c9c86eedf391b3e6160c6d4

11 years agoMerge "Clean up, comments, remove obsolete mw-ui-formlist"
Massaf [Thu, 18 Apr 2013 21:39:14 +0000 (21:39 +0000)]
Merge "Clean up, comments, remove obsolete mw-ui-formlist"

11 years agoClean up, comments, remove obsolete mw-ui-formlist
S Page [Sat, 13 Apr 2013 02:38:00 +0000 (19:38 -0700)]
Clean up, comments, remove obsolete mw-ui-formlist

* Remove obsolete ".mw-ui-formlist div label" selector, replaced by
  ".mw-ui-vform > div label".
* Rename mw-ui-block-label to mw-ui-label since it doesn't impose
  block styling.
* Remove overspecified ".mw-ui-vform > div label.mw-ui-checkbox-label"
  selectors, since the bare class applies the same styling.

Also in the CSS for the vertical forms,
* reduce the margin-bottom of #languagelinks
* allow word wrap to break words in the errorbox (bug 46966).

Change-Id: I03bdf3b1c50be732435e10193f004230a6a3bacf

11 years agoMerge "Clean up SpecialFilepath."
jenkins-bot [Thu, 18 Apr 2013 20:36:29 +0000 (20:36 +0000)]
Merge "Clean up SpecialFilepath."

11 years agoMerge "Fixed some spacing in maintenance folder"
jenkins-bot [Thu, 18 Apr 2013 20:16:25 +0000 (20:16 +0000)]
Merge "Fixed some spacing in maintenance folder"

11 years ago[JobQueue] Added per-type stat counter calls for better graphs.
Aaron Schulz [Tue, 16 Apr 2013 17:43:37 +0000 (10:43 -0700)]
[JobQueue] Added per-type stat counter calls for better graphs.

* Also refactored doBatchPush() for the DB job queue to reduce
  the amount of PHP closure work-arounds. I'd rather not add a
  $type variable to the bloated 'use' clause.

Change-Id: I265effc061558d96048dcc331ac2338a8b95aff5

11 years agoWrap job execution around profiling calls.
Aaron Schulz [Thu, 18 Apr 2013 04:50:34 +0000 (21:50 -0700)]
Wrap job execution around profiling calls.

Change-Id: Idf184b7c2f7003032d3a28830ee9c4a1eaeaa98b

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 18 Apr 2013 19:20:30 +0000 (19:20 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Idb721fab7d2bd80ccd07a02365407763585865c0

11 years agoFixed some spacing in maintenance folder
umherirrender [Thu, 18 Apr 2013 18:48:44 +0000 (20:48 +0200)]
Fixed some spacing in maintenance folder

Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I9657f72996358f8c1c154cea1ea97970d973723c

11 years agoPass a limit to BackLinkCache::getNumLinks() in some places to avoid OOMs.
Aaron Schulz [Thu, 18 Apr 2013 18:29:20 +0000 (11:29 -0700)]
Pass a limit to BackLinkCache::getNumLinks() in some places to avoid OOMs.

Change-Id: Idf1042c083837a9e4a380bb20ecdf3043ea9ab09

11 years agoMerge "Normalise user names passed to Special:BlockList"
jenkins-bot [Thu, 18 Apr 2013 17:16:37 +0000 (17:16 +0000)]
Merge "Normalise user names passed to Special:BlockList"

11 years agoNormalise user names passed to Special:BlockList
Alexandre Emsenhuber [Sun, 14 Apr 2013 20:11:51 +0000 (22:11 +0200)]
Normalise user names passed to Special:BlockList

Special:BlockList now handles correctly user names with spaces when passed as subpage

bug: 47218
Change-Id: I3a52c454c64fdc599c7abcdca05b182e09640c59

11 years agoUse a combined const, instead of string concat in Exif.php
umherirrender [Sun, 14 Apr 2013 19:00:28 +0000 (21:00 +0200)]
Use a combined const, instead of string concat in Exif.php

Fix some spacing while at it

Change-Id: I47ff4aef5125dae6308720680641f617b5795a41

11 years agoMerge "Modifying ArticleEditUpdateNewTalk hook so that it passes the recipient"
jenkins-bot [Thu, 18 Apr 2013 13:21:43 +0000 (13:21 +0000)]
Merge "Modifying ArticleEditUpdateNewTalk hook so that it passes the recipient"

11 years agoMerge "Add non DBMS depending SQL tests for DatabaseBase"
jenkins-bot [Thu, 18 Apr 2013 08:42:02 +0000 (08:42 +0000)]
Merge "Add non DBMS depending SQL tests for DatabaseBase"

11 years agoCleaned up test cleanup for FileBackend and avoid use of @.
Aaron Schulz [Wed, 17 Apr 2013 18:20:50 +0000 (11:20 -0700)]
Cleaned up test cleanup for FileBackend and avoid use of @.

Change-Id: Ie9f0090f626384a90b0139b9f8c2d94bf0bb8f23

11 years agoMerge "Make UserCache only look up a user once."
Aaron Schulz [Thu, 18 Apr 2013 04:13:33 +0000 (04:13 +0000)]
Merge "Make UserCache only look up a user once."

11 years ago[JobQueue] Simplified a bit of code in JobQueueRedis.
Aaron Schulz [Thu, 4 Apr 2013 05:19:35 +0000 (22:19 -0700)]
[JobQueue] Simplified a bit of code in JobQueueRedis.

Change-Id: Ia0329a9721b126a3573cfee0d67c9a54c911196f

11 years agoMerge "Do not bother with ForkController for procs=1."
jenkins-bot [Thu, 18 Apr 2013 00:52:10 +0000 (00:52 +0000)]
Merge "Do not bother with ForkController for procs=1."

11 years agoMerge "Fixed spacing in skins folder"
jenkins-bot [Thu, 18 Apr 2013 00:06:48 +0000 (00:06 +0000)]
Merge "Fixed spacing in skins folder"

11 years agoMerge "Got rid of some global $wgContLang usage in SpecialAllpages"
jenkins-bot [Thu, 18 Apr 2013 00:03:40 +0000 (00:03 +0000)]
Merge "Got rid of some global $wgContLang usage in SpecialAllpages"

11 years agoMerge "Fixes to Special:ConfirmEmail form"
jenkins-bot [Thu, 18 Apr 2013 00:00:49 +0000 (00:00 +0000)]
Merge "Fixes to Special:ConfirmEmail form"

11 years agoMerge "Fixed spacing in languages folder"
jenkins-bot [Wed, 17 Apr 2013 23:58:08 +0000 (23:58 +0000)]
Merge "Fixed spacing in languages folder"

11 years agoMerge "else if -> elseif"
jenkins-bot [Wed, 17 Apr 2013 23:54:30 +0000 (23:54 +0000)]
Merge "else if -> elseif"

11 years agoMerge "Add missing braces to for in wfGetCallerTest"
jenkins-bot [Wed, 17 Apr 2013 23:51:17 +0000 (23:51 +0000)]
Merge "Add missing braces to for in wfGetCallerTest"

11 years agoMerge "Fix HTML output of TablePager"
jenkins-bot [Wed, 17 Apr 2013 23:48:26 +0000 (23:48 +0000)]
Merge "Fix HTML output of TablePager"

11 years agoMerge "Fixes to Special:BookSources form"
jenkins-bot [Wed, 17 Apr 2013 23:45:14 +0000 (23:45 +0000)]
Merge "Fixes to Special:BookSources form"

11 years agoMake UserCache only look up a user once.
Brian Wolff [Wed, 17 Apr 2013 21:23:11 +0000 (18:23 -0300)]
Make UserCache only look up a user once.

I noticed on special:listfiles/username, UserCache was doing queries
like select user_whatever from user where user_id in ( '1', '1', ...)
with the same user id 50 times (one for each result returned in the
special page). That seemed a little insane, so put the list of
users to query through a array_unique. (Quite likely the db would
optimize that query to not literally look up the same user 50 times,
but nonetheless it seems better to filter the list before then)

Change-Id: I80c8a359d0f7a53b2420ebcda641e594dd3c56e9

11 years agoDo not bother with ForkController for procs=1.
Aaron Schulz [Wed, 17 Apr 2013 21:23:05 +0000 (14:23 -0700)]
Do not bother with ForkController for procs=1.

Change-Id: I84d4dd5369c5640b849d2fb58e01b8565b2abd65

11 years agoMerge "Make concurrent runs of FileBackendTest independent"
Aaron Schulz [Wed, 17 Apr 2013 20:38:19 +0000 (20:38 +0000)]
Merge "Make concurrent runs of FileBackendTest independent"

11 years agoMerge "Add gender to 'passwordreset-emailerror-capture' message"
jenkins-bot [Wed, 17 Apr 2013 19:55:35 +0000 (19:55 +0000)]
Merge "Add gender to 'passwordreset-emailerror-capture' message"

11 years agoGot rid of some global $wgContLang usage in SpecialAllpages
Daniel Werner [Thu, 14 Mar 2013 17:02:17 +0000 (18:02 +0100)]
Got rid of some global $wgContLang usage in SpecialAllpages

Using $this->getContext()->getLanguage() instead now. In SpecialAllpages::showline
the global is still being used and a comment added. It could be argued about whether
the content language or the user language should be used in that place.

Also added some missing documentation to Language::getNamespaces.

Change-Id: If511e2d9edb0f0092f3ca0ceadabd7fdb72f6c06

11 years agoAdd gender to 'passwordreset-emailerror-capture' message
Alexandre Emsenhuber [Fri, 12 Apr 2013 07:47:56 +0000 (09:47 +0200)]
Add gender to 'passwordreset-emailerror-capture' message

Bug: 46646
Change-Id: Ib775597d7d5b5afd84717fc7064a73721bc1a01c

11 years agoMake concurrent runs of FileBackendTest independent
Brian Wolff [Wed, 17 Apr 2013 19:11:45 +0000 (16:11 -0300)]
Make concurrent runs of FileBackendTest independent

Make each run of the FileBackendTest be for a different "wiki"
so you could have multiple runs at the same time without them
interfering with each other.

There's been intermittent failures on jenkins for this test. I'm
not sure if its some race condition (which wouldn't really make
sense given each run should be independent I thought), but this
can't hurt.

Change-Id: I3b639f1c783efc140028c3acdce35ef3f58bf66f

11 years agoFixed spacing in languages folder
umherirrender [Wed, 17 Apr 2013 19:10:02 +0000 (21:10 +0200)]
Fixed spacing in languages folder

Added spaces before if
Added some braces for one line statements

Change-Id: I980771894369499646532b13b801db6447381773

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 17 Apr 2013 18:56:11 +0000 (18:56 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I29386c98e8d9308a6cbebe8b654834996ac36b0c

11 years agoAdd missing braces to for in wfGetCallerTest
umherirrender [Wed, 17 Apr 2013 18:11:34 +0000 (20:11 +0200)]
Add missing braces to for in wfGetCallerTest

Change-Id: I14b7abb90e2574022c792a6874390eee87d48708

11 years agoMerge "Set up the profiler in CLI mode."
Aaron Schulz [Wed, 17 Apr 2013 17:58:57 +0000 (17:58 +0000)]
Merge "Set up the profiler in CLI mode."

11 years agoMerge "[FileBackend] Simplified the shard list iterator to use AppendIterator and...
Aaron Schulz [Wed, 17 Apr 2013 17:58:30 +0000 (17:58 +0000)]
Merge "[FileBackend] Simplified the shard list iterator to use AppendIterator and FilterIterator."

11 years agoMerge "Reduced DB contention in User::saveOptions()."
Aaron Schulz [Wed, 17 Apr 2013 17:58:03 +0000 (17:58 +0000)]
Merge "Reduced DB contention in User::saveOptions()."

11 years agoMerge "Small doc fix to JobQueueRedis."
Aaron Schulz [Wed, 17 Apr 2013 17:35:25 +0000 (17:35 +0000)]
Merge "Small doc fix to JobQueueRedis."

11 years agoMerge "Set 'skin' template parameter rather than override parent method"
jenkins-bot [Wed, 17 Apr 2013 17:11:17 +0000 (17:11 +0000)]
Merge "Set 'skin' template parameter rather than override parent method"

11 years ago[FileBackend] Simplified the shard list iterator to use AppendIterator and FilterIter...
Aaron Schulz [Sun, 31 Mar 2013 11:01:11 +0000 (04:01 -0700)]
[FileBackend] Simplified the shard list iterator to use AppendIterator and FilterIterator.

Change-Id: I22f79447b1edec4fa6d7fc06d67f3f831a484f16

11 years agoReduced DB contention in User::saveOptions().
Aaron Schulz [Tue, 16 Apr 2013 19:43:04 +0000 (12:43 -0700)]
Reduced DB contention in User::saveOptions().

Change-Id: Ic91501cd6476dae54b54b85f2f06c25bd2577c9b

11 years agoSmall doc fix to JobQueueRedis.
Aaron Schulz [Wed, 17 Apr 2013 00:41:41 +0000 (17:41 -0700)]
Small doc fix to JobQueueRedis.

Change-Id: I217b3642c67338f7d45995d81e5e18887242479a

11 years agoSet up the profiler in CLI mode.
Aaron Schulz [Wed, 17 Apr 2013 01:20:00 +0000 (18:20 -0700)]
Set up the profiler in CLI mode.

Change-Id: I7f36786573870b66b4f1e93c2fc2e444f1ae1252

11 years agoClean up SpecialFilepath.
C. Scott Ananian [Tue, 16 Apr 2013 21:12:15 +0000 (17:12 -0400)]
Clean up SpecialFilepath.

Prompted by comments on https://gerrit.wikimedia.org/r/59050
which identified problems with code lifted directly from SpecialFilepath.

Change-Id: Iab8a5d3d007b3aca72b7c6c1145d830a74b4399e

11 years agoelse if -> elseif
umherirrender [Wed, 17 Apr 2013 14:52:47 +0000 (16:52 +0200)]
else if -> elseif

Also fixed some spacing while at it
Added some braces for one line statements

Change-Id: Iebfa2b17091509daabc76248121c7763e2295d20

11 years agoMove release notes from 1.21 to 1.22
Kevin Israel [Wed, 17 Apr 2013 02:56:36 +0000 (22:56 -0400)]
Move release notes from 1.21 to 1.22

Several change sets that added entries to RELEASE-NOTES-1.21 were
actually submitted after the REL1_21 branch point. Those change
sets that are unlikely to be backported to 1.21 (i.e. not yet
backported) are listed here.

* I0f2d81dd (bug 23393) (bug 45803)
* I226349aa
* I3faa9c3e (bug 23343)
* I6e7f4cf6
* I719d84c5
* I97b04673
* Ia98f54f4
* Idab489fc (bug 25325)
* Ifaf40c66 (bug 46680)

This patch moves the release notes to the RELEASE-NOTES-1.22 file.

Change-Id: I6a51e3ee07fe7622b9c708c78563795d7a1118fc

11 years agoRebuild MessagesEn.php
Siebrand Mazeland [Wed, 17 Apr 2013 09:11:38 +0000 (11:11 +0200)]
Rebuild MessagesEn.php

php maintenance\language\rebuildLanguage.php --lang=en

Change-Id: I6a51f75b393e7c85b93a79bc1f09c57ad7e79f93

11 years agoClean up old way to disable variants (using a special name 'disable')
Liangent [Wed, 17 Apr 2013 04:01:16 +0000 (12:01 +0800)]
Clean up old way to disable variants (using a special name 'disable')

$wgDisabledVariants is the preferred setting now since 1.16. For some
reason, the 'disable' magic name hasn't been cleaned up completely and
only affects skinning.

Someone may want to run rebuildLanguage.php later because messages.inc
is modified here. I didn't run it because it introduces too many
unrelated edits messing up this patch.

Change-Id: Ifb005e7cc9efd0b4a4f87fd491a71c8d5e1a5748

11 years agoSet 'skin' template parameter rather than override parent method
Ori Livneh [Wed, 17 Apr 2013 03:51:18 +0000 (20:51 -0700)]
Set 'skin' template parameter rather than override parent method

BaseTemplate's getSkin() method is perfectly adequate if you simply set a
skin value where it expects it. Doing so obviates the need to reimplement
getSkin() in UserloginTemplateVForm and UsercreateTemplateVForm.

Change-Id: Icd22de2218fc96cb67c11d0c1763b607743fe3b6

11 years agoSupport HTTP timeout detection in curl backend
Chad Horohoe [Tue, 16 Apr 2013 23:07:12 +0000 (19:07 -0400)]
Support HTTP timeout detection in curl backend

We already do this for the pure-PHP backend, and it's easy to
catch this single error and pass a more specific message

Change-Id: I8a81dd90b691c35c51a19f8790f06578dd067613

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 16 Apr 2013 19:19:33 +0000 (19:19 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ibba6af6cc653791657989c97d74ed2a6a4c25014

11 years agoUse onTransactionIdle() for page invalidations when not using the job queue.
Aaron Schulz [Tue, 16 Apr 2013 17:16:10 +0000 (10:16 -0700)]
Use onTransactionIdle() for page invalidations when not using the job queue.

* This will do the page_touched UPDATE in autocommit mode to avoid
  locking a bunch of titles for some unknown amount of time that
  depends on how big the transaction is.

Change-Id: I6ec16a73c11fbf19c24d2b7fe7d01f91b9dcf33a

11 years agoAdd non DBMS depending SQL tests for DatabaseBase
umherirrender [Sat, 13 Apr 2013 14:40:04 +0000 (16:40 +0200)]
Add non DBMS depending SQL tests for DatabaseBase

Created a DatabaseTestHelper class, which extends DatabaseBase and
implements STUBs for the interface methods and abstract methods

Change-Id: I9965b3604e78b2722077a35a7b4ce62a5bcb370e

11 years agoSome tweaks to the database commit callback docs.
Aaron Schulz [Tue, 16 Apr 2013 07:28:45 +0000 (00:28 -0700)]
Some tweaks to the database commit callback docs.

Change-Id: Ifc1687f5393046d000a49aa7850c6454d03154b8

11 years agoAccount for $wgSquidMaxage in OutputPage::checkLastModified().
Aaron Schulz [Tue, 9 Apr 2013 20:55:36 +0000 (13:55 -0700)]
Account for $wgSquidMaxage in OutputPage::checkLastModified().

* This deals with the fact that seldom edited pages can end up cached
  with very stale resource (JS/CSS) references since the response to
  IMS GET requests will be 304 Not Modified if page_touched is ancient.
  When squid revalidates its stale cache it will keep getting 304s and
  renewing the TTL on the stale cache.

Bug: 44570
Change-Id: I3889f300012aeabd37e228653279ad19b296e4ae

11 years agoMerge "Cleanup and performance tweaks for BacklinkCache."
jenkins-bot [Tue, 16 Apr 2013 06:50:19 +0000 (06:50 +0000)]
Merge "Cleanup and performance tweaks for BacklinkCache."

11 years agoPushed updateCategoryCounts() to transaction end to reduce contention.
Aaron Schulz [Thu, 11 Apr 2013 21:02:12 +0000 (14:02 -0700)]
Pushed updateCategoryCounts() to transaction end to reduce contention.

* This can really be a problem if locks are held during file related operations.

Change-Id: I00107ffc9951915d3af6002b258b3dae2de5fa92

11 years ago[Database] Added onTransactionPreCommitOrIdle() function.
Aaron Schulz [Thu, 11 Apr 2013 06:54:14 +0000 (23:54 -0700)]
[Database] Added onTransactionPreCommitOrIdle() function.

* Also fixed case where onTransactionIdle() could start uncommitted
  transactions if there was no transanction and DBO_TRX was set.

Change-Id: I0bf6171fac692cf3d6e04011321bed075f58724b

11 years agoMerge "Set Agora font stack to mw-ui-container in Vector"
jenkins-bot [Mon, 15 Apr 2013 22:24:36 +0000 (22:24 +0000)]
Merge "Set Agora font stack to mw-ui-container in Vector"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 15 Apr 2013 21:11:56 +0000 (21:11 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Disable external entities in Import"
csteipp [Mon, 15 Apr 2013 20:56:14 +0000 (20:56 +0000)]
Merge "Disable external entities in Import"

11 years agoMerge "Add git HEAD date to Special:Version for core and extensions"
jenkins-bot [Mon, 15 Apr 2013 20:55:10 +0000 (20:55 +0000)]
Merge "Add git HEAD date to Special:Version for core and extensions"

11 years agoMerge "Disable external entities in XMLReader"
csteipp [Mon, 15 Apr 2013 20:55:07 +0000 (20:55 +0000)]
Merge "Disable external entities in XMLReader"

11 years agoMerge "Sanitize $limitReport before outputting"
csteipp [Mon, 15 Apr 2013 20:54:19 +0000 (20:54 +0000)]
Merge "Sanitize $limitReport before outputting"

11 years agoDisable external entities in Import
csteipp [Mon, 15 Apr 2013 20:47:10 +0000 (13:47 -0700)]
Disable external entities in Import

Temporarily disable loading entities in XMLReader when calling read()
during import.

bug: 47251

Change-Id: I0b39386e6cf4ec0244aab8ebc4095922511e2964

11 years agoDisable external entities in XMLReader
csteipp [Mon, 15 Apr 2013 20:44:23 +0000 (13:44 -0700)]
Disable external entities in XMLReader

Temporarily disable loading entities in XMLReader when calling read()
with libxml_disable_entity_loader(true).

bug: 46859

Change-Id: I0b2ef270f15c7b4da17edee680bf7e2410919915

11 years agoSanitize $limitReport before outputting
csteipp [Mon, 15 Apr 2013 20:42:02 +0000 (13:42 -0700)]
Sanitize $limitReport before outputting

Prevents possible injection of "-->" and other HTML by extensions using
the ParserLimitReport hook.

bug: 46084
Change-Id: Id97b6668da6df3e5e4c0acefffa00c82cac3c44a

11 years agoAdd git HEAD date to Special:Version for core and extensions
DaSch [Wed, 1 Aug 2012 20:49:17 +0000 (22:49 +0200)]
Add git HEAD date to Special:Version for core and extensions

The patch adds the localised commit date of i) core and ii) extensions
in the Special:Version page tables. It requires the Git version control
system being installed, which is checked during the installation.

Introduces a new parameter for the git binary in DefaultSettings.php:
$wgGitBin = '/usr/bin/git';

Patch authored by DaSch <dasch@daschmedia.de> and updated and fixed
by Wikinaut<mail@tgries.de>.

Bug: 38783
Change-Id: I0931400ecacf91ed2ab4fc7aa46dceac17661768

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 15 Apr 2013 20:43:19 +0000 (20:43 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie18fd3023c90008b80d8bf3eb888dce4d872fd90

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 15 Apr 2013 20:28:38 +0000 (20:28 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoFixed spacing in skins folder
umherirrender [Mon, 15 Apr 2013 19:38:16 +0000 (21:38 +0200)]
Fixed spacing in skins folder

Added spaces inside function calls
Added spaces before if, foreach
Replaced endif, endforeach with curly braces
Added some braces for one line statements

Change-Id: If934d5343ae28b1b54451754cb78358b213ea71c

11 years agoMerge "Moved JobQueueDB::recycleAndDeleteStaleJobs() function below overriden ones."
Brion VIBBER [Mon, 15 Apr 2013 18:15:41 +0000 (18:15 +0000)]
Merge "Moved JobQueueDB::recycleAndDeleteStaleJobs() function below overriden ones."

11 years agoMerge "(bug 42607) $.tablesorter: require separators when detecting dates"
jenkins-bot [Mon, 15 Apr 2013 17:09:42 +0000 (17:09 +0000)]
Merge "(bug 42607) $.tablesorter: require separators when detecting dates"

11 years agoMerge "5 new tests (3 Parsoid serializer, 2 parser) & fixed 4 tests."
GWicke [Mon, 15 Apr 2013 16:46:32 +0000 (16:46 +0000)]
Merge "5 new tests (3 Parsoid serializer, 2 parser) & fixed 4 tests."

11 years agoGet rid of wfScript in MediaWikiSite::normalizePageName
Tobias Gritschacher [Mon, 15 Apr 2013 09:50:07 +0000 (11:50 +0200)]
Get rid of wfScript in MediaWikiSite::normalizePageName

wfScript should not be used to construct URLs for calls to other wikis

Bug: 47242
Change-Id: Id5aaa58f10d513e082b217aeb8d88b8228341a48

11 years agoRemoved old cache update b/c code from 2007.
Aaron Schulz [Thu, 11 Apr 2013 18:12:52 +0000 (11:12 -0700)]
Removed old cache update b/c code from 2007.

Change-Id: Ia19062cb48f7748501c061544b2949bf3beaba4d

11 years agoModifying ArticleEditUpdateNewTalk hook so that it passes the recipient
kaldari [Sun, 14 Apr 2013 22:30:24 +0000 (15:30 -0700)]
Modifying ArticleEditUpdateNewTalk hook so that it passes the recipient

The recipient is the user who's talk page was edited. Extensions may
want to send or not send the notification based on some aspect of the
user, for example a preference.

Bug: 46550
Change-Id: Ifc8fbaf8fdc96f9c18c2a889d2e854e49b3a7010

11 years agoMerge "Fixed incorrect parameter passed to LoginForm::userBlockedMessage()"
jenkins-bot [Sun, 14 Apr 2013 22:04:25 +0000 (22:04 +0000)]
Merge "Fixed incorrect parameter passed to LoginForm::userBlockedMessage()"