Commit graph

49848 commits

Author SHA1 Message Date
Aaron Schulz
3bb52cc804 database: Improve DatabaseMysql::masterPosWait() performance by caching the position
* This is useful for things like loads of refreshLinks jobs that call wfGetLB()->waitFor().

Change-Id: I05a564a3b73999517fec2476ed946e092c16c3d4
2013-06-26 23:39:43 +00:00
jenkins-bot
db77dcc731 Merge "Add user rights 'viewmywatchlist', 'editmywatchlist'" 2013-06-26 23:19:28 +00:00
jenkins-bot
4e6079d753 Merge "Fix getPageDimensions failure handling" 2013-06-26 22:57:49 +00:00
Parent5446
7298827a2a Merge "benchmarks: README file having run recommendations" 2013-06-26 22:55:49 +00:00
jenkins-bot
c46df11c1e Merge "Change autocomment-prefix to be blank. Looks weird being '- '" 2013-06-26 22:23:29 +00:00
jenkins-bot
7844c9a058 Merge "DifferenceEngine: Don't display empty header row" 2013-06-26 22:13:06 +00:00
Brian Wolff
f8d0f0a780 Fix getPageDimensions failure handling
getPageDimensions returning false for failure wasn't being handled
properly, causing ugly output. The doc comment on that method was
wrong as well.

Most notably causing random whitespace output:
https://commons.wikimedia.org/wiki/?curid=22151015
(screenshot: http://i.imgur.com/c21EpVx.png).

Bug: 41281
Change-Id: I1a49474309e15808928f877dfc29ae366d028928
2013-06-27 00:02:30 +02:00
jenkins-bot
a68459e8e9 Merge "Remove unnecessary clears" 2013-06-26 22:01:12 +00:00
jenkins-bot
94f26422ef Merge "Added SSL verification to PHPHttpRequest." 2013-06-26 21:56:40 +00:00
jenkins-bot
e2fe1eefe6 Merge "XML text dumps: skip rev length check for weird content models" 2013-06-26 21:54:28 +00:00
Derk-Jan Hartman
7e0072fd17 Remove unnecessary clears
This is a followup to Ibb9371ee.

Bug: 33438
Change-Id: I0b39138967f2d29d5e50db0a5990d175fcc81a8e
2013-06-26 23:53:46 +02:00
jenkins-bot
8c31fb2b03 Merge "mwdocgen: support multiple --file values" 2013-06-26 21:50:00 +00:00
jenkins-bot
3dbc5ec92d Merge "Removed some inappropriate global state from FSFile" 2013-06-26 21:47:04 +00:00
jenkins-bot
54af0504cc Merge "Include the backtrace in the log for job exceptions" 2013-06-26 21:45:18 +00:00
Aaron Schulz
0c84c2cbb5 Merge "(bug 49840) Moving a page with subpages may lead in the page being moved twice" 2013-06-26 21:34:12 +00:00
jenkins-bot
1f93505b9d Merge "CologneBlue: Use search input and button generators from SkinTemplate" 2013-06-26 20:57:02 +00:00
jenkins-bot
ea8a5e08c6 Merge "Doc fixes for MediaHandler. No behaviour changes." 2013-06-26 20:54:59 +00:00
jenkins-bot
1f6f16bd79 Merge "Add broken-file-category for file links inside <gallery/>" 2013-06-26 20:51:41 +00:00
Derk-Jan Hartman
2beed87111 CologneBlue: Use search input and button generators from SkinTemplate
This also makes sure that the search inputs receive their placeholder,
which fixes bug 47475.

Bug: 47475

Change-Id: Ie1215078edb38f98ec57d2a3ec46b1d0ace0bc30
2013-06-26 20:48:31 +00:00
Alexandre Emsenhuber
517da806a7 (bug 49840) Moving a page with subpages may lead in the page being moved twice
This happens if a page is moved to a subpage of itself and the option
"move subpages" is enabled, since the freshly moved page will be found
as being one of its subpages and moved a second time as such.

Bug: 49840
Change-Id: I318aab8c3c6e7ae718a3366ab00aba6e5420529b
2013-06-26 22:02:27 +02:00
Translation updater bot
f471169afa Localisation updates from http://translatewiki.net.
Change-Id: I69f2c11c204026c01c582f5714e21cc89d8eb929
2013-06-26 18:57:54 +00:00
Brad Jorsch
18062eb3b0 Add user rights 'viewmywatchlist', 'editmywatchlist'
These are needed for OAuth grants.

Note that, even if 'editmywatchlist' is not granted, various actions
will still allow for adding but not removing of pages.

Change-Id: Ie33446a228dd6ed0114730935c1bf65667f5ce01
2013-06-26 10:20:40 -04:00
jenkins-bot
3d14c52a47 Merge "Fix the error in html email when pear mail_mime is missing" 2013-06-26 13:19:26 +00:00
Antoine Musso
11624828bd mwdocgen: support multiple --file values
It is sometimes useful to generate documentation for multiple files or
directories. Doxygen INPUT statement supports multiple space separated
paths. Example usage:

 php maintenance/mwdocgen.php --file docs,input

Change-Id: I66a805d80307c6502e9b440df63a37bb13093d84
2013-06-26 13:00:15 +00:00
Antoine Musso
4d74280891 benchmarks: README file having run recommendations
In a wikitech thread about benchmarking, Tim Starling has been running
benchmarks using CPU binding and raised priority. This patch copy paste
Tim recommendations so we do not forget about them.

Change-Id: Ic6f2803c005f70a2f0400f28fafc3c8d209e0667
2013-06-26 11:55:57 +00:00
Antoine Musso
2207603fa1 test: coverage recording now needs to be explicit
To better control what we are really covering, this patch uses PHPUnit
forceCoversAnnotation option. That makes it to record covering if and
only if @covers is used.

Also rewrapped the options to uses tabulations.

Change-Id: I467a5077a65b93cce08072a8d088b0b9c652a426
2013-06-26 11:00:00 +00:00
jenkins-bot
fd91e40d41 Merge "Cologne Blue: Make sure the links don't bleed into the quickbar" 2013-06-26 08:54:03 +00:00
jenkins-bot
0898fa993c Merge "database: Simplify selectSQLText() and fix USE INDEX bug" 2013-06-26 04:27:35 +00:00
jenkins-bot
99d27d4e8a Merge "Fix history and add section tabs being collapsed on RTL wikis" 2013-06-26 01:07:57 +00:00
Alex Monk
163250832d Fix history and add section tabs being collapsed on RTL wikis
The module is now loaded in the 'top' queue instead of the 'bottom'
one, so the <body> tag isn't loaded when the RTL detection is done.
Use the <html> tag's 'dir' attribute instead.

Bug: 50196
Change-Id: I6e277a9503a1e6003bc7bf9f9468ed7b35552e60
2013-06-26 00:38:53 +00:00
Aaron Schulz
f52950c33e Include the backtrace in the log for job exceptions
Change-Id: Iff478f452142f1ccc9af70b4a64cfb66d04014f3
2013-06-25 23:16:05 +00:00
Aaron Schulz
c61d48f87e Stop spamming exception log with random upload stash failures
* Things like authorization and validation problems do not belong in the
  exception log.

Change-Id: I3c4c1bab65cfe9111dc2161bda6d023234112900
2013-06-25 16:10:42 -07:00
Aaron Schulz
6d89076e3a Avoid the "key conflict attempting to insert a user row" exception in some cases
bug: 41609
Change-Id: Iebfcf50e648a43f2970e6d0e4073cb6d84d260df
2013-06-25 15:23:42 -07:00
Translation updater bot
c007660d0a Merge "Localisation updates from http://translatewiki.net." 2013-06-25 20:01:33 +00:00
Translation updater bot
8f5ae9e8e7 Localisation updates from http://translatewiki.net.
Change-Id: Ic90e20578bf9dfb77d2e0ebe648270b41c83f40a
2013-06-25 19:42:40 +00:00
Ori Livneh
5ff7e6fb7a Allow explicit & implicit null returns from hook handlers
Most hook handlers are written with the intent of complementing or augmenting
core functionality rather than vetoing it, making it quite natural for a
developer to forget that the caller is waiting for permission to proceed. The
potential for confusion is magnified by the fact that DOM event handlers and
jQuery event handlers are not required to return an explicit value for the
handled event to continue propagating.

This change tolerates null return values (both implicit and explicit -- that
is, both 'return null' and no return statement at all) from hook handlers. To
abort processing, a hook function must return an explicit false or an error
string.

This change should not break any existing hook functions, as returning null is
currently an error.

Bug: 50134
Change-Id: I11deb2117ff9233c77868470f50e0d8f74053545
2013-06-25 12:10:12 -07:00
jenkins-bot
a5963bb067 Merge "(bug 50078) Allow a string other than '*' as condition for DatabaseBase::delete()" 2013-06-25 17:18:10 +00:00
jenkins-bot
0ee8d69777 Merge "(bug 50025) rebuildall.php script needs database admin rights" 2013-06-25 16:03:50 +00:00
Alexandre Emsenhuber
b18770232c (bug 50078) Allow a string other than '*' as condition for DatabaseBase::delete()
Currently, either '*' is given as condition meaning "everything" or an array must
be passed since DatabaseBase::makeList() requires an array. Now the parameter is
consistent with one of other similar methods, since a string will be handled
correctly.

Bug: 50078
Change-Id: Id5a8220d21245669f1091a3b5ed1def65b22d375
2013-06-25 16:15:45 +02:00
Siebrand Mazeland
505dbb331e Move Search page from redirects to pages
Having it in "Redirecting special pages" seems wrong to me. It's better to
have it in the company of "Lists of pages" like Special:PrefixIndex,
Special:AllPages and friends.

Change-Id: I8c59275e64dce158cd7a5b027c7efbbdb941e4c4
2013-06-25 09:50:26 +00:00
Alexandre Emsenhuber
f174d2c404 (bug 50025) rebuildall.php script needs database admin rights
It calls rebuildtextindex.php, which use the ALTER command.

Bug: 50025
Change-Id: Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f
2013-06-25 07:24:13 +00:00
Inez Korczyński
e92342be63 Adjust parserTests.txt for bug 43015
Change-Id: Ied95c87fda13dbea2b8c46ad1e96fde1c50c1517
2013-06-24 16:38:09 -07:00
Translation updater bot
e32c7a2733 Merge "Localisation updates from http://translatewiki.net." 2013-06-24 20:00:05 +00:00
Translation updater bot
955a268f1d Localisation updates from http://translatewiki.net.
Change-Id: I6088523647a98c8a79cb634bd531b25d85df60a9
2013-06-24 19:41:32 +00:00
jenkins-bot
c004aa5abd Merge "Localisation updates from http://translatewiki.net." 2013-06-24 19:39:32 +00:00
Alexandre Emsenhuber
134d472598 Rebuild MessagesEn.php
Change-Id: I8c792c66f26020ad65efc38f1baf1a57950667f1
2013-06-24 20:42:33 +02:00
MatmaRex
49ae067841 Add broken-file-category for file links inside <gallery/>
Bug: 50119
Change-Id: I7d06f48e53df43213bda52feec0d3f390e10f742
2013-06-24 20:38:48 +02:00
jenkins-bot
137a984a70 Merge "Added new + updated old tests for preventing regressions in Parsoid" 2013-06-24 18:06:42 +00:00
Subramanya Sastry
11b306fe5f Added new + updated old tests for preventing regressions in Parsoid
Change-Id: I2963d8f2a91ec473eb7c9b063c4c5a4c2de8f82d
2013-06-24 13:00:27 -05:00
jenkins-bot
6e7286ccac Merge "Improve help text for list=alllinks and alltransclusions" 2013-06-24 17:45:20 +00:00