Commit graph

45986 commits

Author SHA1 Message Date
daniel
7c94de3ca9 Merge "Fix handling of strings containing \0 in SQLite." 2012-11-02 14:18:15 +00:00
daniel
9205808960 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
2012-11-02 14:23:55 +01:00
IAlex
5fe5f5e9be Merge "minor style improvements" 2012-11-02 13:21:29 +00:00
TheDJ
46f3a2c79c Merge "(bug 40610) Prevent editing textarea from overflowing out of bodyContent" 2012-11-02 13:15:25 +00:00
jeroendedauw
664884900d minor style improvements
Change-Id: Iae617e8967e98b4aad596fa2de784b3b6c36a11d
2012-11-02 13:09:42 +01:00
IAlex
580e489fcb Merge "Localisation updates from http://translatewiki.net." 2012-11-02 09:20:33 +00:00
Ori Livneh
ba59cfd0bb 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
2012-11-01 23:27:14 -07:00
Aaron Schulz
f9a243582f [JobQueue] Actually use the right job_random value.
Change-Id: Ie2b4ababe79fac8841400ee9edfa1ce298ec739e
2012-11-01 17:36:34 -07:00
SPQRobin
ec81140f9b Merge "(Bug 41493) Move PageContentLanguage hook to Content class" 2012-11-01 23:55:20 +00:00
MatmaRex
7ce266ee44 rephrase underline-default message
Most skins override this, so this isn't really the browser's default.

Change-Id: Iafc5837f4a55e2852ec215bc4d2d7ddaba7834aa
2012-11-01 23:26:29 +01:00
Nikerabbit
e8825ab852 Merge "Adding primary authors of Wikidata branch" 2012-11-01 22:08:58 +00:00
Demon
cd01ca801f Merge "Use $this->getTitle() instead of $out->getTitle()" 2012-11-01 20:46:35 +00:00
Aaron Schulz
02cb279798 Merge "Link $wgVersion on Special:Version to Release Notes" 2012-11-01 20:39:43 +00:00
Reedy
3945a69b0c Link $wgVersion on Special:Version to Release Notes
Change-Id: I38cbde2f02477e4d5e61892cf7575ff1c122149d
2012-11-01 16:34:23 -04:00
Chad Horohoe
be7493f18d Adding primary authors of Wikidata branch
Largest branch merge of new features -> you deserve credit

Change-Id: I20a0c781b3a7c652baf254003d8a91bb996afc26
2012-11-01 16:08:23 -04:00
Demon
78f85389c0 Merge "[FileBackend] Check if paths are writable for delete ops too." 2012-11-01 19:56:07 +00:00
Translation updater bot
cbf942d98e Localisation updates from http://translatewiki.net.
Change-Id: Id2a8aa1cd7d182dc9070115709ffdb390cc4e93d
2012-11-01 19:47:31 +00:00
Nikerabbit
31069e3989 Merge "Use LogFormatter to format rights log." 2012-11-01 18:51:09 +00:00
GWicke
8cc58e0065 Merge "Added Parsoid WT escaping tests (several disabled for PHP parser)." 2012-11-01 18:27:04 +00:00
jeroendedauw
39137c023b fixed type hints
Change-Id: If7739f094e770fadfb7b5d9e270c9553331115a0
2012-11-01 18:38:14 +01:00
Aaron Schulz
e882babdbe Fixed MessageCache::parseText() and fixed docs for MessageCache::parse()
Change-Id: Ia297d9d0f893451a611051f9df7db3870b4c2333
2012-11-01 10:28:52 -07:00
MarkTraceur
629af9222e Merge "(bug 36276) add redlink styles to legacy shared.css" 2012-11-01 17:24:11 +00:00
MatmaRex
7eb91b2d91 (bug 36276) add redlink styles to legacy shared.css
This is mostly intended to fix the display in Myskin.

Change-Id: Ib519ad5b8091f7912cebba6b090d404f340f20bf
2012-11-01 18:18:47 +01:00
TheDJ
18cfd4bb38 Merge "CologneBlue rewrite: rewrite bottomLinks()" 2012-11-01 17:02:28 +00:00
Demon
dc0e410e29 Merge "(Bug 41574) Supply Title object to Revision if possible." 2012-11-01 16:48:48 +00:00
Subramanya Sastry
16fabec277 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
2012-11-01 11:24:52 -05:00
Reedy
916bfc4028 Merge "(Bug 41617) Fix undelete." 2012-11-01 15:40:58 +00:00
Alexandre Emsenhuber
0ebbce4d96 Use $this->getTitle() instead of $out->getTitle()
This is for consistency with other calls to the same method in the class.

Change-Id: I1ecd401cc5862ccb53211fc0a0754a2ac3debb7b
2012-11-01 14:51:12 +01:00
IAlex
3d6c6e0e81 Merge "(bug 41582) Show "Page information" toolbox link to info action also in history etc." 2012-11-01 13:40:53 +00:00
Antoine Musso
154291e3cd Merge "race condition in CdbTests" 2012-11-01 13:03:29 +00:00
daniel
b5b2b2f898 (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
2012-11-01 13:48:18 +01:00
daniel
ff31d6eb39 (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
2012-11-01 12:12:11 +01:00
Antoine Musso
cab4d81554 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
2012-11-01 11:48:18 +01:00
Federico Leva
79c1727e6d 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
2012-11-01 09:51:26 +01:00
Aaron Schulz
9c7018e4fd [FileBackend] Check if paths are writable for delete ops too.
* Also clarified the docs around isPathUsableInternal().

Change-Id: I3fc10fce43e040f45045d6da69f0211e9ab4155d
2012-10-31 23:36:49 -07:00
IAlex
63fa9df088 Merge "Update parts order in message files" 2012-11-01 05:46:31 +00:00
IAlex
5509f2d42c Merge "Localisation updates from http://translatewiki.net." 2012-11-01 05:42:46 +00:00
Aaron Schulz
95a4edf10a Merge "Revert "(Bug 41436) Tone down sanity check, just warn, don't die."" 2012-11-01 05:04:24 +00:00
RobLa
789e45bdc9 Revert "(Bug 41436) Tone down sanity check, just warn, don't die."
This reverts commit 770b6519be

This seems to have introduced bug 41606.  By reverting, we get an exception rather than complete data loss.
2012-11-01 04:58:19 +00:00
Aaron Schulz
c748d9ce65 [JobQueue] Use "flush" option with commit().
Change-Id: If612f8e282c1aa7014461f8878aa9721b30eeb42
2012-11-01 04:03:53 +00:00
Aaron Schulz
0b8546ae58 [JobQueue] Make sure broken/duplicate job removal counts in stats.
Change-Id: I09b3faa770172ce7aae457ef0af3dd5bafe7319d
2012-11-01 04:03:21 +00:00
Aaron Schulz
3c98f2c0ee [JobQueue] Fixed while loop in claimOldest() function.
Change-Id: I326b767c08944bcfde83c5e7f4a8339cecbab6d4
2012-10-31 20:49:58 -07:00
Aaron Schulz
c4924bb8bb [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
2012-10-31 19:59:39 -07:00
Tychay
78a5729fea Merge "Passing the undid revisionId from the API request to the WebRequest" 2012-10-31 23:33:10 +00:00
TheDJ
b1b9ada736 Merge "CologneBlue rewrite: output the sidebar items as <ul> lists" 2012-10-31 22:42:21 +00:00
MatmaRex
389728310d 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
2012-10-31 23:33:10 +01:00
Aaron Schulz
f061ce7ffa Fixed nextJobDB.php to handle recent job queue changes.
Change-Id: I98533ed599d27bbfc9043e906a758e3bc8903de0
2012-10-31 15:24:57 -07:00
MatmaRex
18d478e696 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
2012-10-31 23:19:45 +01:00
Siebrand Mazeland
9be697fa4e 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
2012-10-31 22:51:46 +01:00
TheDJ
16b89ab3e7 Merge "CologneBlue rewrite: rework quickbar() once again" 2012-10-31 21:28:15 +00:00