lhc/web/wiklou.git
11 years agoRevert "Remove Special:ActiveUsers"
Chad Horohoe [Tue, 23 Apr 2013 13:29:36 +0000 (09:29 -0400)]
Revert "Remove Special:ActiveUsers"

This reverts commit 27104686abe2aaf464d8d654a71e946326a0926d.

Revert "Remove link to Special:ActiveUsers from Special:Statistics"

This reverts commit 62949af09ea3ceb96d897ec8aab74afdadb02d4e.

I used a sledgehammer where a scalpel would've done--and I should
be whacked with the cluebat. This should be done per-wiki, plus
improvements.

Change-Id: Ib43b42057b8d9f714a8a71ba9cbe375385254b7c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 5 May 2013 19:35:11 +0000 (19:35 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I44a29f7dab2c2131e90e6cd8e910d25569bb0744

11 years agoMerge "Fix visibility of error handlers"
jenkins-bot [Sun, 5 May 2013 09:27:57 +0000 (09:27 +0000)]
Merge "Fix visibility of error handlers"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 4 May 2013 19:45:57 +0000 (19:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9b379ba2d392a74200050e45efcc62010def9a32

11 years agoMerge "swap enhanced watchlist/RC arrow images for prettier ones"
MarkTraceur [Sat, 4 May 2013 19:28:56 +0000 (19:28 +0000)]
Merge "swap enhanced watchlist/RC arrow images for prettier ones"

11 years agoFix visibility of error handlers
Jakub Vrana [Sat, 4 May 2013 17:10:06 +0000 (10:10 -0700)]
Fix visibility of error handlers

I've hit this error when $wgDBuser didn't have access to $wgDBname.
I've also checked all other error handlers in core.

An alternative approach would be to use an anonymous function but it doesn't support $this until PHP 5.4 so it would be messier.

Change-Id: I89db2e8c88b84d9b53c4b828ac0208b05a3d3783

11 years agoMerge "Kill some references to legacy skins"
jenkins-bot [Sat, 4 May 2013 13:30:52 +0000 (13:30 +0000)]
Merge "Kill some references to legacy skins"

11 years agoMerge "deleteEqualMessages: Include list of pages in dry run"
jenkins-bot [Sat, 4 May 2013 07:46:52 +0000 (07:46 +0000)]
Merge "deleteEqualMessages: Include list of pages in dry run"

11 years agoCode style fixes in Language::isValidCode()
lwelling [Fri, 3 May 2013 17:26:14 +0000 (13:26 -0400)]
Code style fixes in Language::isValidCode()

Fix issues from https://gerrit.wikimedia.org/r/#/c/62123

Change-Id: I97e826bb9aa9e3a14d07aab7cf02a09ef2c84ef7

11 years agoMerge "Implement mw.log.warn and mw.log.deprecate"
jenkins-bot [Sat, 4 May 2013 03:30:24 +0000 (03:30 +0000)]
Merge "Implement mw.log.warn and mw.log.deprecate"

11 years agoMerge "mediawiki.log: Add to jsduck index"
jenkins-bot [Sat, 4 May 2013 03:27:17 +0000 (03:27 +0000)]
Merge "mediawiki.log: Add to jsduck index"

11 years agoInclude user name in weird User insertion exception.
Aaron Schulz [Fri, 3 May 2013 23:14:31 +0000 (16:14 -0700)]
Include user name in weird User insertion exception.

Change-Id: I70fea9819e968ae306de5c3c3eee4292d3fa17d3

11 years agoKill some references to legacy skins
MatmaRex [Fri, 3 May 2013 22:01:48 +0000 (00:01 +0200)]
Kill some references to legacy skins

More cleanup after the great skin removal of 2013.

Change-Id: Ia91e9467afac4a0e755869b8791d4fc9a6fb5a56

11 years agoMerge "Factorise call to getSuggestedDurations() in SpecialBlock::getFormFields()"
jenkins-bot [Fri, 3 May 2013 18:03:36 +0000 (18:03 +0000)]
Merge "Factorise call to getSuggestedDurations() in SpecialBlock::getFormFields()"

11 years agoMerge "Pass correct number of parameters to Database constructor from installer"
jenkins-bot [Fri, 3 May 2013 17:46:39 +0000 (17:46 +0000)]
Merge "Pass correct number of parameters to Database constructor from installer"

11 years agoPass correct number of parameters to Database constructor from installer
Jakub Vrana [Fri, 3 May 2013 16:26:25 +0000 (09:26 -0700)]
Pass correct number of parameters to Database constructor from installer

DatabaseBase::__construct() accepts 6 parameters, installer passes 7.

Change-Id: I96d84f645f8f3899d7a99756b441957f1b234de9

11 years agodeleteEqualMessages: Include list of pages in dry run
Timo Tijhof [Fri, 3 May 2013 14:27:12 +0000 (16:27 +0200)]
deleteEqualMessages: Include list of pages in dry run

Also clarify that the talk page number is in addition to the
other number. So it says "10 pages are equal (+ 2 talk pages)"
instead of "10 pages are equal (2 talk pages)".

Document better that the default is a dry run.

Change-Id: I95edb08d7b92c393ed226bef2575e52a6135f8df

11 years agoMerge "Monobook: Remove OperaNFixes.css files"
jenkins-bot [Fri, 3 May 2013 15:12:24 +0000 (15:12 +0000)]
Merge "Monobook: Remove OperaNFixes.css files"

11 years agoMerge "jquery.makeCollapsible: Enable passthru for links in premade toggle"
jenkins-bot [Fri, 3 May 2013 14:09:25 +0000 (14:09 +0000)]
Merge "jquery.makeCollapsible: Enable passthru for links in premade toggle"

11 years agojquery.makeCollapsible: Enable passthru for links in premade toggle
MatmaRex [Thu, 4 Apr 2013 16:36:55 +0000 (18:36 +0200)]
jquery.makeCollapsible: Enable passthru for links in premade toggle

Clicking on a regular link inside a premande toggle is supposed
to follow the link instead of collapsing/expanding the
appropriate element.

Broken during a rewrite in Id3f457a8 (2638b16c) - the comment
reflected the intended behavior, but the code was wrong.

Regression test included.

Bug: 46848
Change-Id: Id571f8d612e5131845d381121604c2b1116a077f

11 years agoMerge "SpecialPreferences: Remove invalid <strong> tag in successbox"
jenkins-bot [Fri, 3 May 2013 13:56:10 +0000 (13:56 +0000)]
Merge "SpecialPreferences: Remove invalid <strong> tag in successbox"

11 years agoMerge "Allow iiurlheight to be used without iiurlwidth"
jenkins-bot [Fri, 3 May 2013 13:33:59 +0000 (13:33 +0000)]
Merge "Allow iiurlheight to be used without iiurlwidth"

11 years agoSpecialPreferences: Remove invalid <strong> tag in successbox
AVRS Aditya Sastry [Thu, 18 Apr 2013 13:04:11 +0000 (18:34 +0530)]
SpecialPreferences: Remove invalid <strong> tag in successbox

Using CSS font-weight instead.

Also removed all traces of #mw-pref-clear. They are redundant since the
preferences form already has class "visualClear".

Bug: 33438
Change-Id: If606203218ece5974a956a3d41d5db40f55b2d5c

11 years agoImplement mw.log.warn and mw.log.deprecate
Timo Tijhof [Mon, 22 Apr 2013 12:23:11 +0000 (14:23 +0200)]
Implement mw.log.warn and mw.log.deprecate

Change-Id: I1eadd01d7086aecb1bdf7e950c49778fd63b5414

11 years agomediawiki.log: Add to jsduck index
Timo Tijhof [Mon, 22 Apr 2013 12:31:04 +0000 (14:31 +0200)]
mediawiki.log: Add to jsduck index

And fixing warnings as a result of it being in the index.

Change-Id: I28dfc97d8fc63131fc02c0fa0f82945f3c18029f

11 years agoMonobook: Remove OperaNFixes.css files
MatmaRex [Mon, 22 Apr 2013 11:32:31 +0000 (13:32 +0200)]
Monobook: Remove OperaNFixes.css files

We were providing fixes for Opera 6, 7 and 9, even though it's 2013,
Opera is at version 12, and even as a grade B browser we're only
supporting Opera 10.

Given the amount of various changes to the codebase over the years,
I'd be surprised if any of those were still doing anything for the
compatibility.

Change-Id: I9925cc98d11c4e2eecedd305a724f0763a62a782

11 years agoCache result of Language::isValidCode() to avoid regex processing
lwelling [Fri, 3 May 2013 00:34:25 +0000 (20:34 -0400)]
Cache result of Language::isValidCode() to avoid regex processing

The function can be called over 2000 times in generating a page. This way
is significantly faster even for random invalid codes.  For real use it
should avoid the regex most of the time with no change in behavior.

Change-Id: I9fcbae1770be0d3f405d3d12254c11943b0d5f46

11 years agoAllow iiurlheight to be used without iiurlwidth
Catrope [Tue, 23 Apr 2013 03:46:15 +0000 (20:46 -0700)]
Allow iiurlheight to be used without iiurlwidth

Wanting to get a thumbnail with only the height constrained is a
reasonable use case, the only reason we don't support it in the
API is because the backend doesn't support it directly. This is
easy enough to emulate by setting the width to the full width of
the image if only the height is specified. This makes the transform
function use a bounding box of size w x h, and if w is the width of
the original image that's equivalent to just bounding the height.

Change-Id: I28c7c22ee91669469cbd9e7d25f09100933582de

11 years agoMerge "Monobook: Remove unused file FF2Fixes.css"
jenkins-bot [Fri, 3 May 2013 00:25:59 +0000 (00:25 +0000)]
Merge "Monobook: Remove unused file FF2Fixes.css"

11 years agoMerge "Message tweaks to new login and create acct forms"
Ori.livneh [Thu, 2 May 2013 22:47:40 +0000 (22:47 +0000)]
Merge "Message tweaks to new login and create acct forms"

11 years agoMerge "SpecialRedirect: Add @since documentation and add release notes"
GWicke [Thu, 2 May 2013 21:56:56 +0000 (21:56 +0000)]
Merge "SpecialRedirect: Add @since documentation and add release notes"

11 years agoMerge "mediawiki.htmlform: Use auto width for Chosen selects"
jenkins-bot [Thu, 2 May 2013 21:40:25 +0000 (21:40 +0000)]
Merge "mediawiki.htmlform: Use auto width for Chosen selects"

11 years agoSpecialRedirect: Add @since documentation and add release notes
C. Scott Ananian [Thu, 2 May 2013 14:23:06 +0000 (10:23 -0400)]
SpecialRedirect: Add @since documentation and add release notes

The Special:Redirect page was added in change
I8b0785f4fbdb3dd438a7a45263c5f375ff9d2208.

Change-Id: I1a4b9a8b0a008f16e554f7edc2f21b7142fde8d4

11 years agomediawiki.htmlform: Use auto width for Chosen selects
Ryan Lane [Thu, 2 May 2013 20:44:54 +0000 (15:44 -0500)]
mediawiki.htmlform: Use auto width for Chosen selects

Upgrading jQuery Chosen to 0.9.14 (which adds a "width" option) and
setting width: auto in chosen calls for HTMLForm elements.

Change-Id: Ib87f00ae0f3ad960d35d7a3c4529e56bbdaa6c38

11 years agoMerge "Change font size for edit links to small"
jenkins-bot [Thu, 2 May 2013 20:31:31 +0000 (20:31 +0000)]
Merge "Change font size for edit links to small"

11 years agoMerge "mediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option"
jenkins-bot [Thu, 2 May 2013 20:16:52 +0000 (20:16 +0000)]
Merge "mediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option"

11 years agoChange font size for edit links to small
Matthew Flaschen [Wed, 1 May 2013 21:09:35 +0000 (17:09 -0400)]
Change font size for edit links to small

As discussed on https://meta.wikimedia.org/wiki/Talk:Change_to_section_edit_links#Font_size

Followup to I6a6c12a9 / 7833589c.

Change-Id: I92b61ccb7291183a5beed1047d8e871afdc367ee

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 2 May 2013 19:50:29 +0000 (19:50 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5e4232d2d41075ca5cf3339576032d08e2fb9c3d

11 years agoMerge "Import: Fix incorrect wfRunHooks usage"
Max Semenik [Thu, 2 May 2013 19:26:07 +0000 (19:26 +0000)]
Merge "Import: Fix incorrect wfRunHooks usage"

11 years agoImport: Fix incorrect wfRunHooks usage
Max Semenik [Fri, 26 Apr 2013 20:35:20 +0000 (00:35 +0400)]
Import: Fix incorrect wfRunHooks usage

af125df5199b5c232bf335d735cecc6d8f8e9784 broke importing
because Import.php was calling wfRunHooks() improperly.
Fixing the calls and making the wfRunHooks() signature
match Hooks::run() to make call errors immediately detectable.

Change-Id: If44292fedf6917cde1dae7f0391231a18d414610

11 years agoqqq docs for installer mysql warning
Erik Bernhardson [Thu, 2 May 2013 01:57:01 +0000 (18:57 -0700)]
qqq docs for installer mysql warning

The previous commit I68e79a8efe7cd625c12b5993074de9c3479e760b added a new
i18n string without a matching qqq, this rectifys that situation.

Bug: 34430
Change-Id: Ia57b92762a2de83c3bdb1b5e74c0e6d7ce9db309

11 years agoMerge "jquery.badge: Add CSS inline-block fix for IE 7 and earlier"
jenkins-bot [Wed, 1 May 2013 23:03:55 +0000 (23:03 +0000)]
Merge "jquery.badge: Add CSS inline-block fix for IE 7 and earlier"

11 years agomediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option
Ryan Lane [Wed, 1 May 2013 21:15:32 +0000 (16:15 -0500)]
mediawiki.htmlform: Preserve classes added by HTMLForm's cssclass option

Follow-up to commit 8a9341b. When changing the multi-select
checkbox container to a select multiple, preserve any custom
classes added via the cssclass argument for the htmlform field.

Change-Id: I41d2a306627b33b34d7e464147d771cc727f4f61

11 years agojquery.badge: Add CSS inline-block fix for IE 7 and earlier
kaldari [Wed, 1 May 2013 21:33:26 +0000 (14:33 -0700)]
jquery.badge: Add CSS inline-block fix for IE 7 and earlier

Also making sure cursor is set to pointer for IE7 and earlier

Bug: 47926
Change-Id: I2fce808e076671778010859e547d6544d060f31f

11 years agoCompletely blacklist Opera Mobile from RL
Max Semenik [Wed, 1 May 2013 21:19:31 +0000 (01:19 +0400)]
Completely blacklist Opera Mobile from RL

While initially it was believed that allowing it in does no harm,
practice proves otherwise, see the dependencies of bug 47572.

Bug: 47572
Bug: 47570
Bug: 47567
Bug: 47568
Bug: 47569
Change-Id: I32c082d3cca1af4ce97da08f28beb4926ae97ac3

11 years agoMerge "Detect user rights conflicts"
jenkins-bot [Wed, 1 May 2013 22:01:40 +0000 (22:01 +0000)]
Merge "Detect user rights conflicts"

11 years agoMerge "Show a tip at the end of the installer to prompt about extensions"
jenkins-bot [Wed, 1 May 2013 20:29:39 +0000 (20:29 +0000)]
Merge "Show a tip at the end of the installer to prompt about extensions"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 1 May 2013 19:27:16 +0000 (19:27 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie0b73239f9a3d3aefea1b9eea4a821591149f67a

11 years agoMerge "Remove LocalisationCache::unloadAll() call from NewParserTest::addDBData()"
jenkins-bot [Wed, 1 May 2013 18:12:10 +0000 (18:12 +0000)]
Merge "Remove LocalisationCache::unloadAll() call from NewParserTest::addDBData()"

11 years agoMerge "rebuildLocalisationCache: Implement --lang option"
jenkins-bot [Wed, 1 May 2013 13:17:54 +0000 (13:17 +0000)]
Merge "rebuildLocalisationCache: Implement --lang option"

11 years agorebuildLocalisationCache: Implement --lang option
Antoine Musso [Tue, 30 Apr 2013 14:50:20 +0000 (16:50 +0200)]
rebuildLocalisationCache: Implement --lang option

It would rebuild all language caches by default.
We were lacking an option to rebuild only one language, for example when
it get corrupted or the cache file for a language got removed.

The new --lang accepts a list of comma separated langs to rebuild the
cache for.  Example usage:

 php rebuildLocalisationCache.php --lang en,fr,de

Nonexistent languages are simply ignored. The script dies if it ends up
with no languages to rebuild.

Change-Id: I4c5e69abb76ffd8b88b595e3687edab3bb267ccc

11 years agoMerge "Add combined link trail / link prefix parserTests case."
jenkins-bot [Wed, 1 May 2013 04:29:13 +0000 (04:29 +0000)]
Merge "Add combined link trail / link prefix parserTests case."

11 years agoMerge "Add hook AbortChangePassword to Special:ChangePassword"
jenkins-bot [Wed, 1 May 2013 03:15:13 +0000 (03:15 +0000)]
Merge "Add hook AbortChangePassword to Special:ChangePassword"

11 years agoMessage tweaks to new login and create acct forms
S Page [Sat, 27 Apr 2013 05:00:55 +0000 (22:00 -0700)]
Message tweaks to new login and create acct forms

* "Keep me logged in" (bug 47694)
* "[Create my account]" submit button (bug 47700)
* "Why you are creating another account" placeholder (bug 31888)

Bug: 47694
Bug: 47700
Bug: 31888

Change-Id: I7cfa4bb36368277a934144c1724ec437c426eacf

11 years agoMerge "HTMLForm entity labels are now optional and escaped"
jenkins-bot [Wed, 1 May 2013 01:02:06 +0000 (01:02 +0000)]
Merge "HTMLForm entity labels are now optional and escaped"

11 years agoHTMLForm entity labels are now optional and escaped
Matt Walker [Tue, 16 Apr 2013 18:05:50 +0000 (11:05 -0700)]
HTMLForm entity labels are now optional and escaped

Things like checkboxes have no label, yet a label div gets generated
anyway. This is annoying when maybe I don't want that empty div hanging
around (i.e., it looks like it's part of other option groups when I
have left margins on all .mw-input).

This patch will now also escape 'label' fields by default. For the old
functionality you must now explicitly use the 'label-raw' field.

Change-Id: I8f8340911b7495a91c93e7f2eb7c041b2a7f2179

11 years agoMerge "HTMLTextAreaField: Allow sizes to be overridden by child classes"
jenkins-bot [Wed, 1 May 2013 00:49:28 +0000 (00:49 +0000)]
Merge "HTMLTextAreaField: Allow sizes to be overridden by child classes"

11 years agoRemove LocalisationCache::unloadAll() call from NewParserTest::addDBData()
Alexandre Emsenhuber [Tue, 30 Apr 2013 18:51:26 +0000 (20:51 +0200)]
Remove LocalisationCache::unloadAll() call from NewParserTest::addDBData()

- Localisation cache does not depend on the database, only on the
  localisation files themselves
- the backend is already set to LCStore_Null, so it will not interfere
  with other caches (CDB, database, etc.)

Unloading the whole cache before each test thus only adds overhead
without any benefit, and slows down the test suite (this changes allows
to win about 20 seconds on my local machine).

Change-Id: Ifa36a7135d9f8355e1a10dd49ece806d90f657a2

11 years agoClarify wfRandomString release note
Kevin Israel [Tue, 30 Apr 2013 22:02:42 +0000 (18:02 -0400)]
Clarify wfRandomString release note

Change-Id: I54b39488eeab0ca54cc44c6ba592da311604a39b
Follows-Up: Ic19b5b97c582485780b24fd35ffef2111cc8b3ca

11 years agoAdd hook AbortChangePassword to Special:ChangePassword
Ryan Lane [Tue, 30 Apr 2013 19:37:52 +0000 (12:37 -0700)]
Add hook AbortChangePassword to Special:ChangePassword

Adds a consistent method for authentication extensions to block
password changing operations.

Bug: 46590
Change-Id: I3469e90a958c4fb0f24cafd67de5590d3cc2f075

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 30 Apr 2013 21:29:58 +0000 (21:29 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoAdd combined link trail / link prefix parserTests case.
C. Scott Ananian [Tue, 30 Apr 2013 18:53:13 +0000 (14:53 -0400)]
Add combined link trail / link prefix parserTests case.

This protects against the bug fixed in https://gerrit.wikimedia.org/r/61512
which failed to process the rest of the paragraph after the first link
trail.

We also add more thorough test cases combining link trails, link prefixes,
and piped links.  This targets Parsoid round-tripping wikitext to wikitext
in particular.

Change-Id: I68fb3b2cec09906b19e6f833688a46b811ba9eb4

11 years agoSECURITY: Check SVG xml encoding against whitelist
csteipp [Tue, 23 Apr 2013 21:15:01 +0000 (14:15 -0700)]
SECURITY: Check SVG xml encoding against whitelist

Some browsers will interpret obscure xml encodings as UTF-8, while
PHP/expat will interpret the given encoding in the xml declaration.

bug: 47304
Change-Id: I3b311a7078d977ae89c51e95e625d79fba183cfc

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 30 Apr 2013 19:57:00 +0000 (19:57 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I3fec933fed1e61dded7aa5a538865a9c98ba1663

11 years agoUpdate language maintenance files
raymond [Tue, 30 Apr 2013 19:38:56 +0000 (21:38 +0200)]
Update language maintenance files

per
https://gerrit.wikimedia.org/r/#/c/59572/13/languages/messages/MessagesEn.php,unified
https://gerrit.wikimedia.org/r/#/c/61073/4/maintenance/language/messages.inc,unified

Change-Id: I2c863b2a8db5f9b3c7630abb4b843845dbe4fa79

11 years agoMerge "ApiResult::setContent is static"
jenkins-bot [Tue, 30 Apr 2013 18:57:17 +0000 (18:57 +0000)]
Merge "ApiResult::setContent is static"

11 years agoMerge "Reimplement Special:Filepath as a redirect through Special:Redirect/File."
jenkins-bot [Tue, 30 Apr 2013 18:37:04 +0000 (18:37 +0000)]
Merge "Reimplement Special:Filepath as a redirect through Special:Redirect/File."

11 years agoMerge "Create a Special:Redirect page."
jenkins-bot [Tue, 30 Apr 2013 18:34:11 +0000 (18:34 +0000)]
Merge "Create a Special:Redirect page."

11 years agoApiResult::setContent is static
umherirrender [Tue, 30 Apr 2013 18:16:36 +0000 (20:16 +0200)]
ApiResult::setContent is static

Change-Id: Ifee10208e8b79928ecaa47f541bb61dd6e9c29e4

11 years agoMonobook: Remove unused file FF2Fixes.css
Timo Tijhof [Mon, 22 Apr 2013 11:18:12 +0000 (13:18 +0200)]
Monobook: Remove unused file FF2Fixes.css

As of Id8214c6a5 and Ia54dd738b (per bug 35906) we started
blacklisting Firefox 2 from the additional resource loader.

Though we haven't supported Firefox 2 for several years, Monobook
has had this patch for years and we never removed it (cheap to
maintain).

Since wikibits.js is no longer being loaded in Firefox 2, this
fix is now obsolete. It is never loaded, not even in Firefox 2.

It is causing problems because the legacy code incorrectly
detects Firefox 20 as Firefox 2, so instead of being a useless
file that is never loaded, it is actually causing problems by
being loaded in Firefox 20.

Bug: 47202
Change-Id: I2fdd0da8c17553a3465ef27c46a4632e135c4405

11 years agoskins: Ensure headings are not smaller than body text
MatmaRex [Tue, 30 Apr 2013 09:30:15 +0000 (11:30 +0200)]
skins: Ensure headings are not smaller than body text

A heading that's 80% the size of regular text? That's just weird.

Scaled the sizes slightly to give h6 100% of body text size.

Change-Id: I45bf6e8c8ec01cb5fdc8392b4944e970e130ce38

11 years agoMerge "Use 'recent contributors' instead of 'contributors this month'."
Swalling [Tue, 30 Apr 2013 17:41:38 +0000 (17:41 +0000)]
Merge "Use 'recent contributors' instead of 'contributors this month'."

11 years agoReimplement Special:Filepath as a redirect through Special:Redirect/File.
C. Scott Ananian [Fri, 26 Apr 2013 21:42:33 +0000 (17:42 -0400)]
Reimplement Special:Filepath as a redirect through Special:Redirect/File.

Reduces code duplication (and some ugly deprecated code patterns in the
Special:Filepath implementation).  In the long term, reduces the need for
one-off redirection pages (Special:PermanentLink, Special:Filepath, etc)
in favor of an extensible system based around Special:Redirect.

Change-Id: I42d5879342bc18412f0383c538e83c68b1c3cc2a

11 years agoCreate a Special:Redirect page.
C. Scott Ananian [Sat, 13 Apr 2013 01:52:05 +0000 (21:52 -0400)]
Create a Special:Redirect page.

The primary purpose of this page is to redirect to a user page given a
numeric id.  The numeric User ID is stable across renames, and is
therefore an appropriate primary key for identifying the user
associated with a given revision.  The Parsoid API would like to
export semantic RDFa in its DOM identifying the author of a revision
by their userid, but in order to do so requires a MW redirect from
userid to the appropriate User page.  (A "permalink" for the user.)

This patch adds that redirect, as
  http://somewiki/Special:Redirect/user/1234

(https://bugzilla.wikimedia.org/show_bug.cgi?id=45206 is the related
Parsoid feature.)

Rather than adding a set of ad-hoc redirection pages, this patch
sets up an infrastructure for redirections.  Special:Redirect also
subsumes the functions of:

* Special:Filepath (Special:Redirect/file/xxxx)
* Special:PermanentLink (Special:Redirect/revision/xxxxx)

This structure is extensible for other redirect types.

Change-Id: I8b0785f4fbdb3dd438a7a45263c5f375ff9d2208

11 years ago(bug 47219) Allow specifying change type of Wikipedia feed items
kaligula [Tue, 30 Apr 2013 16:01:00 +0000 (18:01 +0200)]
(bug 47219) Allow specifying change type of Wikipedia feed items

It exposes field /rc_type/ as ApiQueryRecentChanges does thus allowing
user to define which (edit, external, new, log) changes to show in feed.

Bug: 47219
Change-Id: If22827129b04d423711f921307dc820d4840d9d1

11 years agoMerge "Remove spurious 'h7' in commonPrint.css"
jenkins-bot [Tue, 30 Apr 2013 16:11:04 +0000 (16:11 +0000)]
Merge "Remove spurious 'h7' in commonPrint.css"

11 years agoMerge "vector: Remove useless HTML comments from output"
jenkins-bot [Tue, 30 Apr 2013 16:08:09 +0000 (16:08 +0000)]
Merge "vector: Remove useless HTML comments from output"

11 years agovector: Remove useless HTML comments from output
MatmaRex [Mon, 15 Apr 2013 19:30:04 +0000 (21:30 +0200)]
vector: Remove useless HTML comments from output

They pretty much just repeat the element ids and bloat the code.

Change-Id: I812b1a0456a623db0c32860ab46a332f4d349343

11 years agoRemove spurious 'h7' in commonPrint.css
MatmaRex [Tue, 30 Apr 2013 09:23:53 +0000 (11:23 +0200)]
Remove spurious 'h7' in commonPrint.css

There is no such element, silly.

Change-Id: I0a58278c1d2ff97463eddc15c701193cfd25757e

11 years agoAdd new message key to maintenace file
raymond [Tue, 30 Apr 2013 07:40:19 +0000 (09:40 +0200)]
Add new message key to maintenace file

https://gerrit.wikimedia.org/r/#/c/58281/17/languages/messages/MessagesEn.php,unified

Change-Id: I5306382841a74a850d92283252dab7d5cce6cc3a

11 years agoClean up the class building logic in OutputPage
MatmaRex [Mon, 22 Apr 2013 13:57:44 +0000 (15:57 +0200)]
Clean up the class building logic in OutputPage

Build the classes using an array that is finally imploded, instead of
concatenating strings repeatedly.

Change-Id: I2a09282d5ba33f131a4311c58e49dab5eefce418

11 years agoMerge "Add chosen support to HTMLForm's multiselect field"
jenkins-bot [Tue, 30 Apr 2013 04:51:47 +0000 (04:51 +0000)]
Merge "Add chosen support to HTMLForm's multiselect field"

11 years agoMerge "Bug 44855, Bug 37743: Improved vector button styles for jquery.ui"
Trevor Parscal [Mon, 29 Apr 2013 22:37:12 +0000 (22:37 +0000)]
Merge "Bug 44855, Bug 37743: Improved vector button styles for jquery.ui"

11 years agoMerge "Call jQuery.ready() before </body>"
Timo Tijhof [Mon, 29 Apr 2013 20:31:11 +0000 (20:31 +0000)]
Merge "Call jQuery.ready() before </body>"

11 years agoAdd chosen support to HTMLForm's multiselect field
Ryan Lane [Tue, 9 Apr 2013 07:48:21 +0000 (00:48 -0700)]
Add chosen support to HTMLForm's multiselect field

For very large multiselects, the list of checkboxes is
overwhelming. This change adds support for using jquery.chosen
conditionally on multiselect fields, if 'chosen' is used for the
cssclass parameter.

Change-Id: If1eba7fb705089deb4cff7a326db0ac803a522ec

11 years agoCall jQuery.ready() before </body>
Timo Tijhof [Thu, 25 Apr 2013 08:12:07 +0000 (10:12 +0200)]
Call jQuery.ready() before </body>

mw.loader defaults to async=false. Overridden when $.isReady=true
or a mw.loader call sets async=true.

The problem is in calls to mw.loader.load that are not in
the HTML output but occur *before* the DOMContentReady event.

In those cases we want to use async (creating a script tag)
instead of synchronous (document.write) because in Firefox
DOMContentReady is emitted some time after it is no longer safe
to use document.write (bug 47457).

This also optimises the dom ready event cross-browser.

Bug: 34542
Bug: 47457
Change-Id: Ic3d0c937268d0943d2f770f3ca18bcf4e1eed346

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 29 Apr 2013 19:03:34 +0000 (19:03 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5ccb7171071ba2443c392257d8bb0456949bfeb2

11 years agoBug 44855, Bug 37743: Improved vector button styles for jquery.ui
isarra [Sun, 17 Mar 2013 18:48:20 +0000 (11:48 -0700)]
Bug 44855, Bug 37743: Improved vector button styles for jquery.ui

Removed the orange because orange is an evil colour, made the other colours
brighter with softer gradients, added specific support for active and focus
states, made disabled buttons all grey.

Looks like this: http://jsfiddle.net/vPaM2/12/

Bug: 44855
Bug: 37743
Change-Id: I6f28ce6c9c3403d8377b4b3aaa7495b01853ee0e

11 years agoRevert "Creating new WMF 1.22wmf3 branch"
Reedy [Mon, 29 Apr 2013 18:19:32 +0000 (19:19 +0100)]
Revert "Creating new WMF 1.22wmf3 branch"

This reverts commit 98c77dd229d8a0b77d63c12c7aecc7fd51554083.

Change-Id: I01d0416822d85e45c1bda63d475826c805167d82

11 years agoRevert "Commit of various live hacks"
Reedy [Mon, 29 Apr 2013 18:19:13 +0000 (19:19 +0100)]
Revert "Commit of various live hacks"

This reverts commit c6af934ae65b8c7dbd878a376f9e46dc28bff941.

Change-Id: I3e863bb632531d7cd4ec0614325a7c4a7ba9aa3d

11 years agoRevert "Update wikidata extensions to versions in 1.22wmf2"
Reedy [Mon, 29 Apr 2013 18:11:31 +0000 (18:11 +0000)]
Revert "Update wikidata extensions to versions in 1.22wmf2"

This reverts commit bac30003c96388b7545a621bda5074429812b8c5

Change-Id: Id561d227deab388bf733d79f16a54a7a358f356a

11 years agoUpdate wikidata extensions to versions in 1.22wmf2
Reedy [Mon, 29 Apr 2013 17:32:01 +0000 (18:32 +0100)]
Update wikidata extensions to versions in 1.22wmf2

Change-Id: Ibc067012b1031f0ffad579364018de5508aae3de

11 years agoCommit of various live hacks
Reedy [Tue, 10 Apr 2012 18:27:59 +0000 (18:27 +0000)]
Commit of various live hacks

Disable of MessageBlobStore clear

Reset $wgAutopromote (should be moved to a config change!!)

Disable setting of wgStyleSheetPath

Throttle page_touched

Add apc htcp packet numbers to SquidUpdate

Disable set names binary/utf8

Commment out searchindex table indexes

Was c532e81d583d3d0439fe76eea4d105d675461b56

Original revision Change-Id I42c4f859e55eb198f6c6841e582b3552aad7b31f
https://gerrit.wikimedia.org/r/#/c/7606

Change-Id: I5ec8dd53188e9e4128f99ceaff38ebf9dcf570bb

11 years agoCreating new WMF 1.22wmf3 branch
Reedy [Mon, 29 Apr 2013 15:44:47 +0000 (15:44 +0000)]
Creating new WMF 1.22wmf3 branch

11 years agoFactorise call to getSuggestedDurations() in SpecialBlock::getFormFields()
Alexandre Emsenhuber [Mon, 29 Apr 2013 13:48:57 +0000 (15:48 +0200)]
Factorise call to getSuggestedDurations() in SpecialBlock::getFormFields()

So that it is not needed to parse the message two times per request.

Change-Id: I07f48dc35f4904d043844c2a3370bc27cdd5fb45

11 years ago(bug 45535) Hook for changing language links.
daniel [Fri, 19 Apr 2013 11:19:06 +0000 (13:19 +0200)]
(bug 45535) Hook for changing language links.

This adds a new hook called LanguageLinks which is called
whenever a list of language links is returned to the user.
This gives extensions the option to manipulate the links
on the fly.

Note that this change only covers the language links used
in OutputPage and by ApiParse. Adapting ApiQueryLangLinks is
left as a follow-up task.

As explained on bugzilla, this is a precondition to
allowing Wikibase/Wikidata to update languagelinks without
forcing a (redundant) re-parse of the page content.

This change also introduces the notion of link flags that
can be used to associate flags with language links. This
will be integrated with ParserOutput and OutputPage in a
follow-up.

Change-Id: Iaec0faa131413a291fc8f77496e4f371addb3b99

11 years agoMerge "Clean-up to global overrides in NewParserTest"
jenkins-bot [Mon, 29 Apr 2013 12:31:17 +0000 (12:31 +0000)]
Merge "Clean-up to global overrides in NewParserTest"

11 years agoMerge "Add input checks for Language::sprintfDate()"
jenkins-bot [Mon, 29 Apr 2013 08:50:08 +0000 (08:50 +0000)]
Merge "Add input checks for Language::sprintfDate()"

11 years agoMerge "(bug 47483) update file metadata in importImages"
jenkins-bot [Mon, 29 Apr 2013 06:58:01 +0000 (06:58 +0000)]
Merge "(bug 47483) update file metadata in importImages"

11 years agoMerge "wfRandomString: Correct bias toward digits 1-7"
jenkins-bot [Mon, 29 Apr 2013 06:24:24 +0000 (06:24 +0000)]
Merge "wfRandomString: Correct bias toward digits 1-7"