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

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

Change-Id: Ia34403425fd68e236a676f49faba0447df2bc0c5

11 years agoProper directionality for entry points table
Amir E. Aharoni [Mon, 29 Oct 2012 13:30:47 +0000 (15:30 +0200)]
Proper directionality for entry points table

The entry points table inherited the interface language's
dir and lang values. This caused weird display in RTL languages
and possible problems with webfonts, which work with the lang attribute.

This commit sets explicit lang="en" dir="ltr" for the whole entry points
table and explicit lang and dir of the current interface language for
the table headings.

Change-Id: I396ec98b4ea14d06bf91002b6bc4a293c09fdb33

11 years ago(bug 41494) Honor $wgLogExceptionBacktrace in APIMain
Brad Jorsch [Mon, 29 Oct 2012 20:52:44 +0000 (16:52 -0400)]
(bug 41494) Honor $wgLogExceptionBacktrace in APIMain

When the API catches a non-API exception, it logs the message but does
not record the backtrace. It should honor $wgLogExceptionBacktrace
(added in 1.20) to decide whether to log the backtrace or just the
message.

Change-Id: I33fcbebd0e41dc2fda0cd00f8779e013300c0494

11 years agoRevert "Deglobalization in EditPage.php"
Siebrand [Mon, 29 Oct 2012 20:11:41 +0000 (20:11 +0000)]
Revert "Deglobalization in EditPage.php"

Reverts I2c600915. Regular UI edits seem to go through fine, but things go
horribly wrong for reasons unknown to me in for example LiquidThreads.
That's of course not acceptable, so reverting. Also see bug 41497.

Change-Id: Id95e279c0ec0fbcc162983a12434282f55e8489e

11 years agoMerge "(bug 41042) Regression: API action=parse with nonexistent page"
Catrope [Mon, 29 Oct 2012 20:03:16 +0000 (20:03 +0000)]
Merge "(bug 41042) Regression: API action=parse with nonexistent page"

11 years agoMerge "list=allusers&aurights=[unusedright] returns all users of the wiki"
Catrope [Mon, 29 Oct 2012 19:44:18 +0000 (19:44 +0000)]
Merge "list=allusers&aurights=[unusedright] returns all users of the wiki"

11 years ago(Bug 41436) Tone down sanity check, just warn, don't die.
daniel [Mon, 29 Oct 2012 18:51:50 +0000 (19:51 +0100)]
(Bug 41436) Tone down sanity check, just warn, don't die.

This is a follow-up to I9db228c3 fixing an issue with undelete:

Page ID 47009 mismatches the ID 47010 provided by the Title object.

Backtrace:

0 /var/www/CephWiki/core/includes/Revision.php(188): Revision->__construct(Array)
1 /var/www/CephWiki/core/includes/specials/SpecialUndelete.php(548): Revision::newFromArchiveRow(Object(stdClass), Array)
2 /var/www/CephWiki/core/includes/specials/SpecialUndelete.php(381): PageArchive->undeleteRevisions(Array, false, '')
3 /var/www/CephWiki/core/includes/specials/SpecialUndelete.php(1510): PageArchive->undelete(Array, '', Array, false, Object(User))
4 /var/www/CephWiki/core/includes/specials/SpecialUndelete.php(778): SpecialUndelete->undelete()
5 /var/www/CephWiki/core/includes/SpecialPage.php(599): SpecialUndelete->execute(NULL)

Change-Id: I0517c5826bcba2a85fee596b0473a16da26c3b2f

11 years ago[FileRepo] Fixed purging for "short style" thumbnail names.
Aaron Schulz [Mon, 29 Oct 2012 18:09:43 +0000 (11:09 -0700)]
[FileRepo] Fixed purging for "short style" thumbnail names.

Change-Id: If63b4c609b7bc43cda658cb87abe59562b335c69

11 years agoPassing the undid revisionId from the API request to the WebRequest
Kaldari [Sun, 28 Oct 2012 23:05:40 +0000 (16:05 -0700)]
Passing the undid revisionId from the API request to the WebRequest

This is so that Echo can detect when a revision is undone via the
API. wpUndidRevision is the same param used by the 'undo' button in
in the History view.

Change-Id: I82440eb442759335800cee49fd53528fcfd92ed6

11 years ago(bug 41042) Regression: API action=parse with nonexistent page
Brad Jorsch [Tue, 16 Oct 2012 15:42:54 +0000 (11:42 -0400)]
(bug 41042) Regression: API action=parse with nonexistent page

Changeset Iec98e472 changed the behavior of action=parse&page=... when
passed a page that does not exist: previously, it would return a
"missingtitle" error instead of assuming an empty page. As some people
had been depending on this old behavior, restore the error checking.

Change-Id: I4c76ce458ceb01e233c6074cd9251879013ec143

11 years agoMerge "OutputPage::addWikiTextTitleTidy() requires variable as second para"
IAlex [Mon, 29 Oct 2012 17:11:17 +0000 (17:11 +0000)]
Merge "OutputPage::addWikiTextTitleTidy() requires variable as second para"

11 years ago(Bug 41493) Move PageContentLanguage hook to Content class
daniel [Mon, 29 Oct 2012 17:08:04 +0000 (18:08 +0100)]
(Bug 41493) Move PageContentLanguage hook to Content class

This change moves the PageContentLanguage hook from Title::getPageLanguage
to Content::getPageLanguage, so the hook is no longer bypassed by
Content::getPageViewLanguage and consequently Title::getPageViewLanguage.

Change-Id: I51dabe9aee9d544483e7416a8fdf7721638d21bf

11 years agoMerge "(Big 41436) Make sure Revision knows page Title."
Reedy [Mon, 29 Oct 2012 16:45:30 +0000 (16:45 +0000)]
Merge "(Big 41436) Make sure Revision knows page Title."

11 years agoOutputPage::addWikiTextTitleTidy() requires variable as second para
Siebrand Mazeland [Mon, 29 Oct 2012 16:26:13 +0000 (17:26 +0100)]
OutputPage::addWikiTextTitleTidy() requires variable as second para

Was trowing PHP Strict Standards: Only variables should be passed by
reference.

Change-Id: I97ede1c61636c9758408b66b84694c2a5825a259

11 years agoFix typo in method
Siebrand Mazeland [Mon, 29 Oct 2012 16:03:27 +0000 (17:03 +0100)]
Fix typo in method

Change-Id: I023a5417e62a56125b9e59197ac33f6f48094e2b

11 years agoMerge "Update some external conversion tables to latest versions"
Hashar [Mon, 29 Oct 2012 15:46:22 +0000 (15:46 +0000)]
Merge "Update some external conversion tables to latest versions"

11 years agoMerge "Deglobalization in EditPage.php"
Reedy [Mon, 29 Oct 2012 15:43:21 +0000 (15:43 +0000)]
Merge "Deglobalization in EditPage.php"

11 years ago(Big 41436) Make sure Revision knows page Title.
daniel [Mon, 29 Oct 2012 15:21:27 +0000 (16:21 +0100)]
(Big 41436) Make sure Revision knows page Title.

With $wgContentHandlerUseDB, Revision needs access to the page's Title
object to determin the page's default content model. This apparently
failed in production for newly created pages (supposedly because of
some complication with database transactions or master/client setup).

This change makes WikiPage::doEditContent pass the Title object
directly to the Revision to avoid any database issues. This also
gets rid of a pointless database read.

Change-Id: I9db228c3fcda0f8dfe52be1659014a6e4b4775af

11 years agoWarn when creating TextContent around false/null.
daniel [Fri, 26 Oct 2012 10:43:02 +0000 (12:43 +0200)]
Warn when creating TextContent around false/null.

Instantiating a TextContent instance around a null or false value
instead of a string may indicate an error and should thus trigger
a warning and thereby make tests fail.

Change-Id: I0864bbf31040d0c5db96a90ff427dc9dd3ccbd67

11 years agoBack out config table and related code
Reedy [Mon, 22 Oct 2012 22:51:26 +0000 (23:51 +0100)]
Back out config table and related code

Change-Id: I4fa180d45984a4ec2b2c7b1149015c6dad14c5f0

11 years agoMerge "Cache the result of User::getDefaultOptions"
Demon [Mon, 29 Oct 2012 14:21:42 +0000 (14:21 +0000)]
Merge "Cache the result of User::getDefaultOptions"

11 years agoSymlink README.mediawiki to README so Github renders it as wikitext.
Alex Monk [Mon, 29 Oct 2012 03:12:31 +0000 (03:12 +0000)]
Symlink README.mediawiki to README so Github renders it as wikitext.

The README file is displayed at https://github.com/mediawiki/core but is not parsed as wikitext.
This change should fix that.
Unfortunately this doesn't work for viewing other files, where it just shows the name of the destination of the symlink.

Change-Id: I56b29da20a0ea45d3cb4ad6cc98091406886cb79

11 years agoMerge "Stash global only once per test case."
Nikerabbit [Mon, 29 Oct 2012 12:15:37 +0000 (12:15 +0000)]
Merge "Stash global only once per test case."

11 years agoAdd the page content language to the page information
robin [Thu, 25 Oct 2012 23:07:42 +0000 (01:07 +0200)]
Add the page content language to the page information

Change-Id: Id2aa19c66b299e3462cf3bea4020827f9f2ee1ef

11 years agoMerge "(bug 32237) Add GENDER support to Special:EmailUser"
Siebrand [Mon, 29 Oct 2012 10:32:06 +0000 (10:32 +0000)]
Merge "(bug 32237) Add GENDER support to Special:EmailUser"

11 years agoDeglobalization in EditPage.php
Siebrand Mazeland [Mon, 8 Oct 2012 11:56:48 +0000 (13:56 +0200)]
Deglobalization in EditPage.php

Some details:
* Using context as much as possible.
* Changed mTitle/mArticle to getTitle()/getArticle().
* Tweaked some comments.
* Broke some long lines.

Change-Id: I2c600915d8a4af98215de9bf9d2d60abdc675fab