Matthew Flaschen [Thu, 25 Jul 2013 08:49:40 +0000 (01:49 -0700)]
Add getId to mw.user, returning wgUserId (or 0 for anons).
This is equivalent to how User->getId works on the server.
Small formatting update to another documentation block.
Change-Id: I31906398f572dd4f62d89b53dfd05a362bf6d5a5
Brian Wolff [Fri, 7 Jun 2013 17:29:56 +0000 (14:29 -0300)]
Make Special:MIMESearch a non-expensive special page.
This tries to use the index on (img_media_type, img_major_mime, img_minor_mime).
This is not the ideal index for this purpose (due to starting with
img_media_type, and not having an img_name at the end). However it
seems usable due to the low number of values img_media_type can have.
Thus we can just specify all values, and the index will get used
as a range index.
The only potentially problematic thing I see is that it uses
LIMIT X,Y for the offsets (due to being a query page) which can
be expensive on big offsets. If that's an issue, we could limit
the number of results to be at most $wgQueryCacheLimit or something.
Note: There's some discussion on the bug rather negative to this
special page in general. While I agree with much of the criticism,
I still think this special page can be useful, and if it can be
made efficient without needing to modify the indicies, we might
as well.
Bug: 13438
Change-Id: I88826ae7bff0812374157e596f86a19b248220e1
jenkins-bot [Wed, 24 Jul 2013 21:28:18 +0000 (21:28 +0000)]
Merge "User#getOption: Check ignoreHidden before $wgHiddenPrefs"
Antoine Musso [Wed, 3 Jul 2013 19:49:29 +0000 (21:49 +0200)]
option to strip requested prefix index in the list
[[Special:PrefixIndex]] could be transcluded to generate a dynamic list
of pages. Since all pages share the same prefix, it is not always
wanted, specially when looking for subpages.
Given articles named:
- Project/Alix
- Project/FixBug20281
- Project/S3cretPlan
- Projects roadmap
{{Special:PrefixIndex/Project}} yields:
Project/Alix Project/FixBug20281 Project/S3cretPlan
Projects roadmap
Adding |stripprefix=1 get rid of the prefix:
{{Special:PrefixIndex/Project|stripprefix=1}}
/Alix /FixBug20281 /S3cretPlan
s roadmap
{{Special:PrefixIndex/Project/|stripprefix=1}}
Alix FixBug20281 S3cretPlan
The patch adds a checkbox to activate the prefix stripping.
For the implementation, I have chosen a protected class property instead
of adding parameters to various methods. That seems easier to handle.
Change-Id: I96a0a08ea11a82016eb382abbeb2d54bfc2c4016
MatmaRex [Fri, 14 Jun 2013 16:59:59 +0000 (18:59 +0200)]
Refactor watchlist token handling
Do not allow the user to change it directly; instead create a form
where they can reset it. (The token can still be changed via the API.)
The token is autogenerated whenever it is shown or otherwise used.
This really should have never used the preferences; however, trying to
change that now would be lots of work for very little gain, so this
keeps using that mechanism, adding a little abstraction over it.
It's not unconceivable that similar tokens could be used for other
pieces of data, like Echo's notifications; this enables that with one
new hook.
----
Things done here:
* Add getTokenFromOption() and resetTokenFromOption() methods to User,
abstracting out the get-and-generate-if-empty process of handling
tokens. Respect $wgHiddenPrefs (Watchlist didn't do that
previously).
* Create Special:ResetTokens, inspired by Special:Preferences and
Special:ChangeEmail, presenting the token resetting interface
(HTMLForm-based with CSRF protection).
* Create a new hook, SpecialResetTokensTokens, allowing extensions to
register tokens to be shown in the resetting form. Each token needs
information about the preference it corresponds to and a short
description (used for checkbox label).
* Hide the preference on Special:Preferences (use type=api to achieve
this), display a link to aforementioned special page instead. Move
info blurb to its own section at the bottom.
Bug: 21912
Change-Id: I0bdd2469972c4af81bfb480e9dde58cdd14c67a8
Translation updater bot [Wed, 24 Jul 2013 19:50:59 +0000 (19:50 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ic8fa806b35c79dcbb77ae71237a04e0bf3a5226a
Timo Tijhof [Wed, 24 Jul 2013 17:56:06 +0000 (19:56 +0200)]
mw.notification: Fix incorrect initial offset
Follows-up
a4b62f1. Fixes bug where initial offset during set up is
wrong and thus causes the used offset to be 0.
Change-Id: I7444bf55a11e817d85bb5c4879022633869fc55d
nischayn22 [Thu, 23 May 2013 10:16:38 +0000 (15:46 +0530)]
hook to intercept upload_by_url
This is planned to be used for intercepting by UW for Flickr blacklisting.
Bug: 42307
Change-Id: Ia3daaeba1ce5e69e751ffc2ae5afd5e449cf4aa7
jenkins-bot [Wed, 24 Jul 2013 14:45:18 +0000 (14:45 +0000)]
Merge "Remove redundant namespaceAliases"
This, that and the other [Wed, 24 Jul 2013 11:52:15 +0000 (21:52 +1000)]
Remove redundant namespaceAliases
Same as the actual namespace names.
Apparently translatewiki doesn't handle namespaceAliases.
Bug: 51934
Change-Id: I132dabf918311712ddf83b9ac3d4ab262c8ab6bc
jenkins-bot [Wed, 24 Jul 2013 12:22:15 +0000 (12:22 +0000)]
Merge "Move firing of "wikipage.content" mw.hook out of mediawiki.util"
Roan Kattouw [Wed, 24 Jul 2013 06:26:37 +0000 (23:26 -0700)]
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
Ori Livneh [Thu, 18 Jul 2013 22:46:18 +0000 (15:46 -0700)]
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
jenkins-bot [Wed, 24 Jul 2013 04:48:14 +0000 (04:48 +0000)]
Merge "Add a hook to Title::getEditNotices() so extensions can add them"
Roan Kattouw [Wed, 24 Jul 2013 00:28:47 +0000 (17:28 -0700)]
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
Timo Tijhof [Tue, 23 Jul 2013 23:15:12 +0000 (01:15 +0200)]
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
Timo Tijhof [Tue, 23 Jul 2013 19:11:17 +0000 (21:11 +0200)]
mw.config: Add wgIsRedirect
Change-Id: I6e365f20b513ded10ede51d4b34de0736653a3dc
Translation updater bot [Tue, 23 Jul 2013 18:37:23 +0000 (18:37 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ic5becb02cca2d035192b096b6b4273d5cb036790
jenkins-bot [Tue, 23 Jul 2013 16:45:08 +0000 (16:45 +0000)]
Merge "Special:PagesWithProp: Do not show very long or binary values"
MatmaRex [Tue, 23 Jul 2013 15:40:28 +0000 (17:40 +0200)]
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
jenkins-bot [Tue, 23 Jul 2013 13:21:58 +0000 (13:21 +0000)]
Merge "tablesorter: Keyboard accessibility for sort headers."
Alexandre Emsenhuber [Tue, 23 Jul 2013 09:34:25 +0000 (11:34 +0200)]
Make "Special:FilePath?file=.." work again
bug: 51542
Change-Id: I2418e33ebd91dc0dc6968ba003a46857ec7524d3
jenkins-bot [Mon, 22 Jul 2013 22:37:13 +0000 (22:37 +0000)]
Merge "Fix exception in ApiPageSet"
Translation updater bot [Mon, 22 Jul 2013 20:08:50 +0000 (20:08 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I66a366d0f2d8efdfa15be0488c3dcf5b91b4caa0
Brad Jorsch [Mon, 22 Jul 2013 17:08:31 +0000 (13:08 -0400)]
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
Timo Tijhof [Fri, 19 Jul 2013 02:31:33 +0000 (04:31 +0200)]
User#getOption: Check ignoreHidden before $wgHiddenPrefs
Change-Id: Icb1aab8cd8dc15387d199bb51ca2cd72de6dba88
Timo Tijhof [Thu, 18 Jul 2013 00:45:16 +0000 (02:45 +0200)]
Move firing of "wikipage.content" mw.hook out of mediawiki.util
* Update "wikipage.content" arguments to really pass the
content and not the entire body wrapper (no longer
mw.util.$content).
* Move the firing of "wikipage.content" from mediawiki.util to
mediawiiki.page.startup. It didnt really belong in
mediawiki.util, and now that we're no longer passing it
mw.util.$content they're no longer related in either direction.
Bug: 30713
Change-Id: I56d6491527547f898e239b531c98e903863f8999
jenkins-bot [Mon, 22 Jul 2013 12:15:05 +0000 (12:15 +0000)]
Merge "Special:ListGroupRights: Display the legend at the top"
jenkins-bot [Mon, 22 Jul 2013 12:11:32 +0000 (12:11 +0000)]
Merge "Possible error messages for action=createaccount should be in English and not show local modifications"
jenkins-bot [Mon, 22 Jul 2013 11:44:03 +0000 (11:44 +0000)]
Merge "DifferenceEngine: Remove broken comment"
Kunal Mehta [Mon, 22 Jul 2013 09:44:03 +0000 (02:44 -0700)]
Possible error messages for action=createaccount should be in English and not show local modifications
Bug: 47791
Change-Id: Id55f65d1a7b9b2d6a17da0b87bffe42ceb4231ef
jenkins-bot [Mon, 22 Jul 2013 08:45:28 +0000 (08:45 +0000)]
Merge "Add linktrail for Malayalam"
Santhosh Thottingal [Mon, 22 Jul 2013 04:15:48 +0000 (09:45 +0530)]
Add linktrail for Malayalam
Bug: 44029
Change-Id: I591a92ab563f2ef8340122f63a202d2c02d29d97
jenkins-bot [Mon, 22 Jul 2013 02:42:54 +0000 (02:42 +0000)]
Merge "Clean up: Consistently use "$" instead of "$( document ).ready""
Translation updater bot [Sun, 21 Jul 2013 19:04:25 +0000 (19:04 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Icd89c666b6962cf3028ee4d13860f4f61243c654
Derk-Jan Hartman [Wed, 17 Jul 2013 21:23:51 +0000 (23:23 +0200)]
Tablesorter: Add testcase for unsortable column
Change-Id: I64ea3c7301a8be6c4b7b9b462d0e81b89a525f9e
jenkins-bot [Sun, 21 Jul 2013 09:31:48 +0000 (09:31 +0000)]
Merge "Tweak Special:Log/block for supporting RTL wikis"
Translation updater bot [Sat, 20 Jul 2013 20:44:43 +0000 (20:44 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I4e0a77e7c5d398749995401d4035f16ce994ecea
Ebrahim Byagowi [Sat, 20 Jul 2013 00:09:02 +0000 (00:09 +0000)]
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
Kevin Israel [Fri, 19 Jul 2013 03:30:42 +0000 (23:30 -0400)]
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
Kunal Mehta [Thu, 18 Jul 2013 06:31:59 +0000 (23:31 -0700)]
Change message to say deleting "unused" accounts rather than "inactive".
Bug: 49128
Change-Id: I8f93ba581abbf6e9c83ad8ade32ea0657bde6b01
jenkins-bot [Fri, 19 Jul 2013 22:06:40 +0000 (22:06 +0000)]
Merge "Added a Descriptive Comment to the AutoLoaderTest"
Translation updater bot [Fri, 19 Jul 2013 21:16:42 +0000 (21:16 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I516e79d026a854d2794378e0b083e0d9a2eb9743
Ebrahim Byagowi [Sat, 20 Jul 2013 01:02:10 +0000 (01:02 +0000)]
Adding myself on CREDITS, "Patch Contributors" section
Change-Id: If5e5809008ac5db9562fff32316a53906163d4bb
jenkins-bot [Fri, 19 Jul 2013 19:01:12 +0000 (19:01 +0000)]
Merge "Tweak CSSJanus to support noflip for selectors with parentheses"
Ebrahim Byagowi [Fri, 19 Jul 2013 23:16:07 +0000 (23:16 +0000)]
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
MatmaRex [Fri, 19 Jul 2013 18:28:36 +0000 (20:28 +0200)]
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
jenkins-bot [Fri, 19 Jul 2013 18:23:21 +0000 (18:23 +0000)]
Merge "Make User::getEditCount() always return an integer"
jenkins-bot [Fri, 19 Jul 2013 18:19:05 +0000 (18:19 +0000)]
Merge "HistoryPager: Remove superfluous join condition"
Brad Jorsch [Wed, 10 Jul 2013 20:58:32 +0000 (16:58 -0400)]
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
Aaron Schulz [Thu, 27 Jun 2013 19:11:19 +0000 (12:11 -0700)]
profiler: log slow methods that worsen DB locks in transactions
Change-Id: I1aa13c29837fa655c13ef324d02cd1be1739edea
Juliusz Gonera [Thu, 18 Jul 2013 20:12:15 +0000 (13:12 -0700)]
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
Timo Tijhof [Tue, 16 Jul 2013 22:08:49 +0000 (00:08 +0200)]
Clean up: Consistently use "$" instead of "$( document ).ready"
Change-Id: Ie370fec8c851607f5ea7401e92129f9f60b6268b
jenkins-bot [Thu, 18 Jul 2013 21:52:11 +0000 (21:52 +0000)]
Merge "Sync up with Parsoid parserTests."
jenkins-bot [Thu, 18 Jul 2013 21:44:17 +0000 (21:44 +0000)]
Merge "Removing redundant styles for icon-only buttons"
C. Scott Ananian [Thu, 18 Jul 2013 21:33:12 +0000 (17:33 -0400)]
Sync up with Parsoid parserTests.
This now aligns with Parsoid commit
f5aa9efaee28d5b6571838e45879afdc8d4046eb
Change-Id: I709da355b1f24ba013d002c913bc69c1c2a19d52
Translation updater bot [Thu, 18 Jul 2013 19:35:47 +0000 (19:35 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ia8805c66d2f2ee54f84658faed8011ab2d73f1a1
rillke [Thu, 18 Jul 2013 18:16:41 +0000 (20:16 +0200)]
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
jenkins-bot [Thu, 18 Jul 2013 13:12:29 +0000 (13:12 +0000)]
Merge "Removing space between buttons in Buttonset in Vector"
rillke [Thu, 18 Jul 2013 11:34:40 +0000 (13:34 +0200)]
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
rillke [Thu, 18 Jul 2013 07:48:07 +0000 (09:48 +0200)]
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
jenkins-bot [Thu, 18 Jul 2013 05:29:15 +0000 (05:29 +0000)]
Merge "Form improvements when creating another's account"
Aaron Schulz [Thu, 18 Jul 2013 03:37:38 +0000 (20:37 -0700)]
Allow for IDatabase to be used as type hints for DatabaseBase|DBConnRef
* Use this in LogEntry to avoid needless type errors
Change-Id: I8644b35b0d9cd171243dd28de52e94ef39d361a7
MatmaRex [Wed, 17 Jul 2013 18:23:11 +0000 (20:23 +0200)]
Release notes for Ie04f23c1
Change-Id: I30aa881a2ad962bee7a0710c6693afae9881118f
jenkins-bot [Thu, 18 Jul 2013 00:50:16 +0000 (00:50 +0000)]
Merge "HTCPPurge() early exit on socket error"
Matt Walker [Wed, 17 Jul 2013 23:55:36 +0000 (16:55 -0700)]
Added a Descriptive Comment to the AutoLoaderTest
Change-Id: Ib209f869f7ec11f29cc69fb02f558b54791eb2aa
jenkins-bot [Wed, 17 Jul 2013 22:39:41 +0000 (22:39 +0000)]
Merge "Adding getter method for QuickTemplate"
S Page [Tue, 9 Jul 2013 04:35:43 +0000 (21:35 -0700)]
Form improvements when creating another's account
Detect a logged-in user creating an account for someone else and change
messages:
* heading is "Enter the new account information below."
* username placeholder is "Enter the username", not "Enter your username"
* email field placeholder is "Enter email address" not "Enter your ..."
* submit button is "Create another account"
Also improve JS when e-mail password is checked to remove the password
fields (otherwise the form still submits them and browser prompts to
remember password).
Bug: 47792
Change-Id: I00e0d21d63bf32ad691ea3a27523298478e2d45c
jenkins-bot [Wed, 17 Jul 2013 21:35:20 +0000 (21:35 +0000)]
Merge "ResourceLoader lint"
Translation updater bot [Wed, 17 Jul 2013 19:25:23 +0000 (19:25 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Id0eefc207ad24da4e636fc70351e7c82aaa20d63
kaldari [Sat, 13 Jul 2013 00:15:56 +0000 (17:15 -0700)]
Adding getter method for QuickTemplate
Also updating a few functions to use it.
Change-Id: I466d36e48dec1f798f38152c829a25eb80f8b67b
jenkins-bot [Wed, 17 Jul 2013 18:45:14 +0000 (18:45 +0000)]
Merge "diff: Display "(No difference)" instead of an empty diff"
umherirrender [Wed, 10 Jul 2013 19:49:36 +0000 (21:49 +0200)]
diff: Display "(No difference)" instead of an empty diff
This makes it easier to see the fact, because without a hint, the user
can mean, that there is something missing, but here the missing is okay
and for that, the message is helpful.
Change-Id: I458fb688b0001fb674ece65b3fdabf56fc658a29
jenkins-bot [Wed, 17 Jul 2013 16:21:53 +0000 (16:21 +0000)]
Merge "Code style cleanup for ApiQuerySiteinfo.php."
MatmaRex [Thu, 6 Jun 2013 15:58:36 +0000 (17:58 +0200)]
CSSJanus: Handle values of border-radius correctly
The values are not "top right bottom left" here, but
"top-left top-right bottom-right bottom-left".
Bug: 49074
Change-Id: I22bc777b59e667aeb36727fdc8e41e8681979128
jenkins-bot [Wed, 17 Jul 2013 00:09:00 +0000 (00:09 +0000)]
Merge "Fixed return type of getContentNamespaces()"
Aaron Schulz [Thu, 4 Jul 2013 19:55:47 +0000 (12:55 -0700)]
Fixed return type of getContentNamespaces()
Change-Id: I3e1717c3a7b3f9d7fa7fd823b5d3143a679b0d3d
jenkins-bot [Tue, 16 Jul 2013 23:55:38 +0000 (23:55 +0000)]
Merge "Have Chunked upload jobs bail if cannot associate with session."
jenkins-bot [Tue, 16 Jul 2013 22:13:07 +0000 (22:13 +0000)]
Merge "Move inclusion of the Composer autoloader to after inclusion of DefaultSettings"
C. Scott Ananian [Tue, 16 Jul 2013 14:43:03 +0000 (10:43 -0400)]
Code style cleanup for ApiQuerySiteinfo.php.
This fixes the code style error (2 blank lines in a row) introduced by
I17aae9512e0994222785c5edc9de644685b2498c as well as a number of other
line-too-long errors flagged by phpcs.
Change-Id: I3c628eab101ee97d0182ee2db37b53105346af99
Translation updater bot [Tue, 16 Jul 2013 19:56:20 +0000 (19:56 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I57e7597bfbad99d22bf49aedfaa09324d5781f41
Aaron Schulz [Tue, 16 Jul 2013 18:15:09 +0000 (11:15 -0700)]
Make it easier to override the DB used for a Pager subclass
Change-Id: I7341ae499e7a5a97061a130b5a4927bada283330
jenkins-bot [Tue, 16 Jul 2013 18:02:02 +0000 (18:02 +0000)]
Merge "Add wgAllowExternalImages option to parser tests."
jenkins-bot [Tue, 16 Jul 2013 17:50:52 +0000 (17:50 +0000)]
Merge "Prevent Special:Contributions from indicating that an IP address is autoblocked"
jenkins-bot [Tue, 16 Jul 2013 16:20:57 +0000 (16:20 +0000)]
Merge "Fix incorrect escaping of nested <em>, <strong>, <q>, <ruby>, and <bdo>"
Antoine Musso [Tue, 2 Jul 2013 10:42:39 +0000 (12:42 +0200)]
HTCPPurge() early exit on socket error
I tend to dislike code style such as:
if( $ok ) {
// lot of code
} else {
return false;
}
The SquidUpdate::HTCPPurge() used that pattern to handle a
socket_create() issue. I have simply moved the block above and inverted
the condition. Ie:
if( ! $ok ) {
return false;
}
// lot of code
That saves a level of indentation and makes the code a bit easier to
follow IMHO.
Change-Id: Ic3c6e22bbb637352fef740a0c1663a4b6f5a2b6a
C. Scott Ananian [Thu, 11 Jul 2013 17:56:35 +0000 (13:56 -0400)]
Export information about external image settings via siteinfo API.
This configuration information is needed in order for Parsoid to
appropriately parse external image URLs.
Bug: 51092
Change-Id: I17aae9512e0994222785c5edc9de644685b2498c
jenkins-bot [Tue, 16 Jul 2013 07:23:49 +0000 (07:23 +0000)]
Merge "Support explicit plural forms at client side l10n"
Kunal Mehta [Tue, 16 Jul 2013 05:28:17 +0000 (22:28 -0700)]
Prevent Special:Contributions from indicating that an IP address is autoblocked
If an IP address was autoblocked in the userlinks, sysops would see
"change block" and "unblock", indicating that the IP is autoblocked.
Now Special:Contributions will only display "change block" if the user
is blocked and the block type is not Block::TYPE_AUTO. This is the same
check which is used above when deciding whether to display the
block log extract.
Bug: 46457
Change-Id: I43047059cb67527d5296322ac17fe798db917bec
Santhosh Thottingal [Sat, 13 Jul 2013 11:11:56 +0000 (16:41 +0530)]
Support explicit plural forms at client side l10n
Adds support for explicit plural forms like n=form
Example:
message: There {{plural:$1|is one car|are $1 cars|0=are no cars|12=are a dozen
cars}}
with $1=12, this gives: There are a dozen cars
Includes qunit tests.
Bug: 51284
Change-Id: I82b906769ccdd9907d2d8022a689232f496c033e
jenkins-bot [Mon, 15 Jul 2013 23:20:31 +0000 (23:20 +0000)]
Merge "database: added DBConnRef wrapper to manage calling reuseConnection()"
jenkins-bot [Mon, 15 Jul 2013 22:31:34 +0000 (22:31 +0000)]
Merge "Allow postEdit hook to be triggered asynchronously"
Aaron Schulz [Sat, 6 Jul 2013 06:19:11 +0000 (23:19 -0700)]
database: added DBConnRef wrapper to manage calling reuseConnection()
Change-Id: Ifc9db62d1ac34d0c6a072d6f2d05bdcf73af14bb
Translation updater bot [Mon, 15 Jul 2013 19:28:12 +0000 (19:28 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I4754e3416cb763f6e78c1e4756db9c49c5d6f15f
Tychay [Mon, 15 Jul 2013 18:37:02 +0000 (18:37 +0000)]
Merge "Mime emails should be sent with UTF-8 charset"
Brad Jorsch [Mon, 15 Jul 2013 15:41:06 +0000 (11:41 -0400)]
API: Fix prop=imageinfo iicontinue
The iicontinue value needs to contain the dbkey, not the text version of
the title, as the dbkey version is what is being used for comparison
internally.
Bug: 51342
Change-Id: I88d99681fd601543c1d7c824c391ce272143c2e1
jeroendedauw [Mon, 15 Jul 2013 15:33:49 +0000 (17:33 +0200)]
Move inclusion of the Composer autoloader to after inclusion of DefaultSettings
If it is before, settings set by extensions will end up being overriden.
Change-Id: Ibe80d621cfaa7258cfd759094a1e9f0008a469b1
Ed Sanders [Fri, 21 Jun 2013 12:32:10 +0000 (13:32 +0100)]
Allow postEdit hook to be triggered asynchronously
This is required by VisualEditor as it doesn't do a page reload
after a save. So we need it to keep listening even if the
initial config and cookie data doesn't show an edit was just
made.
* Allow the message to be overriden, as VE uses its own.
* Using jQuery instead of direct DOM interaction with `div` (and
renamed to $div accordingly).
* Moved click handler from postedit-close to postedit-container.
Bug: 39632
Change-Id: I778b18bc051c51de355e122d8d4517b5a651ed4c
Translation updater bot [Sun, 14 Jul 2013 19:15:22 +0000 (19:15 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ic83e47bec279a98ef3be15f5c697f07dda78c4d0
jenkins-bot [Sun, 14 Jul 2013 18:02:08 +0000 (18:02 +0000)]
Merge "Parse the undelete-search-prefix message"