Commit graph

50170 commits

Author SHA1 Message Date
Roan Kattouw
e617dc6c8f Pass through request parameters in API action=edit
In addition to constructing a fake request using the data the caller
gave us, also pass through any other request variables that might have
been set. This is a bit of an evil hack, but it's the only thing we can
do to make random things like wpReviewEdit in FlaggedRevs work through
the API.

Change-Id: Idab5b524b0e3daae58ab4f26466c0f6d9d8d3044
2013-07-23 23:26:37 -07:00
Ori Livneh
17ad68087c Discard comments in mergeMessageFileList.php's --list-file file
We're currently working around a bug in an extension (bug 51643) by deviating
from lexicographical order in extension-list to ensure that one extension is
loaded before another. It'd be nice to be able to document that in the file
itself, but there is no convention for adding comments to the file;
mergeMessageFileList.php treats every line as a file name. We've previously
talked about including a comment header in the file as part of our reponse to
bug 50347.

This patch adds some minimal syntax-handling to mergeMessageFileList.php which
causes it to treat as a comment any substring starting with '#' and extending
to the end of the line. This change implements part of what aude projected for
Gerrit change 71056, but I don't see the harm in pushing ahead with it here.

Change-Id: I4b296aa69ad77ecb51f1a0e27ce6a698cf09732b
2013-07-23 21:58:30 -07:00
jenkins-bot
1d866a533d Merge "Add a hook to Title::getEditNotices() so extensions can add them" 2013-07-24 04:48:14 +00:00
Roan Kattouw
6bf642d80a Add a hook to Title::getEditNotices() so extensions can add them
FlaggedRevs will have to use this to expose its edit notices to
VisualEditor.

Also add an $oldid parameter so edit notices can be generated based
on the revision ID being edited.

Change-Id: Ie44a01ebfa7002fa3a89f081e0f831442666ac03
2013-07-23 17:31:27 -07:00
Timo Tijhof
a4b62f1b85 mediawiki.notification: Make notification area sticky to window
Whenever the user scrolls beyond the natural offset (possibly
customised by the skin, e.g. in Vector it accounts for the
tabs and search bar, in Monobook it is relative to the content
area, etc.) we switch from absolute to fixed position.

Changed the 1em top/right padding to be actual padding instead
of part of the offset, as otherwise `window.scrollTop > offset.top`
would trigger too late and thus cause it to "jump" back about
13px (1em) whenever we switch (the scroll logic depends on the
floating-mode offset being 0).

Now it seemlessly switches between the two area modes.
Based on logic in VisualEditor for the sticky editor toolbar.

Using a class instead of an ID for the area element as otherwise
all selectors would require being like "#area.area-floating" to
work from the skin. This should've been the case from the
beginning (using IDs in CSS is almost always bad).

Falls back to absolute position in IE6, where 'fixed' is not
supported (and would use positon 'static' otherwise which would
be a problem).

Cleaned up useless 'null' value for $area variable.

Bug: 50870
Change-Id: Icb7cd68f48443c1770e3585c8567fea2ac16dad8
2013-07-24 01:38:42 +02:00
Timo Tijhof
7627cf6175 mw.config: Add wgIsRedirect
Change-Id: I6e365f20b513ded10ede51d4b34de0736653a3dc
2013-07-23 21:11:31 +02:00
Translation updater bot
aae6099b6c Localisation updates from http://translatewiki.net.
Change-Id: Ic5becb02cca2d035192b096b6b4273d5cb036790
2013-07-23 18:37:23 +00:00
jenkins-bot
7a609154d2 Merge "Special:PagesWithProp: Do not show very long or binary values" 2013-07-23 16:45:08 +00:00
MatmaRex
9a829641b5 Special:PagesWithProp: Do not show very long or binary values
It already looks rather silly when querying for 'templatedata' prop
from the TemplateData extension (e.g. [1]), it will start looking much
worse once Ie66b0dd6 in TemplateData is merged (which makes it store
the props gzip-compressed).

Do not show very long (over 1 kB) or binary (containing a null byte)
values; instead display a helpful message and size.

Changing the display format slightly, it's now "Page: <propvalue-or-message>"
instead of "Page (<propvalue-or-message>)", because the helpful
messages themselves include parentheses.

[1] https://en.wikipedia.org/wiki/Special:PagesWithProp?propname=templatedata

Bug: 51888
Change-Id: Ib2db241a117b06faee2426c8ea9ae18eab499e08
2013-07-23 18:26:28 +02:00
jenkins-bot
aaa0645cf6 Merge "tablesorter: Keyboard accessibility for sort headers." 2013-07-23 13:21:58 +00:00
Alexandre Emsenhuber
b03a87204c Make "Special:FilePath?file=.." work again
bug: 51542
Change-Id: I2418e33ebd91dc0dc6968ba003a46857ec7524d3
2013-07-23 11:56:07 +00:00
jenkins-bot
4664a43df7 Merge "Fix exception in ApiPageSet" 2013-07-22 22:37:13 +00:00
Translation updater bot
907cdce0db Localisation updates from http://translatewiki.net.
Change-Id: I66a366d0f2d8efdfa15be0488c3dcf5b91b4caa0
2013-07-22 20:08:50 +00:00
Brad Jorsch
a860b9a5b5 Fix exception in ApiPageSet
ApiPageSet is calling $this->profileOut(), then calling a function that
calls $this->profileDBIn(). Move that function to after a new
$this->profileIn().

Also, add a unit test for this situation.

Bug: 51821
Change-Id: Ib4dbfb567faadcd5e3d7d058ca6bdf8b4c83f634
2013-07-22 14:12:38 -04:00
jenkins-bot
462019421d Merge "Special:ListGroupRights: Display the legend at the top" 2013-07-22 12:15:05 +00:00
jenkins-bot
1010a45c53 Merge "Possible error messages for action=createaccount should be in English and not show local modifications" 2013-07-22 12:11:32 +00:00
jenkins-bot
ae1274fd28 Merge "DifferenceEngine: Remove broken comment" 2013-07-22 11:44:03 +00:00
Kunal Mehta
ca79403245 Possible error messages for action=createaccount should be in English and not show local modifications
Bug: 47791
Change-Id: Id55f65d1a7b9b2d6a17da0b87bffe42ceb4231ef
2013-07-22 02:44:03 -07:00
jenkins-bot
c74af5b46a Merge "Add linktrail for Malayalam" 2013-07-22 08:45:28 +00:00
Santhosh Thottingal
5df3ed9b08 Add linktrail for Malayalam
Bug: 44029
Change-Id: I591a92ab563f2ef8340122f63a202d2c02d29d97
2013-07-22 09:45:48 +05:30
jenkins-bot
3d8e17c0e4 Merge "Clean up: Consistently use "$" instead of "$( document ).ready"" 2013-07-22 02:42:54 +00:00
Translation updater bot
09bcad839d Localisation updates from http://translatewiki.net.
Change-Id: Icd89c666b6962cf3028ee4d13860f4f61243c654
2013-07-21 19:04:25 +00:00
Derk-Jan Hartman
3864b0b69e Tablesorter: Add testcase for unsortable column
Change-Id: I64ea3c7301a8be6c4b7b9b462d0e81b89a525f9e
2013-07-21 17:10:40 +02:00
jenkins-bot
e6fb2a2c55 Merge "Tweak Special:Log/block for supporting RTL wikis" 2013-07-21 09:31:48 +00:00
Translation updater bot
ebcc25f312 Localisation updates from http://translatewiki.net.
Change-Id: I4e0a77e7c5d398749995401d4035f16ce994ecea
2013-07-20 20:44:43 +00:00
Ebrahim Byagowi
ea02cda0d6 Tweak Special:Log/block for supporting RTL wikis
dir="ltr" was added to make block durations on Special:Log/block
readable for non-local admins, While removing it, I used a
solution to keep block duration on title readable for non-local
admins and making inner text readable for local users

Change-Id: I31aef50196319be7355ad14657e67ca23fc15e20
2013-07-20 00:49:25 +00:00
Kevin Israel
052f1fcf30 Deprecate MWFunction::call and ::callArray
These functions existed to work around a bug (fixed in PHP 5.3) and
a missing feature (added in PHP 5.2) in older versions of PHP;
therefore, they are no longer necessary.

Change-Id: Ifebbe3d449fc57fd83f8350c28f467605c1a07b7
2013-07-19 18:48:51 -04:00
Kunal Mehta
73f35bbb02 Change message to say deleting "unused" accounts rather than "inactive".
Bug: 49128
Change-Id: I8f93ba581abbf6e9c83ad8ade32ea0657bde6b01
2013-07-19 22:27:20 +00:00
jenkins-bot
7ab3cef4c0 Merge "Added a Descriptive Comment to the AutoLoaderTest" 2013-07-19 22:06:40 +00:00
Translation updater bot
bf3abfc856 Localisation updates from http://translatewiki.net.
Change-Id: I516e79d026a854d2794378e0b083e0d9a2eb9743
2013-07-19 21:16:42 +00:00
Ebrahim Byagowi
6e9d85afce Adding myself on CREDITS, "Patch Contributors" section
Change-Id: If5e5809008ac5db9562fff32316a53906163d4bb
2013-07-20 01:02:10 +00:00
jenkins-bot
05c6a2116b Merge "Tweak CSSJanus to support noflip for selectors with parentheses" 2013-07-19 19:01:12 +00:00
Ebrahim Byagowi
bda65740a8 Tweak CSSJanus to support noflip for selectors with parentheses
Also suggested for CSSJanus itself at http://code.google.com/p/cssjanus/issues/detail?id=22

Change-Id: I4e3b21522e9c5a72cd456ed3d6a0be9225e4b70d
2013-07-19 11:53:27 -07:00
MatmaRex
7d5e88fd5f Special:ListGroupRights: Display the legend at the top
Previously it was displayed at the bottom and was rather hard to notice.

Also prefix the legend with "Legend:" to make the interface clearer.

Change-Id: I62f3dfb311ae648180363f36d60a5f400ea4f077
2013-07-19 20:28:36 +02:00
jenkins-bot
7c68e7a22f Merge "Make User::getEditCount() always return an integer" 2013-07-19 18:23:21 +00:00
jenkins-bot
c5495b827f Merge "HistoryPager: Remove superfluous join condition" 2013-07-19 18:19:05 +00:00
Brad Jorsch
94cb936e71 API: Allow extensions to specify "useless" query pages
Some query pages are not useful for ApiQueryQueryPage, as they require
arguments that cannot be specified with that interface. Currently, the
list of such pages is in a private static variable in ApiQueryQueryPage;
this moves it to a global so extensions can add to the list.

Change-Id: Ieccd2e84803dc1de4e26cba85d6cdda13916647f
2013-07-19 11:34:02 -04:00
Aaron Schulz
797d5f19c4 profiler: log slow methods that worsen DB locks in transactions
Change-Id: I1aa13c29837fa655c13ef324d02cd1be1739edea
2013-07-19 03:46:55 +00:00
Juliusz Gonera
1b6c4bc3c7 Make User::getEditCount() always return an integer
The docs comment says it returns an int but it often returned a string.
This led to casting this value into an integer in other parts of the
codebase and in extensions (grep MobileFrontend or Echo for EditCount).

Bug: 51633
Change-Id: I6fe5b26c24e674e8148c1fd278774b3fabe844c5
2013-07-18 15:46:15 -07:00
Timo Tijhof
c524fb239f Clean up: Consistently use "$" instead of "$( document ).ready"
Change-Id: Ie370fec8c851607f5ea7401e92129f9f60b6268b
2013-07-19 00:00:38 +02:00
jenkins-bot
3b9d370b1d Merge "Sync up with Parsoid parserTests." 2013-07-18 21:52:11 +00:00
jenkins-bot
4214b673de Merge "Removing redundant styles for icon-only buttons" 2013-07-18 21:44:17 +00:00
C. Scott Ananian
cd9ad73602 Sync up with Parsoid parserTests.
This now aligns with Parsoid commit f5aa9efaee28d5b6571838e45879afdc8d4046eb

Change-Id: I709da355b1f24ba013d002c913bc69c1c2a19d52
2013-07-18 17:34:19 -04:00
Translation updater bot
e1d1e798b7 Localisation updates from http://translatewiki.net.
Change-Id: Ia8805c66d2f2ee54f84658faed8011ab2d73f1a1
2013-07-18 19:35:47 +00:00
rillke
5ddd0b3a39 Removing redundant styles for icon-only buttons
As pointed out in bug 48593 (patched by
813cedb0308da58f3a2a4dc8ebefe489bf3005bc), these style rules are
overwritten later in the file and ignored by browser.
This patch will remove them as they do not serve any purpose.

Bug: 51623
Change-Id: Ib8aed40238f53198f207d4e57d0ced54622ad9e2
2013-07-18 18:27:40 +00:00
jenkins-bot
16ffcb8fd8 Merge "Removing space between buttons in Buttonset in Vector" 2013-07-18 13:12:29 +00:00
rillke
c5c91ade19 Fixing width of icon-only-buttons in Vector skin
MediaWiki uses a custom stylesheet for buttons in Vector skin. This
stylesheet, however, breaks the jQuery UI icon-only buttons by setting
their width to "auto". This patch will re-set the width to 2.2em for
single-icon buttons and to 3.4em for 2-icon buttons.

Bug: 48593
Change-Id: I650d0e211cb4a1ce47c3d2246a3f266316afbb54
2013-07-18 11:56:04 +00:00
rillke
0051a4962d Removing space between buttons in Buttonset in Vector
Removing whitespace between buttons in jquery.ui.buttonset in vector skin.
jQuery UI Buttons are displayed inline-block. In case there is
whitespace between button nodes in the HTML source, the whitspace would
be also rendered. To avoid this, jQuery UI decided to put a negative
margin in place. However, this negative margin is not enough in Vector skin by
MediaWiki (see attached screenshots in bug 32687). By setting the margin
from -0.3em to -0.4em this issue will be addressed in all tested browsers.
Since the text and icons in the buttons have a padding around 1em, this
patch will not obscure text or icons in the buttons. The only downside
is the shadow that is multiplied below the button and thus darker. But
this was an issue before and it will be just more obvious after applying
this patch.

Bug: 32687
Change-Id: I2577fe0ed79f0704ff40c019ec824d8ba62c3bf1
2013-07-18 09:48:07 +02:00
jenkins-bot
59115b52b4 Merge "Form improvements when creating another's account" 2013-07-18 05:29:15 +00:00
Aaron Schulz
1fbb0404f5 Allow for IDatabase to be used as type hints for DatabaseBase|DBConnRef
* Use this in LogEntry to avoid needless type errors

Change-Id: I8644b35b0d9cd171243dd28de52e94ef39d361a7
2013-07-18 03:43:20 +00:00