Commit graph

50736 commits

Author SHA1 Message Date
C. Scott Ananian
554a5d0443 Optimize Parser::doQuotes().
Performance improvements to doQuotes(), since it is a hot function.

Co-authored-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
Change-Id: If78d4372a2acd78d58b020385da400978716cbf5
2013-09-11 23:06:49 +00:00
Aaron Schulz
5cb69843db Made HTMLForm wrap the submit buttons in a container for styling
Change-Id: I6510493a80c18ba5a466a16e3ca39396f9a60f60
2013-09-11 14:47:19 -07:00
jenkins-bot
0843630642 Merge "API: Enforce limit max in ApiQueryBacklinks" 2013-09-11 21:17:01 +00:00
Brad Jorsch
45c1f4c2df API: Enforce limit max in ApiQueryBacklinks
Change-Id: Id0f0943771e3593c30563469df4820437ded9a99
2013-09-11 13:57:09 -07:00
Brad Jorsch
37ed022c25 Add StubObject::unstub, and use it for $wgAuth->getUserInstance()
PHP's __call magic method can't handle functions with reference
parameters correctly,[1] which means that we need to manually unstub
StubObjects before calling such a method. Or you could use call-time
pass by reference with call_user_func_array, which is rather backwards
and verbose.

This change adds a convenience function to do this, and applies it to
the two calls which brought it to my attention.

[1]: https://bugs.php.net/bug.php?id=40694,
https://bugs.php.net/bug.php?id=62455

Change-Id: I74a0c04bf358e164f753b82fbefbd6205d9b2451
2013-09-11 13:11:20 -07:00
Translation updater bot
c8a2f0db31 Localisation updates from http://translatewiki.net.
Change-Id: I7f09413ca5fd56cc4a0fc8b806464495577c101e
2013-09-11 19:35:51 +00:00
jenkins-bot
a550289389 Merge "Improved search backend fallback in Special:Search" 2013-09-10 21:35:30 +00:00
Reedy
589b2af808 Improved search backend fallback in Special:Search
Use the srbackend parameter if it's valid.

If it's not, use $wgSearchType if it's not null.

Finally, fall back to the search type of the database.

Bug: 53982
Change-Id: I3605cb4add270543aa20afb037401b2dfbe462f0
2013-09-10 16:49:54 -04:00
Translation updater bot
d4231f31ae Localisation updates from http://translatewiki.net.
Change-Id: Ib9eb5a43ec80cd1fd531c2aa60770c17a328794b
2013-09-10 19:48:13 +00:00
jenkins-bot
de07d11920 Merge "Fix inaccurate jQueryMsg comment" 2013-09-10 11:09:03 +00:00
Matthew Flaschen
23b9be5700 Fix inaccurate jQueryMsg comment
It's done by mediawiki.js, as it says at the bottom of the file.

Change-Id: I2505cde86ff9d9532fce75f3924f88e898a5f5f6
2013-09-10 08:47:40 +00:00
jenkins-bot
667a6c3dee Merge "ToC: Use display:table, so that we can behave like a block element" 2013-09-09 19:48:24 +00:00
Derk-Jan Hartman
b795284973 ToC: Use display:table, so that we can behave like a block element
The downside to inline-block is that you don't clear other inline
elements. Although inline elements surrounding the ToC are rare, they
are common enough that this introduced some problems on English
Wikipedia.

Instead, let's just display as table. This is a block element and has
all the boxmodel behavior that we want (that of a table, an intrinsic
wide block element). It's not the nicest perhaps, but it works in all
modern browsers without known problems as far as I'm aware.

We still fallback to inline mode on browsers that don't properly
support display:table.

Followup to: I4ecd0659d1f955a9b593d281a3fef0a81c218a52
Bug: 658
Change-Id: Ib8e2801f9a143de370589728aad01926906ffae0
2013-09-09 19:43:21 +00:00
jenkins-bot
62cf6a1af5 Merge "mediawiki.action.edit.preview: Add .limitreport to live preview" 2013-09-09 17:45:48 +00:00
Bartosz Dziewoński
9fe406bf30 mediawiki.action.edit.preview: Add .limitreport to live preview
Change-Id: Id65c93322d2d9de2983ba7278f269f9b061e3ade
2013-09-08 18:13:01 +02:00
TheDJ
e32779f96f Merge "Use redirect=no for links to file redirects in "file usages" section" 2013-09-08 13:34:32 +00:00
Translation updater bot
d4018551b0 Localisation updates from http://translatewiki.net.
Change-Id: I4f52889299ffc8ae8d49634fd8b36d73c66d8b5a
2013-09-07 19:47:58 +00:00
Marius Hoch
078276356b Allow toggling elements with space
This seems more convenient than having the space key
do nothing as it does right now.
Furthermore this is more consistent with the various
other collapsible things we have around than to just
scroll the page on a space keypress.

Bug: 53797
Change-Id: If9292ef6a8fd82b097c597dc166e38c8ca31f4ff
2013-09-07 14:46:35 +02:00
jenkins-bot
20ce9ccbd5 Merge "jquery.byteLength: Improve documentation and tests" 2013-09-07 10:40:58 +00:00
David Chan
e1ed8a7b89 jquery.byteLength: Improve documentation and tests
Change-Id: I6793487b7cd9f58b23554bc29c853bd3f02da49c
2013-09-06 18:23:35 -07:00
umherirrender
ed50986174 Use redirect=no for links to file redirects in "file usages" section
Bug: 50051
Change-Id: Ie77af42b2d9183ba2f56a300a6604c3f71ee89b8
2013-09-06 20:32:49 +00:00
jenkins-bot
c356f751e3 Merge "Removes portal-url, currentevents-url and helppage from default Sidebar" 2013-09-06 20:17:16 +00:00
Quim Gil
8e502f00da Removes portal-url, currentevents-url and helppage from default Sidebar
portal-url ("Community portal"), currentevents-url ("Current events") 
and helppage ("Help") lead to empty pages in a fresh MediaWiki install, 
when most projects won't need these pages ever. Removing the 
corresponding lines.

Bug 53862
Change-Id: Icb0e1b91e40bd682629f8a6f7291dbf8588b586b
2013-09-06 20:08:27 +00:00
jenkins-bot
46f74ea958 Merge "Add plain semicolons to wfEscapeWikitext()." 2013-09-06 18:01:14 +00:00
jenkins-bot
875d26b122 Merge "jquery.makeCollapsible: Tests for collapsible <table>, <ul>, <ol>" 2013-09-06 17:59:36 +00:00
jenkins-bot
458401291d Merge "jquery.makeCollapsible: Only trigger custom events once per collapsible" 2013-09-06 17:52:26 +00:00
rillke
07c61c796b Return normalized file name on warning "exists-normalized"
Make API action=upload return normalized file name on warning
"exists-normalized" instead of filename to be uploaded to.

This enables humans to see which file the current upload conflicts
with.
There is no point in returning the filename the upload should go to
because the client that makes the request is usually aware of this.

Bug: 52699
Change-Id: I898b7f234d43eb1e524952f6de80e401a8c96671
2013-09-06 10:47:45 -04:00
MatmaRex
9e1274a91b collapsibleTabs: Minor code style fixes
Change-Id: Ifef92ac277cce91c64dc9af637e86c9389bfd241
2013-09-06 09:30:10 +00:00
jenkins-bot
c38d687a3f Merge "Special:PagesWithProp: Distinguish content from interface" 2013-09-05 22:17:34 +00:00
jenkins-bot
8fe0cf9704 Merge "Add cache versioning to InfoAction." 2013-09-05 22:15:07 +00:00
jenkins-bot
b5ef545ae3 Merge "Removing all disambiguation code from core" 2013-09-05 21:13:03 +00:00
kaldari
e517e9be57 Removing all disambiguation code from core
Disambiguation related functions have been re-implemented in the
Disambiguator extension.

Bug: 35981
Change-Id: I4afa30bf2677c6541ef355013f8eaef46abfbe03
Dependency: I41637ea43a9e5000bcb8a782441ce36f1068881f
2013-09-05 14:07:51 -07:00
Translation updater bot
237ea0aed1 Localisation updates from http://translatewiki.net.
Change-Id: Id0e30f9293e0dc3a9fb402adf6fc8b005fb97fdc
2013-09-05 20:28:26 +00:00
Liangent
01240e5eb4 Add plain semicolons to wfEscapeWikitext().
It's a part of language conversion syntax, even when not used at
beginning of lines.

Change-Id: I848b6d13096887d51618f2694da93b6d65c0376e
2013-09-05 19:30:51 +00:00
jenkins-bot
8a45246009 Merge "Reorder SpecialRecentChanges::webOutput" 2013-09-05 18:12:08 +00:00
jenkins-bot
15bbdb5e3a Merge "Allow registration of Actions using a callback that returns an Action instance" 2013-09-05 10:11:02 +00:00
shirayuki
1b8155403c Give grep a chance to find the usages
Change-Id: I7fc00b055b21bbbbab209a1b1d23f23172862a0b
2013-09-05 18:29:47 +09:00
jenkins-bot
59404fb12e Merge "Call $wgContLang->findVariantLink() in {{PAGESINCATEGORY: }}" 2013-09-05 07:41:39 +00:00
Liangent
970cc1e8e6 Call $wgContLang->findVariantLink() in {{PAGESINCATEGORY: }}
Corrects inconsistent return value for number of pages in a
category when language variants are in use.

Change-Id: I27668ba348c45bc34b264f8771e91e58a9920552
2013-09-05 07:35:23 +00:00
jenkins-bot
5098f9f1b1 Merge "vector/screen.css: Remove some unnecessary rules" 2013-09-04 22:03:09 +00:00
MatmaRex
a9881e87d4 vector/screen.css: Remove some unnecessary rules
* There is no label inside div#simpleSearch.
* Inside div#simpleSearch, input and input#searchInput are the
  same in practice (there is a <input type=submit>, but it is hidden).

Change-Id: I1d9657a5ab608d1a54314dd7c96144af96c53d59
2013-09-04 21:59:48 +00:00
jeroendedauw
f303047f68 Allow registration of Actions using a callback that returns an Action instance
Basically implementing what Brion suggested on wikitech

This allows for injecting dependencies while still only loading the actual class when needed.

Simple example:

$wgActions['epundo'] = function( Page $page, IContextSource $context = null ) use ( $differ ) {
	$undoAction = new \EducationProgram\UndoAction( $page, $context );
	$undoAction->setDiffer( $differ );
	return $undoAction;
};

Change-Id: I6c0f4022f1df1ebaf9cd1a5fe4bd362d0ecc0d62
2013-09-04 21:08:32 +00:00
Translation updater bot
bc687deca0 Merge "Localisation updates from http://translatewiki.net." 2013-09-04 19:56:36 +00:00
Translation updater bot
5f7a37f271 Localisation updates from http://translatewiki.net.
Change-Id: I5e7da5913a10c7f75cdf223f2166cc7873134949
2013-09-04 19:50:47 +00:00
MatmaRex
2f5125e8c4 jquery.suggestions: Add some comments
Change-Id: I0706e1f847f8ebf3d48cbb40a88dd6f6d487d2e6
2013-09-04 21:41:41 +02:00
jenkins-bot
edb4ed713c Merge "No spaces after (casts)" 2013-09-04 18:14:05 +00:00
MatmaRex
df8ec1e216 No spaces after (casts)
Also removed some unnecessary ones. I think I've caught them all.

The spaceless version already appears in core ~300 times (after
accounting for false positives when grepping). Some consistency would
be nice.

Change-Id: I607655b5f4366e66dc78730d5fd2f57ed8776cae
2013-09-04 20:05:43 +02:00
jenkins-bot
2367c317c0 Merge "Use canonical class name, remove unused globals." 2013-09-04 17:55:34 +00:00
jenkins-bot
ee98a67982 Merge "Add a deferrable update class for callback/closure udpates" 2013-09-04 16:32:38 +00:00
jenkins-bot
cc9e5776bb Merge "Make mwCustomEditButtons a no-op and mark it as deprecated" 2013-09-04 16:11:53 +00:00