lhc/web/wiklou.git
9 years agoMerge "Make it easier to subclass Content and ContentHandler subclasses"
jenkins-bot [Fri, 29 Aug 2014 17:58:04 +0000 (17:58 +0000)]
Merge "Make it easier to subclass Content and ContentHandler subclasses"

9 years agoMade findMissingFiles use preloadFileStat() on old versions too to speed it up
Aaron Schulz [Thu, 28 Aug 2014 21:58:29 +0000 (14:58 -0700)]
Made findMissingFiles use preloadFileStat() on old versions too to speed it up

Change-Id: I03133c146f5a4f07f27b26dd033d6c93b72aea04

9 years agoMerge "Make EditPage::tokenOK public for SemanticForms."
jenkins-bot [Fri, 29 Aug 2014 17:10:04 +0000 (17:10 +0000)]
Merge "Make EditPage::tokenOK public for SemanticForms."

9 years agoMake EditPage::tokenOK public for SemanticForms.
Brian Wolff [Fri, 29 Aug 2014 16:56:47 +0000 (13:56 -0300)]
Make EditPage::tokenOK public for SemanticForms.

This partially reverts a7fbdd6503ba981

Bug: 67522
Change-Id: Ia390975c3a46f1016567f1bcdabe3ec536bb6af6

9 years agoMerge "Add @since tags for initial Action.php methods"
jenkins-bot [Fri, 29 Aug 2014 17:02:03 +0000 (17:02 +0000)]
Merge "Add @since tags for initial Action.php methods"

9 years agomediawiki.action.view.redirect: Work around a IE 10+ HTML5 history API bug
Bartosz Dziewoński [Fri, 29 Aug 2014 15:45:48 +0000 (17:45 +0200)]
mediawiki.action.view.redirect: Work around a IE 10+ HTML5 history API bug

Internet Explorer 10 and 11 doesn't scroll the page to given fragment
when `history.replaceState` is used. Changing `location.hash` afterwards,
even though it's a no-op, results in the page scrolling properly.

Minimal broken test case:
  <style>div { height: 1000px; border: 1px solid blue; }</style>
  <script>history.replaceState( /*data=*/ history.state, /*title=*/ document.title, /*url=*/ '#second' );</script>
  <div id="start">Beginning of page</div>
  <div id="first">First section</div>
  <div id="second">Second section (should always scroll to here)</div>

JSFiddle test case:
* Works:        http://jsfiddle.net/rv9w9wr5/
* Doesn't work: http://jsfiddle.net/e6fy0mar/
* Works again:  http://jsfiddle.net/o8vc5grf/

It is also interesting to try visiting the test cases with a fragment
already in the URL. It seems that the history API in IE updates the
page's address, but doesn't update "fragment state" – the broken,
second testcase scrolls to #first in spite of displaying #second in
the address bar.

* http://fiddle.jshell.net/rv9w9wr5/show/light/#first
* http://fiddle.jshell.net/e6fy0mar/show/light/#first
* http://fiddle.jshell.net/o8vc5grf/show/light/#first

Bug: 70176
Change-Id: I19221a25a3167e94c2aa412bfdd8d0d8c57c5076

9 years agoAdd @since tags for initial Action.php methods
addshore [Fri, 29 Aug 2014 13:53:32 +0000 (14:53 +0100)]
Add @since tags for initial Action.php methods

These were introduced in r86001
Hash: 8779f4b55fe1753f762c8477f344f8c4267562ea

Change-Id: I1ae1d4f220d20961f77d2c913fd4f17233893c45

9 years agoAdd @todo note in OldChangesListTest
aude [Fri, 25 Jul 2014 16:40:47 +0000 (18:40 +0200)]
Add @todo note in OldChangesListTest

Change-Id: I7878689bcbd4c3742f3ab042c79d7bc8db07e04a

9 years agoAdd test case for recent changes flags in OldChangesList
aude [Fri, 25 Jul 2014 16:40:15 +0000 (18:40 +0200)]
Add test case for recent changes flags in OldChangesList

Change-Id: I011fcc684ddefda3ba86715e781f97b294240933

9 years agoAdd $logAction param for test recent changes helper
aude [Fri, 25 Jul 2014 16:39:07 +0000 (18:39 +0200)]
Add $logAction param for test recent changes helper

to allow testing with various types of log actions

Change-Id: Idc78c964a68e98239265aaaa9e7913d477a3298f

9 years agoMerge "Remove dead code for showing login form to logged-in users"
jenkins-bot [Thu, 28 Aug 2014 22:23:30 +0000 (22:23 +0000)]
Merge "Remove dead code for showing login form to logged-in users"

9 years agoMerge "Remove some references to skins/common/ in comments"
jenkins-bot [Thu, 28 Aug 2014 22:23:04 +0000 (22:23 +0000)]
Merge "Remove some references to skins/common/ in comments"

9 years agoMerge "Load password information when expiring"
jenkins-bot [Thu, 28 Aug 2014 22:16:25 +0000 (22:16 +0000)]
Merge "Load password information when expiring"

9 years agoMerge "Made findMissingFiles support scanning files changed in a time range"
jenkins-bot [Thu, 28 Aug 2014 22:15:08 +0000 (22:15 +0000)]
Merge "Made findMissingFiles support scanning files changed in a time range"

9 years agoMerge "Revert "Consolidate parts of WebStart.php and doMaintenance.php into Initializ...
jenkins-bot [Thu, 28 Aug 2014 22:12:09 +0000 (22:12 +0000)]
Merge "Revert "Consolidate parts of WebStart.php and doMaintenance.php into Initialize.php""

9 years agoRemove some references to skins/common/ in comments
Bartosz Dziewoński [Thu, 28 Aug 2014 17:47:04 +0000 (19:47 +0200)]
Remove some references to skins/common/ in comments

Change-Id: I57f3edff3de7ccf18155467e3cadf32b1b893d72

9 years agoRevert "Consolidate parts of WebStart.php and doMaintenance.php into Initialize.php"
Chad [Thu, 28 Aug 2014 22:05:14 +0000 (22:05 +0000)]
Revert "Consolidate parts of WebStart.php and doMaintenance.php into Initialize.php"

Good idea, but moves things about too much and will break things. Let's revisit and not break things.

This reverts commit 214931ed33124a36e01e105c41c7d7e4797bde82.

Change-Id: I6f5026b572105cd9e7d6de12a491c7ee45ac3dbc

9 years agoUpdate OOjs UI to v0.1.0-pre (43f379c884)
James D. Forrester [Thu, 28 Aug 2014 21:49:12 +0000 (14:49 -0700)]
Update OOjs UI to v0.1.0-pre (43f379c884)

New changes:
0473209 Standardize less imports and image rule generation
4ead033 Localisation updates from https://translatewiki.net.
596d4e9 Tweak behaviour to match description in demos
8846b27 Fix typo in documentation: "nodes" (pl.) goes wo. article
611703c Fix label text in RTL demo listing containing parentheses
93c4b43 Divide CSS properties between base styles and themes
6ede2d8 Reorganize theme system
3515f5a Build with clean CSS
a24c7af Make OO.ui.Window's $content a div again
ea0172d Followup 6ede2d8: fix popup font size
d72addb Fix remaining references to 'agora' not 'minerva'
f6468b8 build: Don't copy anything other than SVG and PNG files to /dist
43f379c build: Also whitelist GIF files in the copy task

Local changes:
The "Agora" OOUI theme has been renamed to "Minerva", so correct loader.
The RTL CSS files were here by mistake, and have been removed.

Change-Id: I76e47b0b53bc5652146dd24fc403591bcc54e18b

9 years agoMade findMissingFiles support scanning files changed in a time range
Aaron Schulz [Thu, 28 Aug 2014 20:48:30 +0000 (13:48 -0700)]
Made findMissingFiles support scanning files changed in a time range

Change-Id: Ic69249cc3646a04a885ca3b12ea426f1eb2cd171

9 years agoMerge "resourceloader: Don't register raw modules client-side"
jenkins-bot [Thu, 28 Aug 2014 20:38:00 +0000 (20:38 +0000)]
Merge "resourceloader: Don't register raw modules client-side"

9 years agoresourceloader: Don't register raw modules client-side
Kunal Mehta [Thu, 28 Aug 2014 20:16:03 +0000 (13:16 -0700)]
resourceloader: Don't register raw modules client-side

Prevents modules from depending on raw modules, like 'mediawiki' & 'jquery'.

To do that, those modules (as designated by raw=>true), aren't
registered in the module registry.

Change-Id: Iac37a236964dc40d6259988a0baaaa6331b54ec6

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 28 Aug 2014 20:01:51 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I7bf1aefb98b962cae3e52adc02a0e23ea4641ced

9 years agoMerge "TitleTest: fix minor todo about test naming"
jenkins-bot [Thu, 28 Aug 2014 18:52:32 +0000 (18:52 +0000)]
Merge "TitleTest: fix minor todo about test naming"

9 years agoTitleTest: fix minor todo about test naming
Chad Horohoe [Thu, 28 Aug 2014 18:38:18 +0000 (11:38 -0700)]
TitleTest: fix minor todo about test naming

Change-Id: I1aa29b859cb1dcf0ff3c30c23f5d4c6b412f72f9

9 years agoMerge "Fix font of mw-ui-button"
jenkins-bot [Thu, 28 Aug 2014 18:19:07 +0000 (18:19 +0000)]
Merge "Fix font of mw-ui-button"

9 years agoFix font of mw-ui-button
jdlrobson [Thu, 28 Aug 2014 18:10:30 +0000 (11:10 -0700)]
Fix font of mw-ui-button

Bug: 70072
Change-Id: I12bbdc7c84ce2cc99271c8ffd9dca24cb7d1faf9

9 years agoLoad password information when expiring
csteipp [Thu, 28 Aug 2014 18:04:57 +0000 (11:04 -0700)]
Load password information when expiring

Call loadPasswords when expiring the user's password, otherwise the
change is overwritten with the previous value.

This lets you do:
  $u = User::newFromName( 'User' );
  $u->expirePassword();
And the user will have to reset their password on the next login.

Change-Id: I47325dde1ce14280088efdc90ce7887b45e0dc6a

9 years agoMerge "Remove SpecialSearchNoResults and call SpecialSearchResults always"
jenkins-bot [Thu, 28 Aug 2014 17:36:07 +0000 (17:36 +0000)]
Merge "Remove SpecialSearchNoResults and call SpecialSearchResults always"

9 years agoMerge "es5-shim: Add polyfill for Object.create"
jenkins-bot [Thu, 28 Aug 2014 16:58:56 +0000 (16:58 +0000)]
Merge "es5-shim: Add polyfill for Object.create"

9 years agoMerge "Introduce mediawiki.skinning module for external link icons"
jenkins-bot [Thu, 28 Aug 2014 14:24:27 +0000 (14:24 +0000)]
Merge "Introduce mediawiki.skinning module for external link icons"

9 years agoMerge "Making missing old files not try to render a thumbnail"
jenkins-bot [Thu, 28 Aug 2014 07:43:26 +0000 (07:43 +0000)]
Merge "Making missing old files not try to render a thumbnail"

9 years agoMerge "Check for error before outputting srcset urls"
jenkins-bot [Thu, 28 Aug 2014 07:35:17 +0000 (07:35 +0000)]
Merge "Check for error before outputting srcset urls"

9 years agoMerge "Consolidate parts of WebStart.php and doMaintenance.php into Initialize.php"
jenkins-bot [Thu, 28 Aug 2014 01:46:35 +0000 (01:46 +0000)]
Merge "Consolidate parts of WebStart.php and doMaintenance.php into Initialize.php"

9 years agoMerge "Use addQuotes() as needed in MergeHistory pager"
jenkins-bot [Wed, 27 Aug 2014 23:59:34 +0000 (23:59 +0000)]
Merge "Use addQuotes() as needed in MergeHistory pager"

9 years agoUse addQuotes() as needed in MergeHistory pager
Aaron Schulz [Wed, 27 Aug 2014 23:49:34 +0000 (16:49 -0700)]
Use addQuotes() as needed in MergeHistory pager

Change-Id: Ibf15ff303cf9641a0ce3da855a88d8276fb21ff1

9 years agoMerge "Fixed UID comment"
jenkins-bot [Wed, 27 Aug 2014 23:31:48 +0000 (23:31 +0000)]
Merge "Fixed UID comment"

9 years agoRemove SpecialSearchNoResults and call SpecialSearchResults always
Chad Horohoe [Wed, 27 Aug 2014 23:17:02 +0000 (16:17 -0700)]
Remove SpecialSearchNoResults and call SpecialSearchResults always

The former hook is only used by one extension which uses the
same code path for both hooks meaning no fix is necessary. Makes
it possible for extensions to actually provide results when none
were found.

Change-Id: Ia4d56b2a1a7531529dbde8a011a33a4482c04932

9 years agoFixed UID comment
Aaron Schulz [Wed, 27 Aug 2014 23:19:11 +0000 (16:19 -0700)]
Fixed UID comment

Change-Id: I2e44bd69f4acafa032e0c4207749008409afcd53

9 years agoMerge "Revert "Remove useless $out parameter from SkinTemplate::prepareQuickTemplate()""
jenkins-bot [Wed, 27 Aug 2014 22:50:07 +0000 (22:50 +0000)]
Merge "Revert "Remove useless $out parameter from SkinTemplate::prepareQuickTemplate()""

9 years agoRevert "Remove useless $out parameter from SkinTemplate::prepareQuickTemplate()"
Bartosz Dziewoński [Wed, 27 Aug 2014 22:42:16 +0000 (22:42 +0000)]
Revert "Remove useless $out parameter from SkinTemplate::prepareQuickTemplate()"

This reverts commit 404939b9c272bd12a62bb47f7ca452368b7f20ca.

Lacked sufficient deprecation process (no notice, no one checked
existing skins), resulting in a fatal in at least one skin (BlueSky).

Change-Id: Id009f6ac05ebcb3cd1f739b1b46e810ddacf29af

9 years agoMerge "Indicate the actual version of HHVM in use"
jenkins-bot [Wed, 27 Aug 2014 22:42:12 +0000 (22:42 +0000)]
Merge "Indicate the actual version of HHVM in use"

9 years agoMerge "API: Organize classes"
jenkins-bot [Wed, 27 Aug 2014 21:25:24 +0000 (21:25 +0000)]
Merge "API: Organize classes"

9 years agoIntroduce mediawiki.skinning module for external link icons
Jack Phoenix [Mon, 30 Jun 2014 21:56:02 +0000 (00:56 +0300)]
Introduce mediawiki.skinning module for external link icons

This should facilitate the creation of third-party skins.

Previously third-party skin creators have had to either copy the relevant
lines from Monobook's main.css, which has led to unnecessary code
duplication and bitrot (to a degree), or no support for external link
icons at all.

This change set will hopefully make the main.css file of your average
custom skin about 86 lines shorter, as well as keep the external link code
and icons centralized for proper RTL support and whatnot (which is *not*
a given when it comes to custom, non-core skins!).

HTTPS' custom icon was dropped and HTTPS URLs are now given the standard
external link arrow icon. This is an intentional design decision.

New icons are Isarra's handiwork, kudos!

Bug: 63521
Change-Id: I8ecbc827f2b05aec79401ac4962fcc15387c8ad8

9 years agoMerge "mediawiki.debug: Fix crash in browsers without Function#bind"
jenkins-bot [Wed, 27 Aug 2014 21:00:02 +0000 (21:00 +0000)]
Merge "mediawiki.debug: Fix crash in browsers without Function#bind"

9 years agoAPI: Organize classes
Brad Jorsch [Wed, 27 Aug 2014 19:41:05 +0000 (15:41 -0400)]
API: Organize classes

* Group methods in ApiBase by function
* ApiBase::validateLimit and ApiBase::validateTimestamp are now
  protected; there are no callers in any extensions in Gerrit
* Group methods in ApiQueryBase by function
* Move ApiFormatFeedWrapper out of ApiFormatBase.php
* Deprecate some methods in ApiQueryBase that seem useless and are
  unused in core or any extensions in Gerrit

Change-Id: I32092f13906b6826d2137401724c21ccefa6f670

9 years agoAPI: Internal cleanup
Brad Jorsch [Wed, 27 Aug 2014 19:41:05 +0000 (15:41 -0400)]
API: Internal cleanup

* Separate client-visible and internal release notes, because there are
  a lot of both and will be more coming up
* Correct errors in release notes
* Add detail on token changes to release notes
* List deprecated API classes and methods in release notes
* Add missing @deprecated on ApiFormat* classes

Change-Id: I577f3c8b9182f1625470c8bc52d3bdfe5d623d81

9 years agoMerge "Add missing @return and @param to doc blocks"
jenkins-bot [Wed, 27 Aug 2014 20:05:33 +0000 (20:05 +0000)]
Merge "Add missing @return and @param to doc blocks"

9 years agoAdd missing @return and @param to doc blocks
umherirrender [Mon, 25 Aug 2014 16:50:35 +0000 (18:50 +0200)]
Add missing @return and @param to doc blocks

Change-Id: I9d99ba1968ed8f97624d957754c8847dfe1b41da

9 years agomediawiki.debug: Fix crash in browsers without Function#bind
Erik Bernhardson [Mon, 25 Aug 2014 23:59:29 +0000 (16:59 -0700)]
mediawiki.debug: Fix crash in browsers without Function#bind

PhantomJS has a partial ECMAScript 5 implementation but it does
not include Function.prototype.bind.  Detect that and error gracefully
instead of erroring out in the middle of a phantomjs qunit run.

Change-Id: Ic06e08490e8f297fda479c4adaf9b2d8735f63ad

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 27 Aug 2014 19:09:49 +0000 (21:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1655cbe475ee5f49cb7ee3e8fc16557c6498c8c0

9 years agoMerge "Fixed spacing"
jenkins-bot [Wed, 27 Aug 2014 18:43:05 +0000 (18:43 +0000)]
Merge "Fixed spacing"

9 years agoFixed spacing
umherirrender [Mon, 25 Aug 2014 17:16:36 +0000 (19:16 +0200)]
Fixed spacing

- Added space after reserved words: function, foreach, if
- Combined 'else if' into elseif
- Added braces to one-line statements
- Added spaces after comma, before parentheses

Change-Id: Ie5bbf680d6fbe0f0872dab2700c16b1394906a72

9 years agoQA: update to fix deprecated API token call
Cmcmahon [Wed, 27 Aug 2014 15:28:14 +0000 (08:28 -0700)]
QA: update to fix deprecated API token call

Change-Id: Ie62cbcd40556c54444fdf1825dbb3ddebea5afde

9 years agoMerge "Fix up php syntax that accidentally became part of a string literal"
jenkins-bot [Wed, 27 Aug 2014 14:21:50 +0000 (14:21 +0000)]
Merge "Fix up php syntax that accidentally became part of a string literal"

9 years agoMerge "The static declaration must come after the visibility declaration"
jenkins-bot [Wed, 27 Aug 2014 13:43:34 +0000 (13:43 +0000)]
Merge "The static declaration must come after the visibility declaration"

9 years agoFix up php syntax that accidentally became part of a string literal
Timo Tijhof [Wed, 27 Aug 2014 13:39:31 +0000 (15:39 +0200)]
Fix up php syntax that accidentally became part of a string literal

Follows-up d15f1cc5e1d6db78.

Previous output:
> 474 pages in the MediaWiki namespace ' .
>                       'override messages.
> 4 pages are equal to the default message ' .
>                       '(+ 0 talk pages).

Change-Id: I6104f716f7dc32d638a2f5a7c37c3a507efad7dd

9 years agoSpecialRunJobs: Use Config instead of global
Florian [Fri, 1 Aug 2014 13:55:16 +0000 (15:55 +0200)]
SpecialRunJobs: Use Config instead of global

Remove use of global and use Config object submitted as a new second
paremeter to SpecialRunJobs::getQuerySignature.

Bug: 69187
Change-Id: Idfd48e36275651c8ee1d926355fc32a7ba84883a

9 years agoMerge "Don't send rel=canonical to variant-neutral page"
jenkins-bot [Tue, 26 Aug 2014 21:45:39 +0000 (21:45 +0000)]
Merge "Don't send rel=canonical to variant-neutral page"

9 years agoDon't send rel=canonical to variant-neutral page
Tim Starling [Fri, 15 Aug 2014 08:08:46 +0000 (09:08 +0100)]
Don't send rel=canonical to variant-neutral page

This has been the subject of multiple complaints from Google, it
apparently prevents them from properly indexing the variant-specific
pages. Instead, send the variant-independent link as rel=alternate
hreflang=x-default, which is recommended by Google as the preferred way
of specifying "auto-redirecting homepages" in this help page:

https://support.google.com/webmasters/answer/189077?hl=en

Send rel=alternate links unconditionally, since that is also recommended
by that help page: "each language page must identify all language
versions, including itself".

Remove $wgCanonicalLanguageLinks since it would be rather pointless and
poorly named if it only controlled rel=alternate links.

Bug: 52429
Change-Id: Ic75717f6e4ac1f73aa600c2e1bdb9c60e607edb4

9 years agoThe static declaration must come after the visibility declaration
umherirrender [Mon, 25 Aug 2014 16:25:39 +0000 (18:25 +0200)]
The static declaration must come after the visibility declaration

Change-Id: I50b7f39d527f5590373192a684ec07949988ec23

9 years agoUse Config instead of globals in CategoryViewer.php
Alexandre Emsenhuber [Tue, 26 Aug 2014 21:02:16 +0000 (23:02 +0200)]
Use Config instead of globals in CategoryViewer.php

Change-Id: If33619694f1cf298b356a1761e454e274fe6aa5c

9 years agoMerge "Add a few PHPUnit tests for HTMLAutoCompleteSelectField"
jenkins-bot [Tue, 26 Aug 2014 20:08:45 +0000 (20:08 +0000)]
Merge "Add a few PHPUnit tests for HTMLAutoCompleteSelectField"

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 26 Aug 2014 19:57:41 +0000 (19:57 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Add a test for mixed /*@noflip*/ and /*@embed*/ CSS annotations"
jenkins-bot [Tue, 26 Aug 2014 19:55:05 +0000 (19:55 +0000)]
Merge "Add a test for mixed /*@noflip*/ and /*@embed*/ CSS annotations"

9 years agoAdd a few PHPUnit tests for HTMLAutoCompleteSelectField
Ori Livneh [Tue, 26 Aug 2014 19:31:26 +0000 (12:31 -0700)]
Add a few PHPUnit tests for HTMLAutoCompleteSelectField

They're nothing especially sophisticated or exhaustive, but why not.

Change-Id: If89e8328080aa97e27fcc32f3bd4d777692f2fd1

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 26 Aug 2014 19:31:36 +0000 (21:31 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5af2f6d356f24a0a9a37f0f6b98d2c0870216a7b

9 years agoAdd HTMLAutoCompleteSelectField
Brad Jorsch [Fri, 27 Jun 2014 20:16:59 +0000 (16:16 -0400)]
Add HTMLAutoCompleteSelectField

This is much like the one OAuth has in
Special:OAuthConsumerRegistration/propose, except it stores the
autocompletion options in a data property rather than a global and uses
jquery.suggestions rather than jquery.ui.autocomplete.

Change-Id: I42473cea75f3706cc0125167f9191275ca6cb3b0

9 years agoMerge "API: Overhaul token handling"
jenkins-bot [Tue, 26 Aug 2014 19:09:21 +0000 (19:09 +0000)]
Merge "API: Overhaul token handling"

9 years agoAPI: Overhaul token handling
Brad Jorsch [Fri, 8 Aug 2014 16:56:07 +0000 (17:56 +0100)]
API: Overhaul token handling

The current token handling is a mess. This simplifies things greatly:
* *All* tokens are obtained from action=query&meta=tokens, rather than
  being spread over action=tokens, action=query&prop=info,
  action=query&prop=revisions, action=query&prop=recentchanges, and
  action=query&prop=users. All these old methods are deprecated.
* Similarly, there is only one hook to register new token types. All old
  hooks are deprecated.
* All tokens are cacheable.
* Most token types are dropped in favor of a 'csrf' token. They already
  were returning the same token anyway.
* All token-using modules will document the required token type in a
  standard manner in action=help and are documented in machine-readable
  fashion in action=paraminfo.

Note this will require updates to all extensions using tokens.

Change-Id: I2793a3f2dd64a4bebb0b4d065e09af1e9f63fb89

9 years agoSupport nesting of expressions in parameters of explicit plural forms
Santhosh Thottingal [Tue, 26 Aug 2014 04:09:17 +0000 (09:39 +0530)]
Support nesting of expressions in parameters of explicit plural forms

Bug: 69993
Change-Id: I15c167f245ba0842fc77fb4e03e380c40784ee1b

9 years agoes5-shim: Add polyfill for Object.create
Timo Tijhof [Mon, 28 Jul 2014 19:17:21 +0000 (20:17 +0100)]
es5-shim: Add polyfill for Object.create

Follows-up fff9a814f2327eb. Per the OOjs readme, it requires:

> (..) parser compatibility with ES3 engines.
> To support ES3 engines, ensure an appropriate polyfill is
> loaded for these methods:
> * Array.isArray
> * Object.create (basic use only)
> * Object.keys
> * JSON.stringify

The es5-shim and oojs modules already provide JSON, and most
Array and Object methods. Except for Object.create because there
are a few features in it that can't be emulated, and hence
es5-shim refuses to ship the polyfill for it.

Bug: 67590
Change-Id: I4838d78f77a3a71f80e6750adb914213b5ca4df5

9 years agomw.toolbar: Don't mask the error of button.onClick being invalid
Timo Tijhof [Tue, 26 Aug 2014 16:41:26 +0000 (18:41 +0200)]
mw.toolbar: Don't mask the error of button.onClick being invalid

Follows-up 7359b97354b49faa4c1.

Minor clean up:
* Add missing line break.
* Add missing description for addButtons().

Change-Id: Ie33b900f1d116044e1aa2d31a23a2128786b7a49

9 years agoHandle multiple ownerDocuments for args in Preprocessor_DOM
Brad Jorsch [Tue, 26 Aug 2014 15:20:00 +0000 (11:20 -0400)]
Handle multiple ownerDocuments for args in Preprocessor_DOM

As long as Preprocessor_DOM::newPartNodeArray returns nodes with
different roots when called multiple times, PPFrame_DOM::newChild should
be prepared to receive such.

Bug: 70046
Change-Id: Ie048d8dbd3042f19d934ff0dd8d32b4c46f9f952

9 years agoMerge "Allow custom event handlers for the click event of toolbar buttons"
jenkins-bot [Tue, 26 Aug 2014 15:31:45 +0000 (15:31 +0000)]
Merge "Allow custom event handlers for the click event of toolbar buttons"

9 years agoMerge "Delete feed.css"
jenkins-bot [Tue, 26 Aug 2014 15:06:27 +0000 (15:06 +0000)]
Merge "Delete feed.css"

9 years agoDelete feed.css
Bartosz Dziewoński [Tue, 26 Aug 2014 14:50:16 +0000 (16:50 +0200)]
Delete feed.css

It was a stylesheet loaded with our RSS and Atom feeds, intended to make
them legible when shown in a regular browser. Browsers these days tend
to have their own UI for feeds (for example IE 11 and Firefox 31), and
these that don't pretty-print the XML, which means the stylesheet
provides very little added value.

Per discussion on I6268d663.

Bug: 69277
Change-Id: I2ce9650c01f8f245707f5e88ee46520c5e598ce4

9 years agoMerge "AjaxDispatcher: Use Config instead of globals"
jenkins-bot [Tue, 26 Aug 2014 14:56:27 +0000 (14:56 +0000)]
Merge "AjaxDispatcher: Use Config instead of globals"

9 years agoMerge "Improve GlobalVarConfigTest"
jenkins-bot [Tue, 26 Aug 2014 13:54:14 +0000 (13:54 +0000)]
Merge "Improve GlobalVarConfigTest"

9 years agophpcs: Pass ResourceLoader.php
Timo Tijhof [Mon, 25 Aug 2014 11:43:41 +0000 (13:43 +0200)]
phpcs: Pass ResourceLoader.php

There was only one warning left.

> 1184 | WARNING | Line exceeds 100 characters; contains 107 characters
>      |         | (Generic.Files.LineLength.TooLong)

Change-Id: I99c729e02dac6aaf13a05568fd04e7bb5ad7bcb5

9 years agoMerge "includes/htmlform/: Use Config instead of globals"
jenkins-bot [Tue, 26 Aug 2014 10:56:46 +0000 (10:56 +0000)]
Merge "includes/htmlform/: Use Config instead of globals"

9 years agoAjaxDispatcher: Use Config instead of globals
Kunal Mehta [Tue, 26 Aug 2014 02:14:41 +0000 (19:14 -0700)]
AjaxDispatcher: Use Config instead of globals

Also removed a usage of $wgUser, and converted
AjaxResponse to use Config.

Change-Id: Ia9a1e17da26908b81f7f9691445ff75db2fdefb1

9 years agoAdd "chemical" major MIME type to the image tables
rillke [Sun, 25 May 2014 11:23:09 +0000 (13:23 +0200)]
Add "chemical" major MIME type to the image tables

The American Chemical Society suggested a new major MIME type for files
containing chemical data in 1998: http://dx.doi.org/10.1021/ci9803233
This suggestion got widely adopted and is now a de-facto-standard despite
not registered with IANA.

Applying this patch will allow us to continue with extension MolHandler
and PDBHandler.
http://fab.wmflabs.org/T352

- Fixes bug 66412 by creating a logic that will prevent running unneeded
  updates.

Bug: 66412
Change-Id: Ic45dc1bce796a0406ed8a84e6274df1c4bda4967

9 years agoRemove dead code for showing login form to logged-in users
Bartosz Dziewoński [Mon, 25 Aug 2014 20:48:58 +0000 (22:48 +0200)]
Remove dead code for showing login form to logged-in users

Since d0439af8, trying to view the login form while logged-in just
redirects to the 'returnto' address (or the main page), so this code
is unreachable.

Change-Id: I9ab8ab83172063d8facc491042832513d27f876b

9 years agoAdd missing '()' to some release notes
umherirrender [Mon, 25 Aug 2014 17:35:36 +0000 (19:35 +0200)]
Add missing '()' to some release notes

All other remove of deprecated functions ends with (), so add the () to
the two missing one.

Change-Id: I72959fe64d31e5e61e8e6edc58b3370e8b569dd1

9 years agoMerge "startup: Blacklist Opera < 12"
jenkins-bot [Mon, 25 Aug 2014 17:32:12 +0000 (17:32 +0000)]
Merge "startup: Blacklist Opera < 12"

9 years agoMerge "Remove wrong @return from doc blocks"
jenkins-bot [Mon, 25 Aug 2014 17:21:45 +0000 (17:21 +0000)]
Merge "Remove wrong @return from doc blocks"

9 years agoNo space within the ?: operator
Bartosz Dziewoński [Mon, 25 Aug 2014 15:40:51 +0000 (17:40 +0200)]
No space within the ?: operator

This style is a lot more common in our code.

Change-Id: I7f2fb3716c24c4a95a4c6c4a732b0226c315f242

9 years agoRemove wrong @return from doc blocks
umherirrender [Sun, 24 Aug 2014 09:26:41 +0000 (11:26 +0200)]
Remove wrong @return from doc blocks

These functions actually does not return anything, so the @return is
wrong here. '@return void' is ignored.

Change-Id: I11495ee05b943c16c1c4715d617c8b50de22276c

9 years agostartup: Blacklist Opera < 12
Timo Tijhof [Sun, 24 Aug 2014 13:57:31 +0000 (15:57 +0200)]
startup: Blacklist Opera < 12

jQuery hasn't supported Opera < 12 for several releases now, and
our own support matrix and development practices also consider
Opera 11 and below being Grade C (there are known problems in
Opera 8 and 10, such as missing features and implementation bugs).

Update the blacklist to reflect Opera < 12 being Grade C.

https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix

Change-Id: Ia2764a49c5d1fad73bd4eb52748269407231700e

9 years agoMerge "MessageBlobStore: Use Config instead of globals"
jenkins-bot [Mon, 25 Aug 2014 11:44:59 +0000 (11:44 +0000)]
Merge "MessageBlobStore: Use Config instead of globals"

9 years agoMerge "Turn MessageBlobStore into a singleton instead of static functions"
jenkins-bot [Mon, 25 Aug 2014 11:39:09 +0000 (11:39 +0000)]
Merge "Turn MessageBlobStore into a singleton instead of static functions"

9 years agoMessageBlobStore: Use Config instead of globals
Kunal Mehta [Sat, 23 Aug 2014 07:58:07 +0000 (00:58 -0700)]
MessageBlobStore: Use Config instead of globals

Change-Id: I458cc74bac1bff8edab6ad537a3a999ede5706ed

9 years agoTurn MessageBlobStore into a singleton instead of static functions
Kunal Mehta [Sat, 23 Aug 2014 07:55:32 +0000 (00:55 -0700)]
Turn MessageBlobStore into a singleton instead of static functions

For easier testability and other things. There are no uses
of this class in any extensions in gerrit.

Change-Id: I606de4259239e128ed7e0477fc98b84c647430c4

9 years agoMerge "Add some @see to doc blocks"
jenkins-bot [Mon, 25 Aug 2014 09:51:15 +0000 (09:51 +0000)]
Merge "Add some @see to doc blocks"

9 years agoMerge "Do not return anything on __construct"
jenkins-bot [Mon, 25 Aug 2014 09:48:14 +0000 (09:48 +0000)]
Merge "Do not return anything on __construct"

9 years agoMerge "Add missing @return to function docs"
jenkins-bot [Mon, 25 Aug 2014 09:47:39 +0000 (09:47 +0000)]
Merge "Add missing @return to function docs"

9 years agoMerge "Remove double @return from User::isAllowedAny"
jenkins-bot [Mon, 25 Aug 2014 09:46:47 +0000 (09:46 +0000)]
Merge "Remove double @return from User::isAllowedAny"

9 years agoMerge "Remove useNew (no longer any effect) from qqq messages"
jenkins-bot [Mon, 25 Aug 2014 06:20:30 +0000 (06:20 +0000)]
Merge "Remove useNew (no longer any effect) from qqq messages"

9 years agoMerge "Deprecate $wgDeferredUpdateList"
jenkins-bot [Mon, 25 Aug 2014 05:25:07 +0000 (05:25 +0000)]
Merge "Deprecate $wgDeferredUpdateList"

9 years agoRemove useNew (no longer any effect) from qqq messages
Matthew Flaschen [Mon, 25 Aug 2014 04:00:35 +0000 (00:00 -0400)]
Remove useNew (no longer any effect) from qqq messages

Change-Id: I6b09efe28db2d61d55d1a79a801207f3e371777f