lhc/web/wiklou.git
11 years agoMerge "ORMRow must not ignore failures on insert by deault."
Aaron Schulz [Tue, 6 Nov 2012 20:57:57 +0000 (20:57 +0000)]
Merge "ORMRow must not ignore failures on insert by deault."

11 years agoMerge "Doc tweak: variable is actually $isKnown and is a reference"
IAlex [Tue, 6 Nov 2012 19:55:59 +0000 (19:55 +0000)]
Merge "Doc tweak: variable is actually $isKnown and is a reference"

11 years agoMerge "Tweaking CSS of badge display per Vibha'a design"
Kaldari [Tue, 6 Nov 2012 19:53:50 +0000 (19:53 +0000)]
Merge "Tweaking CSS of badge display per Vibha'a design"

11 years agoDoc tweak: variable is actually $isKnown and is a reference
Chad Horohoe [Tue, 6 Nov 2012 19:52:30 +0000 (14:52 -0500)]
Doc tweak: variable is actually $isKnown and is a reference

Change-Id: Ib68ea809cbda50b445865bcde22ad7583c8e7f38

11 years agoMerge "Fix for Iaac1bb9a (6b2b06d): remove leading space"
Nikerabbit [Tue, 6 Nov 2012 17:13:36 +0000 (17:13 +0000)]
Merge "Fix for Iaac1bb9a (6b2b06d): remove leading space"

11 years agoFix for Iaac1bb9a (6b2b06d): remove leading space
Alexandre Emsenhuber [Tue, 6 Nov 2012 12:25:40 +0000 (13:25 +0100)]
Fix for Iaac1bb9a (6b2b06d): remove leading space

Change-Id: I866946c71f1454bee91e02386df166f4363b69d1

11 years ago(bug 41796) follow-up for Ic9e728f8, release db connection in ORMRow
aude [Tue, 6 Nov 2012 10:31:58 +0000 (10:31 +0000)]
(bug 41796) follow-up for Ic9e728f8, release db connection in ORMRow

Change-Id: Id6943933d5ceef212515836b179c90180dac691a

11 years agoMerge "Update AutoLoader"
Hashar [Tue, 6 Nov 2012 09:17:53 +0000 (09:17 +0000)]
Merge "Update AutoLoader"

11 years agoMerge "update export-demo.xml to version-0.8.xsd"
Hashar [Tue, 6 Nov 2012 09:04:34 +0000 (09:04 +0000)]
Merge "update export-demo.xml to version-0.8.xsd"

11 years agoMerge "Fix escaping of pattern in export-0.8.xsd"
Hashar [Tue, 6 Nov 2012 09:02:12 +0000 (09:02 +0000)]
Merge "Fix escaping of pattern in export-0.8.xsd"

11 years agoMerge "Clean up: Fix trailing comments from I7e22cc3c"
Hashar [Tue, 6 Nov 2012 08:56:28 +0000 (08:56 +0000)]
Merge "Clean up: Fix trailing comments from I7e22cc3c"

11 years agoTweaking CSS of badge display per Vibha'a design
Kaldari [Tue, 6 Nov 2012 01:08:34 +0000 (17:08 -0800)]
Tweaking CSS of badge display per Vibha'a design

Change-Id: I81bc2fdaf41de4f0fe864693b7217fe380e2aca6

11 years agoFixed version docs for job queue.
Aaron Schulz [Tue, 6 Nov 2012 00:43:44 +0000 (16:43 -0800)]
Fixed version docs for job queue.

Change-Id: Icdea3acb4787142a383c0a2942f72821cb8ad99e

11 years agoMerge "(Bug 41672) Drop possessive in personal tools"
Demon [Mon, 5 Nov 2012 23:08:53 +0000 (23:08 +0000)]
Merge "(Bug 41672) Drop possessive in personal tools"

11 years agoMerge "mw.loader: Fixes for <script> and <link> loading."
Catrope [Mon, 5 Nov 2012 22:51:53 +0000 (22:51 +0000)]
Merge "mw.loader: Fixes for <script> and <link> loading."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 5 Nov 2012 21:17:04 +0000 (21:17 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 5 Nov 2012 21:01:44 +0000 (21:01 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ia1a36909e24d3dd843a94d529c8a9871d4a558bc

11 years agoMerge "Extend category/p interaction test with indent and template"
Subramanya Sastry [Mon, 5 Nov 2012 20:52:10 +0000 (20:52 +0000)]
Merge "Extend category/p interaction test with indent and template"

11 years agomake ORMRow compatible with load balancer, replace usage of wfGetDB( DB_MASTER )
aude [Mon, 5 Nov 2012 19:57:47 +0000 (20:57 +0100)]
make ORMRow compatible with load balancer, replace usage of wfGetDB( DB_MASTER )

Change-Id: Ic9e728f8d2f83906fee6c4877296ad0759a7b539

11 years agoExtend category/p interaction test with indent and template
Gabriel Wicke [Mon, 5 Nov 2012 19:29:19 +0000 (11:29 -0800)]
Extend category/p interaction test with indent and template

Change-Id: I2e6a3a79c4e48adfcd5d85beecf957a8281ab5fd

11 years agoAdd a test for category link / paragraph interactions
Gabriel Wicke [Mon, 5 Nov 2012 19:05:53 +0000 (11:05 -0800)]
Add a test for category link / paragraph interactions

Change-Id: I78c5be65681a7ff1771530dec1ca91167dd9d26b

11 years ago(Bug 41672) Drop possessive in personal tools
Ori Livneh [Sat, 3 Nov 2012 05:43:03 +0000 (22:43 -0700)]
(Bug 41672) Drop possessive in personal tools

The repeated inclusion of the posessive in each label is
obnoxious. Other languages have gotten rid of it already
(Dutch, for example). The Bugzilla thread for the bug
contains some insightful reflections about UI implications.

Change-Id: I5382dfa2021f957e349523af8667329593a8bcf5

11 years agoMerge "Some cleanup of doApiRequest in test module"
Daniel Kinzler [Mon, 5 Nov 2012 15:13:18 +0000 (15:13 +0000)]
Merge "Some cleanup of doApiRequest in test module"

11 years agomw.loader: Fixes for <script> and <link> loading.
Timo Tijhof [Wed, 24 Oct 2012 18:13:26 +0000 (20:13 +0200)]
mw.loader: Fixes for <script> and <link> loading.

addScript:
* Integrate fixes from jQuery where this function is based on.
  * Set properties instead of attributes (faster, shorter and
    less potential bugs)
  * Set async property (why not!)
  * Remove redundant try/catch. Whatever this was for,
    apparently not needed anymore. Follows-up 41d636d3.

mw.loader.load( , text/css ):
* (bug 41331) Security warnings in IE7 for protocol-relative
  urls for stylesheets in mw.loader.load.
  Fixed by using properties instead of attributes. Not sure why.
  Probably related to how IE "normalises" urls when set as
  attribute, which would not happen as much when setting a
  property.

importStylesheetURI:
* Remove redundant .type property, fix space.

Change-Id: I04f1775213633e6822b4f982fd43a35b19d19531

11 years agoClean up: Fix trailing comments from I7e22cc3c
Timo Tijhof [Wed, 31 Oct 2012 21:28:36 +0000 (22:28 +0100)]
Clean up: Fix trailing comments from I7e22cc3c

Change-Id: I1d462e44460d9150c19f158ad8323b6d43f399cc

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 4 Nov 2012 21:13:22 +0000 (21:13 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If49f923a7112dcca2fc23387fa32491275766b99

11 years agoreplace # by // for comments
jeroendedauw [Sun, 4 Nov 2012 18:17:04 +0000 (19:17 +0100)]
replace # by // for comments

Change-Id: Ifd60bc086023a6cb06d9f5aff3ae857eed6ea4d7

11 years agoMerge "mw.notification: fix error on notif. close with $.fx.off=true"
TheDJ [Sun, 4 Nov 2012 12:18:48 +0000 (12:18 +0000)]
Merge "mw.notification: fix error on notif. close with $.fx.off=true"

11 years agoMerge "Correcting system message linksearch-text"
Raimond Spekking [Sun, 4 Nov 2012 11:02:23 +0000 (11:02 +0000)]
Merge "Correcting system message linksearch-text"

11 years agoMerge "Update whatlinkshere-hideimages to file inclusion"
Raimond Spekking [Sun, 4 Nov 2012 10:18:34 +0000 (10:18 +0000)]
Merge "Update whatlinkshere-hideimages to file inclusion"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 3 Nov 2012 23:15:01 +0000 (23:15 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I2e43f9f473f61f199ce877b5cbb3584b36e10c87

11 years agoUpdate whatlinkshere-hideimages to file inclusion
Federico Leva [Sat, 3 Nov 2012 22:24:02 +0000 (23:24 +0100)]
Update whatlinkshere-hideimages to file inclusion

«To match MediaWiki:Imagelinks.
This message also applies to sounds, videos, and other media files.»
Cf. https://en.wikipedia.org/wiki/MediaWiki_talk:Whatlinkshere-hideimages

Change-Id: Ib2274339195d3ca1754a7f7455b0234a36254fb3

11 years agoFix escaping of pattern in export-0.8.xsd
umherirrender [Sat, 3 Nov 2012 18:38:58 +0000 (19:38 +0100)]
Fix escaping of pattern in export-0.8.xsd

ExportDemoTest::testExportDemo
xml not valid against xsd: DOMDocument::schemaValidate(): failed to
compile: Wrong escape sequence, misuse of character '\'

Change-Id: Iefae25270b0ad1bf3aa587a51eec3fec1866cff8

11 years agoupdate export-demo.xml to version-0.8.xsd
umherirrender [Sat, 3 Nov 2012 18:37:02 +0000 (19:37 +0100)]
update export-demo.xml to version-0.8.xsd

Add a assertion to the validation test to ensure, export-demo.xml is
updated next time, when a new version is created.

Change-Id: I004ca23d848dd6701acb45e9b755397b434370c4

11 years agoUpdate AutoLoader
Alexandre Emsenhuber [Sat, 3 Nov 2012 09:10:44 +0000 (10:10 +0100)]
Update AutoLoader

Remove non-existing Uri class and add missing MWContentSerializationException class.

Change-Id: I8a0c4d42d8e4e7a80a5155ad8b1dd51c73dc3f05

11 years agoMerge "(bug 41295) Galician date and time localization"
IAlex [Sat, 3 Nov 2012 08:26:26 +0000 (08:26 +0000)]
Merge "(bug 41295) Galician date and time localization"

11 years ago(bug 41295) Galician date and time localization
Niklas Laxström [Fri, 2 Nov 2012 21:23:44 +0000 (21:23 +0000)]
(bug 41295) Galician date and time localization

Example 3 de novembro de 2012 ás 00:20

Change-Id: Iaac1bb9ab375b561fc63a57249e799e15066ecb9

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 2 Nov 2012 19:33:22 +0000 (19:33 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 2 Nov 2012 19:29:51 +0000 (19:29 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I98a5bfb76ba9d6ac7ecce3c3c1e284a7e9d1d190

11 years agoMoved FileBackend tests to /filebackend.
Aaron Schulz [Fri, 2 Nov 2012 19:12:02 +0000 (12:12 -0700)]
Moved FileBackend tests to /filebackend.

Change-Id: Ieb789ac1c9803f74bad3a4fef3a57587d6dd6260

11 years agoMerge "(bug 26995) Update filename field on Special:Upload after sanitizing"
Kaldari [Fri, 2 Nov 2012 18:02:11 +0000 (18:02 +0000)]
Merge "(bug 26995) Update filename field on Special:Upload after sanitizing"

11 years agoMerge "Allow ExtractThumbParameters before local regexp"
Aaron Schulz [Fri, 2 Nov 2012 17:36:22 +0000 (17:36 +0000)]
Merge "Allow ExtractThumbParameters before local regexp"

11 years agoMerge "Also ignore sublime project files"
IAlex [Fri, 2 Nov 2012 16:55:12 +0000 (16:55 +0000)]
Merge "Also ignore sublime project files"

11 years ago(bug 26995) Update filename field on Special:Upload after sanitizing
Derk-Jan Hartman [Sat, 25 Aug 2012 23:25:12 +0000 (01:25 +0200)]
(bug 26995) Update filename field on Special:Upload after sanitizing

Patchset 4: Whitespace fix and comment fixes
Patchset 6: Whitespace fix and rebase
Patchset 7: Alignment of comment

Change-Id: I85656a3647766f8a35a7baae1c656d8dc315fc91

11 years agoMerge "Document what ParserOutput::setProperty() is for"
Hashar [Fri, 2 Nov 2012 15:37:35 +0000 (15:37 +0000)]
Merge "Document what ParserOutput::setProperty() is for"

11 years agoDocument what ParserOutput::setProperty() is for
Tim Starling [Mon, 22 Oct 2012 00:58:05 +0000 (11:58 +1100)]
Document what ParserOutput::setProperty() is for

Change-Id: I88735b1ebc9b8423b4fbe7b196dfc914f95818fd

11 years agoraise timeout for WikiPage tests
Antoine Musso [Fri, 2 Nov 2012 14:22:54 +0000 (15:22 +0100)]
raise timeout for WikiPage tests

The tests do lot of DB queries which are quiet slow when using a SQLite
backend. Marking the class as belonging to the 'medium' group should
raise the timeout to 10 seconds.

Change-Id: I7a779bf4e5f44e755055182e0feeb68c005a920c

11 years agoMerge "Fix handling of strings containing \0 in SQLite."
daniel [Fri, 2 Nov 2012 14:18:15 +0000 (14:18 +0000)]
Merge "Fix handling of strings containing \0 in SQLite."

11 years agoFix handling of strings containing \0 in SQLite.
daniel [Wed, 31 Oct 2012 14:27:57 +0000 (15:27 +0100)]
Fix handling of strings containing \0 in SQLite.

This change provides a workaround and test case for a problem
in the sqlite library:

SQLite truncates strings at ASCII value 00 aka \0. Strings
containing \0 need to be represented in hexadecimal form.

Reported to PHP as bug 63419
 https://bugs.php.net/bug.php?id=63419

Change-Id: I2bbc445ffebd41e181edfc3201e6e5514de06142

11 years agoMerge "minor style improvements"
IAlex [Fri, 2 Nov 2012 13:21:29 +0000 (13:21 +0000)]
Merge "minor style improvements"

11 years agoMerge "(bug 40610) Prevent editing textarea from overflowing out of bodyContent"
TheDJ [Fri, 2 Nov 2012 13:15:25 +0000 (13:15 +0000)]
Merge "(bug 40610) Prevent editing textarea from overflowing out of bodyContent"

11 years agominor style improvements
jeroendedauw [Fri, 2 Nov 2012 12:09:42 +0000 (13:09 +0100)]
minor style improvements

Change-Id: Iae617e8967e98b4aad596fa2de784b3b6c36a11d

11 years agoMerge "Localisation updates from http://translatewiki.net."
IAlex [Fri, 2 Nov 2012 09:20:33 +0000 (09:20 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoAllow ExtractThumbParameters before local regexp
Jan Gerber [Fri, 2 Nov 2012 08:44:22 +0000 (08:44 +0000)]
Allow ExtractThumbParameters before local regexp

ExtractThumbParameters might be able to extract more params but still
match the local regexp. To be able to extract all params, check
ExtractThumbParameters first and only fallback to regexp.

Change-Id: I26efdec1af5fb2bd5e3cc503f36692d12668b2e2

11 years agoCorrect URL in comment; currently points to wrong post
Ori Livneh [Fri, 2 Nov 2012 06:27:14 +0000 (23:27 -0700)]
Correct URL in comment; currently points to wrong post

I'm not 100% this is the post that was intended, but it
seems most plausible to me.

Change-Id: I8fded0ffe5956cea8140f4c5d13ccbc1eb33299d

11 years ago[JobQueue] Actually use the right job_random value.
Aaron Schulz [Fri, 2 Nov 2012 00:36:34 +0000 (17:36 -0700)]
[JobQueue] Actually use the right job_random value.

Change-Id: Ie2b4ababe79fac8841400ee9edfa1ce298ec739e

11 years agoMerge "(Bug 41493) Move PageContentLanguage hook to Content class"
SPQRobin [Thu, 1 Nov 2012 23:55:20 +0000 (23:55 +0000)]
Merge "(Bug 41493) Move PageContentLanguage hook to Content class"

11 years agorephrase underline-default message
MatmaRex [Thu, 1 Nov 2012 16:49:53 +0000 (17:49 +0100)]
rephrase underline-default message

Most skins override this, so this isn't really the browser's default.

Change-Id: Iafc5837f4a55e2852ec215bc4d2d7ddaba7834aa

11 years agoMerge "Adding primary authors of Wikidata branch"
Nikerabbit [Thu, 1 Nov 2012 22:08:58 +0000 (22:08 +0000)]
Merge "Adding primary authors of Wikidata branch"

11 years agoAlso ignore sublime project files
Chad Horohoe [Thu, 1 Nov 2012 21:37:48 +0000 (17:37 -0400)]
Also ignore sublime project files

Change-Id: I3f7ea6a6ce123aff7f422b3e6f59f38f21c4ff00

11 years agoMerge "Use $this->getTitle() instead of $out->getTitle()"
Demon [Thu, 1 Nov 2012 20:46:35 +0000 (20:46 +0000)]
Merge "Use $this->getTitle() instead of $out->getTitle()"

11 years agoMerge "Link $wgVersion on Special:Version to Release Notes"
Aaron Schulz [Thu, 1 Nov 2012 20:39:43 +0000 (20:39 +0000)]
Merge "Link $wgVersion on Special:Version to Release Notes"

11 years agoLink $wgVersion on Special:Version to Release Notes
Reedy [Mon, 23 Jul 2012 18:48:23 +0000 (19:48 +0100)]
Link $wgVersion on Special:Version to Release Notes

Change-Id: I38cbde2f02477e4d5e61892cf7575ff1c122149d

11 years agoAdding primary authors of Wikidata branch
Chad Horohoe [Thu, 1 Nov 2012 20:08:23 +0000 (16:08 -0400)]
Adding primary authors of Wikidata branch

Largest branch merge of new features -> you deserve credit

Change-Id: I20a0c781b3a7c652baf254003d8a91bb996afc26

11 years agoMerge "[FileBackend] Check if paths are writable for delete ops too."
Demon [Thu, 1 Nov 2012 19:56:07 +0000 (19:56 +0000)]
Merge "[FileBackend] Check if paths are writable for delete ops too."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 1 Nov 2012 19:47:31 +0000 (19:47 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id2a8aa1cd7d182dc9070115709ffdb390cc4e93d

11 years agoMerge "Use LogFormatter to format rights log."
Nikerabbit [Thu, 1 Nov 2012 18:51:09 +0000 (18:51 +0000)]
Merge "Use LogFormatter to format rights log."

11 years agoMerge "Added Parsoid WT escaping tests (several disabled for PHP parser)."
GWicke [Thu, 1 Nov 2012 18:27:04 +0000 (18:27 +0000)]
Merge "Added Parsoid WT escaping tests (several disabled for PHP parser)."

11 years agofixed type hints
jeroendedauw [Thu, 1 Nov 2012 17:38:14 +0000 (18:38 +0100)]
fixed type hints

Change-Id: If7739f094e770fadfb7b5d9e270c9553331115a0

11 years agoSome cleanup of doApiRequest in test module
jeroendedauw [Thu, 1 Nov 2012 17:36:10 +0000 (18:36 +0100)]
Some cleanup of doApiRequest in test module

Change-Id: Ia5bdf04c5b43c551f383af9fd078528e14d07efc

11 years agoFixed MessageCache::parseText() and fixed docs for MessageCache::parse()
Aaron Schulz [Thu, 1 Nov 2012 17:13:30 +0000 (10:13 -0700)]
Fixed MessageCache::parseText() and fixed docs for MessageCache::parse()

Change-Id: Ia297d9d0f893451a611051f9df7db3870b4c2333

11 years agoMerge "(bug 36276) add redlink styles to legacy shared.css"
MarkTraceur [Thu, 1 Nov 2012 17:24:11 +0000 (17:24 +0000)]
Merge "(bug 36276) add redlink styles to legacy shared.css"

11 years ago(bug 36276) add redlink styles to legacy shared.css
MatmaRex [Thu, 1 Nov 2012 17:16:34 +0000 (18:16 +0100)]
(bug 36276) add redlink styles to legacy shared.css

This is mostly intended to fix the display in Myskin.

Change-Id: Ib519ad5b8091f7912cebba6b090d404f340f20bf

11 years agoMerge "CologneBlue rewrite: rewrite bottomLinks()"
TheDJ [Thu, 1 Nov 2012 17:02:28 +0000 (17:02 +0000)]
Merge "CologneBlue rewrite: rewrite bottomLinks()"

11 years agoMerge "(Bug 41574) Supply Title object to Revision if possible."
Demon [Thu, 1 Nov 2012 16:48:48 +0000 (16:48 +0000)]
Merge "(Bug 41574) Supply Title object to Revision if possible."

11 years agoAdded Parsoid WT escaping tests (several disabled for PHP parser).
Subramanya Sastry [Thu, 1 Nov 2012 16:21:10 +0000 (11:21 -0500)]
Added Parsoid WT escaping tests (several disabled for PHP parser).

* Parsoid has to convert HTML to Wikitext in order to support the
  Visual Editor.  As part of this, it has to insert nowiki escapes
  in several places wherever the text might be interpreted as
  valid wikitext markup.  The new tests test Parsoid's wikitext
  escaping capabilities when the result HTML is serialized back to
  Wikitext.

Change-Id: I392a5cbc2eeca921fcd4c44cbc37615b583240a5

11 years agoMerge "(Bug 41617) Fix undelete."
Reedy [Thu, 1 Nov 2012 15:40:58 +0000 (15:40 +0000)]
Merge "(Bug 41617) Fix undelete."

11 years agoUse $this->getTitle() instead of $out->getTitle()
Alexandre Emsenhuber [Thu, 1 Nov 2012 13:51:12 +0000 (14:51 +0100)]
Use $this->getTitle() instead of $out->getTitle()

This is for consistency with other calls to the same method in the class.

Change-Id: I1ecd401cc5862ccb53211fc0a0754a2ac3debb7b

11 years agoMerge "(bug 41582) Show "Page information" toolbox link to info action also in histor...
IAlex [Thu, 1 Nov 2012 13:40:53 +0000 (13:40 +0000)]
Merge "(bug 41582) Show "Page information" toolbox link to info action also in history etc."

11 years agoMerge "race condition in CdbTests"
Antoine Musso [Thu, 1 Nov 2012 13:03:29 +0000 (13:03 +0000)]
Merge "race condition in CdbTests"

11 years ago(Bug 41574) Supply Title object to Revision if possible.
daniel [Thu, 1 Nov 2012 12:48:18 +0000 (13:48 +0100)]
(Bug 41574) Supply Title object to Revision if possible.

The Revision object needs the Title to determine the default content model.
Providing the Title explicitely wherever possible avoids an extra database
lookup. Most importanlty, this fixes fatal errors that ocurr when the
database lookup fails due to slave lag or transaction state.

Change-Id: I516e82f7a893b274c513b128b8a46db491160b55

11 years ago(Bug 41617) Fix undelete.
daniel [Thu, 1 Nov 2012 11:12:11 +0000 (12:12 +0100)]
(Bug 41617) Fix undelete.

Undeletion was broken twice:

1) originally, it failed silently, restoring revision entries with
the wrong number in rev_page.

2) I789e45bd restores an overly zealous sanity check, causing
undeletion to fail with a fatal error.

This change fixes both issues.

Change-Id: I796fe54e81773f7982ae9bc15ba30f2a2ee3f174

11 years agorace condition in CdbTests
Antoine Musso [Thu, 1 Nov 2012 10:48:18 +0000 (11:48 +0100)]
race condition in CdbTests

The CDB tests were attemptying to write in harcoded filename
/tmp/php.cdb and /tmp/dba.cdb. Whenever two jobs were running the same
test, we would end up with a mysteriously failling test. The test now
use random temporary file names.

Change-Id: Ia1e58f0c02418e6d01d6730f97b2103ed87eb4f4

11 years agoClarify error message for oldid info action
Federico Leva [Thu, 1 Nov 2012 08:47:02 +0000 (09:47 +0100)]
Clarify error message for oldid info action

According to qqq it's shown when info are requested for an oldid.
<https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Pageinfo-not-current/en>

Change-Id: I9c14867e216fb865d4a9109e10f3127c3c5c5a83

11 years ago[FileBackend] Check if paths are writable for delete ops too.
Aaron Schulz [Thu, 1 Nov 2012 06:36:49 +0000 (23:36 -0700)]
[FileBackend] Check if paths are writable for delete ops too.

* Also clarified the docs around isPathUsableInternal().

Change-Id: I3fc10fce43e040f45045d6da69f0211e9ab4155d

11 years agoMerge "Update parts order in message files"
IAlex [Thu, 1 Nov 2012 05:46:31 +0000 (05:46 +0000)]
Merge "Update parts order in message files"

11 years agoMerge "Localisation updates from http://translatewiki.net."
IAlex [Thu, 1 Nov 2012 05:42:46 +0000 (05:42 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Revert "(Bug 41436) Tone down sanity check, just warn, don't die.""
Aaron Schulz [Thu, 1 Nov 2012 05:04:24 +0000 (05:04 +0000)]
Merge "Revert "(Bug 41436) Tone down sanity check, just warn, don't die.""

11 years agoRevert "(Bug 41436) Tone down sanity check, just warn, don't die."
RobLa [Thu, 1 Nov 2012 04:58:19 +0000 (04:58 +0000)]
Revert "(Bug 41436) Tone down sanity check, just warn, don't die."

This reverts commit 770b6519bedcfdae9fe6debb22b349a61b84ab28

This seems to have introduced bug 41606.  By reverting, we get an exception rather than complete data loss.

11 years ago[JobQueue] Use "flush" option with commit().
Aaron Schulz [Wed, 31 Oct 2012 18:51:21 +0000 (11:51 -0700)]
[JobQueue] Use "flush" option with commit().

Change-Id: If612f8e282c1aa7014461f8878aa9721b30eeb42

11 years ago[JobQueue] Make sure broken/duplicate job removal counts in stats.
Aaron Schulz [Wed, 31 Oct 2012 03:14:59 +0000 (20:14 -0700)]
[JobQueue] Make sure broken/duplicate job removal counts in stats.

Change-Id: I09b3faa770172ce7aae457ef0af3dd5bafe7319d

11 years ago[JobQueue] Fixed while loop in claimOldest() function.
Aaron Schulz [Thu, 1 Nov 2012 03:49:58 +0000 (20:49 -0700)]
[JobQueue] Fixed while loop in claimOldest() function.

Change-Id: I326b767c08944bcfde83c5e7f4a8339cecbab6d4

11 years ago[JobQueue] Reduced deadlocks in claim() function.
Aaron Schulz [Wed, 31 Oct 2012 21:34:35 +0000 (14:34 -0700)]
[JobQueue] Reduced deadlocks in claim() function.

* Split claim() into claimRandom() and claimOldest().
* Added a new SELECT+UPDATE method that will automatically be used if there are slaves.
  This is what claimRandom() uses, which is the claim function used for random queues.
  This can handle torture testing with dozens of processes using NullJob without deadlocks.
* Made claimOldest() work using the same method as the old claim() method. Doing SELECT
  first won't really work that well in this case. The useless "job_random > 0" is now gone
  from the query, which actually alleviates deadlock problems too. This method is used for
  "timestamp" ordered queues.

Change-Id: Iaea96ff8eba2c918376f9465b54e9bbc3124f473

11 years agoMerge "Passing the undid revisionId from the API request to the WebRequest"
Tychay [Wed, 31 Oct 2012 23:33:10 +0000 (23:33 +0000)]
Merge "Passing the undid revisionId from the API request to the WebRequest"

11 years agoMerge "CologneBlue rewrite: output the sidebar items as <ul> lists"
TheDJ [Wed, 31 Oct 2012 22:42:21 +0000 (22:42 +0000)]
Merge "CologneBlue rewrite: output the sidebar items as <ul> lists"

11 years agoCologneBlue rewrite: rewrite bottomLinks()
MatmaRex [Fri, 5 Oct 2012 21:58:54 +0000 (23:58 +0200)]
CologneBlue rewrite: rewrite bottomLinks()

* use links already present in toolbar and navigational menus
* remove all the checks that have been thus made redundant
* introduce processBottomLink()
* remove all the functions that became obsolete
* fix up CSS
* add action=info link

Change-Id: I9486649e7b34f1ee33f5d529f3af5799369b3a11

11 years agoFixed nextJobDB.php to handle recent job queue changes.
Aaron Schulz [Wed, 31 Oct 2012 22:24:52 +0000 (15:24 -0700)]
Fixed nextJobDB.php to handle recent job queue changes.

Change-Id: I98533ed599d27bbfc9043e906a758e3bc8903de0

11 years agoCologneBlue rewrite: output the sidebar items as <ul> lists
MatmaRex [Sat, 27 Oct 2012 16:45:38 +0000 (18:45 +0200)]
CologneBlue rewrite: output the sidebar items as <ul> lists

This fixes the second part of bug 41456.

We also wrap each portlet in a <div> with class=portlet and an id like in
other skins (p-<heading-name>).

These changes should make CologneBlue more compatible with gadgets
and user-scripts that expect standard sidebar structure to add new links
to it.

Change-Id: I51c022bf22b881d4bd33c8d0e36c3e3226ac8b8f

11 years agoUpdate parts order in message files
Siebrand Mazeland [Wed, 31 Oct 2012 21:51:46 +0000 (22:51 +0100)]
Update parts order in message files

Update the order of parts in messages files. Not done for all files. Order set as:
fallback, encoding, namespace related, special pages, magic words, other (no fixed
ordering after magic words).

Change-Id: Ide5ec747ba62a8c2bca8040a14d0aeea8e6c79b9

11 years agoMerge "CologneBlue rewrite: rework quickbar() once again"
TheDJ [Wed, 31 Oct 2012 21:28:15 +0000 (21:28 +0000)]
Merge "CologneBlue rewrite: rework quickbar() once again"