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

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Wed, 31 Oct 2012 21:14:03 +0000 (22:14 +0100)]
Localisation updates from translatewiki.net.

Updates for namespace translations.

Change-Id: I75564db4fd71b75d3579b82647384bb9b4ccdbba

11 years agoMerge "[JobQueue] Added a test job that just replaces itself."
Aaron Schulz [Wed, 31 Oct 2012 20:52:04 +0000 (20:52 +0000)]
Merge "[JobQueue] Added a test job that just replaces itself."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Siebrand Mazeland [Wed, 31 Oct 2012 20:49:47 +0000 (20:49 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Wed, 31 Oct 2012 20:48:24 +0000 (21:48 +0100)]
Localisation updates from translatewiki.net.

Updates for magic words.

Change-Id: Ib1ee9f9b3b1fcac2f2c80b131f2dc122be43d532

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 31 Oct 2012 20:44:21 +0000 (20:44 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 31 Oct 2012 20:31:53 +0000 (20:31 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I2f44dd0bba99b33e2c11f770d30d448e58c99464

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Wed, 31 Oct 2012 19:41:40 +0000 (20:41 +0100)]
Localisation updates from translatewiki.net.

Updates for special pages aliases.

Change-Id: I18d500477d1de6df2b85b377c37076b9ac721557

11 years ago[JobQueue] Added a test job that just replaces itself.
Aaron Schulz [Wed, 31 Oct 2012 00:25:36 +0000 (17:25 -0700)]
[JobQueue] Added a test job that just replaces itself.

Change-Id: I257d68099660a9c95e68f7662ae8d5cf1ebefe27

11 years agoFix handling of prot-rel URLs in SiteObject.
daniel [Wed, 31 Oct 2012 19:16:36 +0000 (20:16 +0100)]
Fix handling of prot-rel URLs in SiteObject.

Previously, getProtocol() would return null for a protocol relative URL,
but the database field sites_protocol does not allow null as a value.
Changed getProtocol() to return an empty string instead.

Change-Id: I7e22cc3c3d8dca17a28fc4627083d5d2cb253887

11 years ago(bug 41582) Show "Page information" toolbox link to info action also in history etc.
Alex Monk [Wed, 31 Oct 2012 16:13:10 +0000 (16:13 +0000)]
(bug 41582) Show "Page information" toolbox link to info action also in history etc.

Change-Id: I831e3ba1c5ca0200e52a0e075e34c6de7c9103ef

11 years agoMerge "WikitextContentHandlerTest expects the messages to be in English."
Nikerabbit [Wed, 31 Oct 2012 07:27:01 +0000 (07:27 +0000)]
Merge "WikitextContentHandlerTest expects the messages to be in English."

11 years agoMerge "Proper directionality for entry points table"
Nikerabbit [Wed, 31 Oct 2012 06:56:22 +0000 (06:56 +0000)]
Merge "Proper directionality for entry points table"

11 years ago[FileRepo] Changed "publishBatch" to handle failure better.
Aaron Schulz [Tue, 30 Oct 2012 02:04:03 +0000 (19:04 -0700)]
[FileRepo] Changed "publishBatch" to handle failure better.

* Instead of moving the current file to the archive name,
  and then storing the new one, copy the current file to the
  archive name and overwrite the new one. When and object store
  backend is used, this reduces the number of operations from
  COPY, DELETE, PUT to just COPY and PUT. This reduces the RTTs,
  chances for failures, and avoids the period of time where the
  file has no current version.
* Also removed the "force" option to make file changes more likely
  to be all or nothing.

Change-Id: I46fc5c5c1fda5b386958b57557942f500de9dc2c

11 years ago[FileBackend] Support "ignoreMissingSource" for copy and move operations.
Aaron Schulz [Mon, 29 Oct 2012 19:57:04 +0000 (12:57 -0700)]
[FileBackend] Support "ignoreMissingSource" for copy and move operations.

* This lets callers use "copy if exist" semantics more easily and avoids extra stat
  queries to the backend (since the cache is cleared before doOperations()).
* Tweaked FileOp::fileSha1() to reduce backend stat requests as 404s are not cached.

Change-Id: Icb5ca14b3316f273d53593f48979d14e113990e1

11 years ago[JobQueue] Make use of the isEmpty() function caching in pop().
Aaron Schulz [Wed, 31 Oct 2012 00:32:50 +0000 (17:32 -0700)]
[JobQueue] Make use of the isEmpty() function caching in pop().

Change-Id: I92f538f4eb1e912f3446423a0ca51d9a63bf4457

11 years agoWikitextContentHandlerTest expects the messages to be in English.
Platonides [Tue, 30 Oct 2012 22:48:17 +0000 (23:48 +0100)]
WikitextContentHandlerTest expects the messages to be in English.

The 4 testGetAutosummary were failing with the wiki configured
to a different language.

Change-Id: Ibb003a8d5758b25032e0e7df98dfc90d149409db

11 years agoMerge "[FileBackend] Made path normalization in FileOp more robust."
Demon [Tue, 30 Oct 2012 20:50:54 +0000 (20:50 +0000)]
Merge "[FileBackend] Made path normalization in FileOp more robust."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 30 Oct 2012 20:21:22 +0000 (20:21 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0bf66cb49b3111d95c4ae3a0d56935fe03065345

11 years ago(bug 37963) Fixed loading process for user options.
parent5446 [Mon, 29 Oct 2012 20:07:49 +0000 (16:07 -0400)]
(bug 37963) Fixed loading process for user options.

The bug has actually already been fixed, so this
patch just removes extraneous function calls and code in
User::getOption() and User::setOption(). It also adds
unit tests for user options (including a test for the
case provided in the bug report).

Change-Id: Idd8af9cf1a26a4adbde3ca71dde64539ecd0a207

11 years agoMerge "[FileBackend] Use the new CloudFiles metadata functions."
Demon [Tue, 30 Oct 2012 18:30:24 +0000 (18:30 +0000)]
Merge "[FileBackend] Use the new CloudFiles metadata functions."

11 years agoMerge "(bug 41494) Honor $wgLogExceptionBacktrace in APIMain"
IAlex [Tue, 30 Oct 2012 18:29:31 +0000 (18:29 +0000)]
Merge "(bug 41494) Honor $wgLogExceptionBacktrace in APIMain"

11 years ago(bug 40574) hints for generatexml param in api modules
umherirrender [Sat, 13 Oct 2012 18:01:38 +0000 (20:01 +0200)]
(bug 40574) hints for generatexml param in api modules

Change-Id: I782d64eed5faac6836a57463e195e64c4314199c

11 years ago[FileBackend] Use the new CloudFiles metadata functions.
Aaron Schulz [Mon, 22 Oct 2012 18:58:08 +0000 (11:58 -0700)]
[FileBackend] Use the new CloudFiles metadata functions.

* This helps proof against annoying case sensitivity and case mangling issues.

Change-Id: I580f609847260ee8c5bd99926a615f88bb7395d6

11 years ago[FileBackend] Made path normalization in FileOp more robust.
Aaron Schulz [Tue, 30 Oct 2012 09:11:53 +0000 (02:11 -0700)]
[FileBackend] Made path normalization in FileOp more robust.

* This normalizes all the storage paths on object construction.

Change-Id: Ie50fc47a66e441992ea0b9659854d9f38c05925c

11 years ago[FileBackend] Simplified code for handling "overwrite" parameter.
Aaron Schulz [Mon, 29 Oct 2012 23:56:43 +0000 (16:56 -0700)]
[FileBackend] Simplified code for handling "overwrite" parameter.

* Since doQuickOperations() implicitely sets "overwrite", and doOperations() handles it
  via FileOp, there is no reason to also have each backend double checking this parameter
  to handle it. The parameter is no implicit for all the *Internal() functions. This does
  not affect callers. It does reduce the amount of HEAD requests since 404s are not cached.

Change-Id: I7d827e16bc55fe5c7b9aa51ec0c6b2f7c0bb629e

11 years agoMerge "Don't fail on incomplete row info when exporting."
Brion VIBBER [Mon, 29 Oct 2012 23:02:56 +0000 (23:02 +0000)]
Merge "Don't fail on incomplete row info when exporting."

11 years ago[FileBackend] Simplified FileOpBatch code to have just one "run" function.
Aaron Schulz [Fri, 26 Oct 2012 23:15:27 +0000 (16:15 -0700)]
[FileBackend] Simplified FileOpBatch code to have just one "run" function.

Change-Id: Iae6c8e96e2558588f76f23c1ceb160a6fc372aa8

11 years agoDon't fail on incomplete row info when exporting.
daniel [Mon, 29 Oct 2012 21:47:19 +0000 (22:47 +0100)]
Don't fail on incomplete row info when exporting.

This allows XmlDumpWriter to output rows that are missing some
information without triggering php warnings.

This fixes warnings caused by the OAI extension when using
XmlDumpWriter::writeRevision without setting the row's
rev_parent_id field.

Generally, it seems convenient to allow optional fields to be unset
instead of skipping them if they are empty, but requiering them to be
set.

Change-Id: I246ba3a899bd9e833232444a11ac63e1b0225ab6