lhc/web/wiklou.git
9 years agoFix bad reference in method doc
Niklas Laxström [Mon, 4 Aug 2014 09:43:03 +0000 (11:43 +0200)]
Fix bad reference in method doc

Change-Id: Ic721a869cc25792f2fb3a66803efe48d36c4939c

9 years agoSECURITY: Copy prevent-clickjacking between OutputPage and ParserOutput
Brad Jorsch [Thu, 10 Jul 2014 19:16:29 +0000 (12:16 -0700)]
SECURITY: Copy prevent-clickjacking between OutputPage and ParserOutput

Special page transclusion returns an OutputPage, whose metadata is
copied into the ParserOutput, and then later back into an OutputPage.
The "preventClickjacking" flag should be part of that metadata.

Bug: 65778
Change-Id: I17d2720fb94bb383a92059e5adbf6c16ee3e9ef4

9 years agoFix for XSS issue in bug 66608
Gergő Tisza [Fri, 27 Jun 2014 00:15:03 +0000 (00:15 +0000)]
Fix for XSS issue in bug 66608

Generate the URL used for loading a new page in Javascript,
instead of relying on the URL in the link that has been clicked
(as that could have been crafted by an attacker).

Bug: 66608
Change-Id: I19e2bf3af017a37c35cbadce9a70194aac693f33

9 years agoSECURITY: Prepend jsonp callback with comment
csteipp [Thu, 17 Jul 2014 20:24:56 +0000 (13:24 -0700)]
SECURITY: Prepend jsonp callback with comment

Mitigate CVE-2014-4671 for unpatched flash players

Bug: 68187
Change-Id: I2f46e623c1f541dbbafb6e8333e0929055098b15

9 years agoMerge "Preserve 'srbackend' query parameter"
Chad [Wed, 30 Jul 2014 18:03:58 +0000 (18:03 +0000)]
Merge "Preserve 'srbackend' query parameter"

9 years agoRemove functions deprecated since 1.21 from EditPage.php
withoutaname [Tue, 22 Jul 2014 00:13:45 +0000 (17:13 -0700)]
Remove functions deprecated since 1.21 from EditPage.php

Specifically functions getContent(), getPreloadedText(), mergeChangesInto()
and setPreloadedText().

Change-Id: I5a258b4f060b1a3ae1218b8a8f424f2c9e8f146e

9 years agoMerge "Remove functions deprecated since 1.19 from EditPage.php"
jenkins-bot [Wed, 30 Jul 2014 15:59:26 +0000 (15:59 +0000)]
Merge "Remove functions deprecated since 1.19 from EditPage.php"

9 years agoMerge "Remove $wgTitle from LanguageConverter subclasses"
jenkins-bot [Wed, 30 Jul 2014 15:50:41 +0000 (15:50 +0000)]
Merge "Remove $wgTitle from LanguageConverter subclasses"

9 years agoMerge "Remove check for PHP version in install.php"
jenkins-bot [Wed, 30 Jul 2014 15:47:47 +0000 (15:47 +0000)]
Merge "Remove check for PHP version in install.php"

9 years agoMerge "Log errors when several callbacks give exceptions in onTransaction* methods"
jenkins-bot [Wed, 30 Jul 2014 15:33:30 +0000 (15:33 +0000)]
Merge "Log errors when several callbacks give exceptions in onTransaction* methods"

9 years agoMerge "Fixed MediaWiki dual getter/setters from fataling"
jenkins-bot [Wed, 30 Jul 2014 15:31:19 +0000 (15:31 +0000)]
Merge "Fixed MediaWiki dual getter/setters from fataling"

9 years agoMerge "Fixed use of wrong class constant"
jenkins-bot [Wed, 30 Jul 2014 15:31:13 +0000 (15:31 +0000)]
Merge "Fixed use of wrong class constant"

9 years agoMerge "Clean up user version constants"
Chad Horohoe [Wed, 30 Jul 2014 14:21:34 +0000 (14:21 +0000)]
Merge "Clean up user version constants"

9 years agoMerge "Fix deprecated hooks not having a non-deprecated alternative"
jenkins-bot [Wed, 30 Jul 2014 13:53:36 +0000 (13:53 +0000)]
Merge "Fix deprecated hooks not having a non-deprecated alternative"

9 years agoMerge "Check whether TYPE_COMBINED modules are allowed to be included in the page"
jenkins-bot [Wed, 30 Jul 2014 13:45:20 +0000 (13:45 +0000)]
Merge "Check whether TYPE_COMBINED modules are allowed to be included in the page"

9 years agoMerge "Added Html::radio, Html::check, and Html::label."
jenkins-bot [Wed, 30 Jul 2014 13:11:52 +0000 (13:11 +0000)]
Merge "Added Html::radio, Html::check, and Html::label."

9 years agoMerge "Just log exceptions instead of spamming them in JobRunner"
jenkins-bot [Wed, 30 Jul 2014 10:39:27 +0000 (10:39 +0000)]
Merge "Just log exceptions instead of spamming them in JobRunner"

9 years agoMerge "Apply mw-ui-input to captchas in registration form"
jenkins-bot [Wed, 30 Jul 2014 10:28:54 +0000 (10:28 +0000)]
Merge "Apply mw-ui-input to captchas in registration form"

9 years agoMerge "Revert "test: coverage for wfWikiID()""
jenkins-bot [Wed, 30 Jul 2014 08:59:08 +0000 (08:59 +0000)]
Merge "Revert "test: coverage for wfWikiID()""

9 years agoRevert "test: coverage for wfWikiID()"
Hashar [Wed, 30 Jul 2014 08:55:22 +0000 (08:55 +0000)]
Revert "test: coverage for wfWikiID()"

Cause unit tests to fail for some reason:

 1) WfWikiId::testReturnsProperDbName
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'known_db_name'
 +'known_db_name-unittest_'

 tests/phpunit/includes/GlobalFunctions/wfWikiIDTest.php:10
 tests/phpunit/MediaWikiTestCase.php:133
 tests/phpunit/MediaWikiPHPUnitCommand.php:42

Thus making the regression job to complain whenever a patch is merged:
https://integration.wikimedia.org/ci/job/mediawiki-core-regression-master/

This reverts commit 4f55b804f20960e039671a3dbf3f3eb4a5a4b81e.

Change-Id: Ib08e40742b74be88b72af79ec4ab6d427e3b6d14

9 years agoRemove return from MaintenanceFixup::outputChanneled
umherirrender [Mon, 21 Jul 2014 09:52:43 +0000 (11:52 +0200)]
Remove return from MaintenanceFixup::outputChanneled

Parent Maintenance::outputChanneled also has no return value

Change-Id: Idae9d3e1ca70d9f0ed81b345eb4fef21294cea39

9 years agoApply mw-ui-input to captchas in registration form
jdlrobson [Wed, 30 Jul 2014 01:24:55 +0000 (18:24 -0700)]
Apply mw-ui-input to captchas in registration form

Change-Id: Ie8160985799eefc2b24315008b23c447d4497dd5

9 years agoCheck whether TYPE_COMBINED modules are allowed to be included in the page
Kunal Mehta [Thu, 24 Jul 2014 23:02:45 +0000 (16:02 -0700)]
Check whether TYPE_COMBINED modules are allowed to be included in the page

With the introduction of the OutputPageScriptsForBottomQueue hook,
modules loaded through it are TYPE_COMBINED, which
OutputPage::makeResourceLoaderLink was not checking on whether
or not it was safe to include them.

Change-Id: I33f39a5643b3d05db5a89e62fa6c86d437dea143

9 years agoMerge "checkTemporaryPassword should call loadPasswords() first"
jenkins-bot [Wed, 30 Jul 2014 01:17:49 +0000 (01:17 +0000)]
Merge "checkTemporaryPassword should call loadPasswords() first"

9 years agoMerge "Revert "Add OutputPageScriptsForBottomQueue hook""
jenkins-bot [Wed, 30 Jul 2014 00:36:40 +0000 (00:36 +0000)]
Merge "Revert "Add OutputPageScriptsForBottomQueue hook""

9 years agoMerge "Define fallback skin using $wgFallbackSkin instead of hardcoding Vector"
jenkins-bot [Wed, 30 Jul 2014 00:26:38 +0000 (00:26 +0000)]
Merge "Define fallback skin using $wgFallbackSkin instead of hardcoding Vector"

9 years agoRevert "Add OutputPageScriptsForBottomQueue hook"
Legoktm [Wed, 30 Jul 2014 00:16:57 +0000 (00:16 +0000)]
Revert "Add OutputPageScriptsForBottomQueue hook"

After some discussion with Roan, it turns out this
hook is unnecessary. The proper solution is to use
addModuleScripts/addModuleStyles instead of a
plain addModules.

This reverts commit e7361de181dcadbcc7c32de92b3498c9fb9d0193.

Bug: 68712
Change-Id: Iadbff5f7fbbc5a08d6336674b12315967f45591d

9 years agoMerge "Remove utilities from styleguide"
jenkins-bot [Tue, 29 Jul 2014 23:46:34 +0000 (23:46 +0000)]
Merge "Remove utilities from styleguide"

9 years agoJust log exceptions instead of spamming them in JobRunner
Aaron Schulz [Tue, 29 Jul 2014 22:55:28 +0000 (15:55 -0700)]
Just log exceptions instead of spamming them in JobRunner

* Even the CLI script already shows the error=X snippet.
  Logging the error should be enough, and avoids showing
  output when all we want is the JSON.

Change-Id: Iade412ea61cf427865d841ecab5498e4fcdb7e13

9 years agoRemove utilities from styleguide
jdlrobson [Tue, 29 Jul 2014 22:20:22 +0000 (15:20 -0700)]
Remove utilities from styleguide

Document them but don't include them. Styleguide is currently written
for elements so it is rather strange.

Change-Id: I4c8bd18430d737445c14ac828d50a0844c456ca4

9 years agoFixed MediaWiki dual getter/setters from fataling
Aaron Schulz [Tue, 29 Jul 2014 22:31:58 +0000 (15:31 -0700)]
Fixed MediaWiki dual getter/setters from fataling

Change-Id: I1361bbc0494dcf29b009f4684e57b10b488d1755

9 years agoRevert "Update jquery.ui Vector theme to 1.9.2"
MarkTraceur [Tue, 29 Jul 2014 21:54:59 +0000 (21:54 +0000)]
Revert "Update jquery.ui Vector theme to 1.9.2"

This change messed up jquery.ui.button styling on Commons, so we're reverting.

This reverts commit 7bb0c9a01eb0266696a9c3989572ae3a5b67bfdd.

Change-Id: Ibef35ce9f5a642f89bf70ec891ba1425f678ec1e

10 years agoMerge "Revert "test: coverage for wfWikiID()""
Chad [Tue, 29 Jul 2014 21:23:17 +0000 (21:23 +0000)]
Merge "Revert "test: coverage for wfWikiID()""

10 years agoRevert "test: coverage for wfWikiID()"
Chad [Tue, 29 Jul 2014 21:23:03 +0000 (21:23 +0000)]
Revert "test: coverage for wfWikiID()"

Introduces broken test that doesn't pass regression or HHVM.

This reverts commit 4f55b804f20960e039671a3dbf3f3eb4a5a4b81e.

Change-Id: Ib82cc9b89e7392b752e9ef98134e90186e371247

10 years agoClean up user version constants
Chad Horohoe [Thu, 24 Jul 2014 00:26:27 +0000 (17:26 -0700)]
Clean up user version constants

- Two global constants unused outside of this class so removed
- Shorten name since MW and USER are redundant since it's in a class
- Use class constant instead of global define consistently

Change-Id: I0e8b05372512de568a230a6e5026751aa37c4c4e

10 years agoMerge "Clean up search results if scrolled of the end"
jenkins-bot [Tue, 29 Jul 2014 20:34:10 +0000 (20:34 +0000)]
Merge "Clean up search results if scrolled of the end"

10 years agocheckTemporaryPassword should call loadPasswords() first
Brian Wolff [Tue, 29 Jul 2014 20:21:10 +0000 (17:21 -0300)]
checkTemporaryPassword should call loadPasswords() first

Otherwise mNewpassword could be null.

Mlpearc reports on irc getting fatals about mNewpassword not
being an object. I couldn't reproduce, but loadPasswords() should
definitely be called here.

Change-Id: I6d1b74b79c87d1a1870971aafd1349255170123d

10 years agoMerge "Added explicit type-cast to hash_pbkdf2"
jenkins-bot [Tue, 29 Jul 2014 20:20:15 +0000 (20:20 +0000)]
Merge "Added explicit type-cast to hash_pbkdf2"

10 years agoMerge "Disallow top level domains in Cookie::validateCookieDomain()."
jenkins-bot [Tue, 29 Jul 2014 20:07:47 +0000 (20:07 +0000)]
Merge "Disallow top level domains in Cookie::validateCookieDomain()."

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 29 Jul 2014 20:05:43 +0000 (20:05 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoMerge "Unsetting the email address for a user when the email address is invalidated."
jenkins-bot [Tue, 29 Jul 2014 19:50:55 +0000 (19:50 +0000)]
Merge "Unsetting the email address for a user when the email address is invalidated."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 29 Jul 2014 19:42:40 +0000 (21:42 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id59d00bd9402da7fd03a34bd6d0ceb9bd2d00024

10 years agoAdded Html::radio, Html::check, and Html::label.
Tyler Anthony Romeo [Thu, 7 Mar 2013 19:03:44 +0000 (14:03 -0500)]
Added Html::radio, Html::check, and Html::label.

Migrated some convenience functions from the Xml
class to Html so they can be used. Only added
functions that acted as more than just a wrapper
for another function.

Change-Id: I4cc5876d4be6e04ec554444242cc049a3cff0f58

10 years agoMerge "Make upload_source_file and upload_source_url more specific"
jenkins-bot [Tue, 29 Jul 2014 19:22:46 +0000 (19:22 +0000)]
Merge "Make upload_source_file and upload_source_url more specific"

10 years agoRemove functions deprecated since 1.19 from EditPage.php
withoutaname [Tue, 22 Jul 2014 00:02:22 +0000 (17:02 -0700)]
Remove functions deprecated since 1.19 from EditPage.php

Specifically functions blockedPage(), noCreatePermission(), readOnlyPage()
and userNotLoggedInPage().

Change-Id: I3f8b16037d15a8b743dff975a8d7fe2b531a40d9

10 years agoMerge "Special:Search: Insert a difference between exist and non exist page"
jenkins-bot [Tue, 29 Jul 2014 18:29:29 +0000 (18:29 +0000)]
Merge "Special:Search: Insert a difference between exist and non exist page"

10 years agoMerge "Restore the number of rows shown on Special:Watchlist"
jenkins-bot [Tue, 29 Jul 2014 18:28:17 +0000 (18:28 +0000)]
Merge "Restore the number of rows shown on Special:Watchlist"

10 years agoSpecial:Search: Insert a difference between exist and non exist page
Florian [Tue, 29 Jul 2014 18:15:55 +0000 (20:15 +0200)]
Special:Search: Insert a difference between exist and non exist page

The css class of "page exist" or "create this page" should
be different when the page exists (instead of "createlink").

Change-Id: I6d4d9d88a561749ae158ca9d27e563c2c5f9b943

10 years agoRestore the number of rows shown on Special:Watchlist
umherirrender [Tue, 29 Jul 2014 17:02:16 +0000 (19:02 +0200)]
Restore the number of rows shown on Special:Watchlist

This reverts the result of Iada3a93762dd25fdaf35fb707304abc40bd4a5b1.
It used a param which was added to function doHeader in
I495d19258205d8713a19aa934a7657aecbe240d4.
It reused the old message to reduce translation interaction.

Bug: 62017
Change-Id: Ie722c509a6ad1346b1624abee778f4cbdc79d457

10 years agoClean up search results if scrolled of the end
Nik Everett [Tue, 29 Jul 2014 16:54:40 +0000 (12:54 -0400)]
Clean up search results if scrolled of the end

If the user ends up off the end of the search results then show them a
slightly more sane page:  no more showing results 50 - 20 of 20.

Bug: 68783
Change-Id: I29354e15873054278be18d74b2355b83b86f35f3

10 years agoMerge "Toolbar: Only show on WikiText pages"
Mwalker [Tue, 29 Jul 2014 16:52:51 +0000 (16:52 +0000)]
Merge "Toolbar: Only show on WikiText pages"

10 years agoMerge "Have SvgHandler create a directory for its RSVG input files"
jenkins-bot [Tue, 29 Jul 2014 16:49:43 +0000 (16:49 +0000)]
Merge "Have SvgHandler create a directory for its RSVG input files"

10 years agoMerge "Set "has value" flag correctly for result parameter"
jenkins-bot [Tue, 29 Jul 2014 16:43:13 +0000 (16:43 +0000)]
Merge "Set "has value" flag correctly for result parameter"

10 years agoMerge "Clarify comment in UploadBase"
jenkins-bot [Tue, 29 Jul 2014 16:16:54 +0000 (16:16 +0000)]
Merge "Clarify comment in UploadBase"

10 years agoAdded explicit type-cast to hash_pbkdf2
Tyler Romeo [Tue, 29 Jul 2014 15:55:34 +0000 (11:55 -0400)]
Added explicit type-cast to hash_pbkdf2

It seems HHVM does not like the use of
dynamic typing  in hash_pbkdf2() (also it's
kind of not the best idea in general), so
added explicit (int) casting to parameters.

Follows-up: I0a9c972931a0eff0cfb2619cef3ddffd03710285
Change-Id: I8adae3cc2cdf8029be59e2d62a3ab0fbfb73b7aa

10 years agoMerge "Documentation fixes for Password API-related changes"
jenkins-bot [Tue, 29 Jul 2014 15:25:12 +0000 (15:25 +0000)]
Merge "Documentation fixes for Password API-related changes"

10 years agoMerge "test: coverage for wfWikiID()"
jenkins-bot [Tue, 29 Jul 2014 15:11:06 +0000 (15:11 +0000)]
Merge "test: coverage for wfWikiID()"

10 years agoMerge "Documentation: Update $wgPasswordDefault and BcryptPassword"
jenkins-bot [Tue, 29 Jul 2014 15:11:04 +0000 (15:11 +0000)]
Merge "Documentation: Update $wgPasswordDefault and BcryptPassword"

10 years agoMerge "Move PasswordError under includes/password/ file"
jenkins-bot [Tue, 29 Jul 2014 13:49:50 +0000 (13:49 +0000)]
Merge "Move PasswordError under includes/password/ file"

10 years agotest: coverage for wfWikiID()
Antoine Musso [Tue, 29 Jul 2014 09:43:54 +0000 (11:43 +0200)]
test: coverage for wfWikiID()

Basic coverage test, note that $wgDBprefix is used as a suffix!

Bug: 68231
Change-Id: Ic454ce38672b1f18db2a7f2f46c50bcfc5ee83d0

10 years agoMerge "Add at least one RTL language to the TestSites mock collection"
jenkins-bot [Tue, 29 Jul 2014 09:44:00 +0000 (09:44 +0000)]
Merge "Add at least one RTL language to the TestSites mock collection"

10 years agoMove PasswordError under includes/password/ file
withoutaname [Tue, 29 Jul 2014 09:07:50 +0000 (02:07 -0700)]
Move PasswordError under includes/password/ file

Change-Id: I7256325492b2f6451223714efb8b3e07fca9ee3e

10 years agoDocumentation: Update $wgPasswordDefault and BcryptPassword
withoutaname [Tue, 29 Jul 2014 08:57:30 +0000 (01:57 -0700)]
Documentation: Update $wgPasswordDefault and BcryptPassword

Slight syntax code change for $wgPasswordDefault in DefaultSettings.php
and fixed reference to global in BcryptPassword.php.

Change-Id: I8d1d12c09ecd2f422f21a586e948f314e29fa605

10 years agoMerge "Add mw-ui-input to mediawiki ui"
jenkins-bot [Tue, 29 Jul 2014 06:59:33 +0000 (06:59 +0000)]
Merge "Add mw-ui-input to mediawiki ui"

10 years agoDocumentation fixes for Password API-related changes
Kunal Mehta [Tue, 29 Jul 2014 05:15:58 +0000 (22:15 -0700)]
Documentation fixes for Password API-related changes

A few @since 1.23 --> 1.24

Change-Id: I55d00ab9c3f9dae96ed804a22f19d713879663fa
Follows-Up: I0a9c972931a0eff0cfb2619cef3ddffd03710285

10 years agoClarify comment in UploadBase
Matthew Flaschen [Tue, 29 Jul 2014 02:48:42 +0000 (22:48 -0400)]
Clarify comment in UploadBase

Change-Id: Ied29298d312ca19ecfdd2196fafa89130321987c

10 years agoLog errors when several callbacks give exceptions in onTransaction* methods
Aaron Schulz [Tue, 29 Jul 2014 00:53:34 +0000 (17:53 -0700)]
Log errors when several callbacks give exceptions in onTransaction* methods

Change-Id: I055f46d98c255749dd64b30bfa2db190ddc73d6b

10 years agoSet "has value" flag correctly for result parameter
Aaron Schulz [Tue, 29 Jul 2014 00:38:56 +0000 (17:38 -0700)]
Set "has value" flag correctly for result parameter

Change-Id: I97eeef620ddfdda6f09abbfdf0388146d4d02e36

10 years agoMerge "Resources.php: Remove/deprecate 'skinStyles' references to 'minerva' skin"
jenkins-bot [Tue, 29 Jul 2014 00:27:27 +0000 (00:27 +0000)]
Merge "Resources.php: Remove/deprecate 'skinStyles' references to 'minerva' skin"

10 years agoMerge "Update OOjs UI to v0.1.0-pre (e9cf571db2)"
jenkins-bot [Mon, 28 Jul 2014 23:54:49 +0000 (23:54 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (e9cf571db2)"

10 years agoResources.php: Remove/deprecate 'skinStyles' references to 'minerva' skin
Bartosz Dziewoński [Tue, 22 Jul 2014 00:50:08 +0000 (02:50 +0200)]
Resources.php: Remove/deprecate 'skinStyles' references to 'minerva' skin

It doesn't even exist in core: it is part of the MobileFrontend
extension. The skin style overrides should be reapplied there using
$wgResourceModuleSkinStyles: done in I30c8ce13.

OOjs UI has some weird build process that currently requires this, though.
According to James, that will be fixed "in a couple of months".

Change-Id: If82556a41c0510a70796a09b3555d2c91a7abb52

10 years agoVector: Make better use of $wgResourceModuleSkinStyles
Bartosz Dziewoński [Tue, 22 Jul 2014 00:41:34 +0000 (02:41 +0200)]
Vector: Make better use of $wgResourceModuleSkinStyles

This gets rid of quite a lot of Vector from Resources.php and resources/.

* New $wgResourceModuleSkinStyles entries:

  * jquery.tipsy: Split off skins/Vector/skinStyles/jquery.tipsy.less
    from skins/Vector/components/common.less. It's just one rule, but
    let's do it for consistency anyway.

  * jquery.ui.*: Converted from Resources.php.
    Files renamed: resources/src/jquery.ui-themes/vector/**
    → skins/Vector/skinStyles/jquery.ui/**

  * mediawiki.notification: Still has the specificity hack, just renamed
    skins/Vector/components/notifications.less
    → skins/Vector/skinStyles/mediawiki.notification.less

* Updated $wgResourceModuleSkinStyles entries:

  * mediawiki.special: Renamed file for consistency,
    skins/Vector/special.less
    → skins/Vector/skinStyles/mediawiki.special.less

  * mediawiki.special.preferences: Renamed file for consistency,
    skins/Vector/special.preferences.less
    → skins/Vector/skinStyles/mediawiki.special.preferences.less

Change-Id: If248781e44300039eb52262d03b2f6722838dd12

10 years agoresourceloader: Allow skins to provide additional styles for any module
Bartosz Dziewoński [Thu, 26 Jun 2014 14:29:31 +0000 (16:29 +0200)]
resourceloader: Allow skins to provide additional styles for any module

The newly introduced $wgResourceModuleSkinStyles global enables skins to
provide additional stylesheets to existing ResourceLoader module.

This both makes it easier (or at all possible) to override default
styles and lowers the style footprint by making it possible not to
load styles unused on most pages.

----

Example:

Use the file 'foo-styles.css' for the 'mediawiki.foo' module when using
the MySkin skin:

  $wgResourceModuleSkinStyles['myskin'] = array(
    'mediawiki.foo' => 'foo-styles.css',
    'remoteSkinPath' => 'MySkin',
    'localBasePath' => __DIR__,
  );

For detailed documentation, see the doc comment in DefaultSettings.php.
For a practical usage example, see Vector.php.

----

Implementation notes:

* The values defined in $wgResourceModuleSkinStyles are embedded into
  the modules as late as possible (in ResourceLoader::register()).
* Only plain file modules are supported, setting module skin styles
  for other module types has no effect.
* ResourceLoader and ResourceLoaderFileModule now support loading
  files from arbitrary paths to make this possible, defined using
  ResourceLoaderFilePath objects.
  * This required some adjustments in seemingly unrelated places for
    code which didn't handle the paths fully correctly before.
* ResourceLoader and ResourceLoaderFileModule are now a bit more
  tightly coupled than before :(
* Included a tiny example change for the Vector skin, a lot more of
  similar cleanup is possible and planned for the future.
* Many of the non-essential mediawiki.* modules defined in
  Resources.php should be using `'skinStyles' => array( 'default' => … )`
  instead of `'styles' => …` to allow more customizations, this is
  also planned for the future after auditing which ones would actually
  benefit from this.

Change-Id: Ica4ff9696b490e35f60288d7ce1295766c427e87

10 years agoMake upload_source_file and upload_source_url more specific
Brian Wolff [Mon, 28 Jul 2014 22:32:38 +0000 (19:32 -0300)]
Make upload_source_file and upload_source_url more specific

See https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Upload_source_file/en

Change-Id: I46e3cc58203667f9c32487aada1e5a5177dd7b6f

10 years agoUpdate OOjs UI to v0.1.0-pre (e9cf571db2)
James D. Forrester [Mon, 28 Jul 2014 21:48:00 +0000 (14:48 -0700)]
Update OOjs UI to v0.1.0-pre (e9cf571db2)

New changes:
1e7fcaa build: Remove over-ride on jscs's disallowQuotedKeysInObjects and make pass
170f607 Use native style property names instead of jQuery's css map
eb9b38f Localisation updates from https://translatewiki.net.
b812471 Unified demo page
6b06deb SVG fixes
970e35b Localisation updates from https://translatewiki.net.
bbfdfa8 Localisation updates from https://translatewiki.net.
9e8f965 Fix copypasta in WindowManager documentation
7fe05d5 demos: Rename demos.html to index.html for convenience
55beb80 demos: Add example of menu item with a long label
694e81c Update oojs to v1.0.11

Change-Id: I908933a4fa025d48e2d868a83039f7636356911c

10 years agoMerge "jquery.textSelection: re-add iframe check due to regression"
jenkins-bot [Mon, 28 Jul 2014 21:30:35 +0000 (21:30 +0000)]
Merge "jquery.textSelection: re-add iframe check due to regression"

10 years agoAdded myself to CREDITS
Étienne Beaulé [Mon, 28 Jul 2014 20:54:59 +0000 (16:54 -0400)]
Added myself to CREDITS

Added myself to CREDITS, as suggested by Vogone.

Change-Id: Ia1759a753b06bbe672a4e9ecd7d9cb5606c37866

10 years agoMerge "Fixed hook documentation for removed hooks"
jenkins-bot [Mon, 28 Jul 2014 20:49:14 +0000 (20:49 +0000)]
Merge "Fixed hook documentation for removed hooks"

10 years agoMerge "SpecialEditWatchlist: Avoid empty namespace sections"
jenkins-bot [Mon, 28 Jul 2014 20:48:36 +0000 (20:48 +0000)]
Merge "SpecialEditWatchlist: Avoid empty namespace sections"

10 years agoFixed hook documentation for removed hooks
Tyler Romeo [Mon, 28 Jul 2014 20:43:25 +0000 (16:43 -0400)]
Fixed hook documentation for removed hooks

Removed hook definitions for UserComparePasswords
and UserCryptPassword, rather than keep them in
the file.

Bug: 28419
Change-Id: I7bfda155986d1407caef4e3890024c5b8a66fdcc
Follows-up: I0a9c972931a0eff0cfb2619cef3ddffd03710285

10 years agoMerge "Fixed calls to bogus methods in triggerJobs()"
Aaron Schulz [Mon, 28 Jul 2014 20:41:03 +0000 (20:41 +0000)]
Merge "Fixed calls to bogus methods in triggerJobs()"

10 years agoMerge "Edit warning should get value from editors"
jenkins-bot [Mon, 28 Jul 2014 20:30:08 +0000 (20:30 +0000)]
Merge "Edit warning should get value from editors"

10 years agoRemove File::getPropsFromPath() (deprecated since 1.19)
umherirrender [Mon, 28 Jul 2014 10:39:12 +0000 (12:39 +0200)]
Remove File::getPropsFromPath() (deprecated since 1.19)

Change-Id: I11b6c582b9ce60cba03e55d55afb7cd02d218049

10 years agoFixed calls to bogus methods in triggerJobs()
Aaron Schulz [Mon, 28 Jul 2014 20:17:31 +0000 (13:17 -0700)]
Fixed calls to bogus methods in triggerJobs()

* Updates some callers that were missed in 094d901b8

Change-Id: Ie425dfdc7da37331e51e3cd8c8f8d890bb5dd6de

10 years agoMerge "Added password hashing API"
jenkins-bot [Mon, 28 Jul 2014 20:12:58 +0000 (20:12 +0000)]
Merge "Added password hashing API"

10 years agoMerge "Remove File::sha1Base36() (deprecated since 1.19)"
jenkins-bot [Mon, 28 Jul 2014 20:06:18 +0000 (20:06 +0000)]
Merge "Remove File::sha1Base36() (deprecated since 1.19)"

10 years agoEdit warning should get value from editors
Derk-Jan Hartman [Thu, 27 Mar 2014 23:33:23 +0000 (00:33 +0100)]
Edit warning should get value from editors

Editwarning needs to make sure that any editor that uses something
other than wpTextbox1 to keep the value of the form, is able to write
this into the form before we are allowed to leave the page.

This is already supported by the textSelection api, so use that to
retrieve the value instead of plain .val()

Bug: 61117
Change-Id: I24d7096929c4eed36376ef9089d7f1b72a0b6682

10 years agojquery.textSelection: re-add iframe check due to regression
Derk-Jan Hartman [Mon, 28 Jul 2014 19:50:48 +0000 (21:50 +0200)]
jquery.textSelection: re-add iframe check due to regression

This is to fix a regression due to change Ibe011b2b of bug 29328.
The replacement jquery.textSelection of CodeEditor was no longer able
to be disable don the fly. This is because the code of textSelection
and WikiEditor is still too much intertwined.

I'm making a new patchset to strip them further apart.

Bug: 68556
Change-Id: I7c4c43ba2cde6f7c869e41ed4c5a51783cd32f82

10 years agoAdd mw-ui-input to mediawiki ui
jdlrobson [Thu, 24 Jul 2014 21:59:46 +0000 (14:59 -0700)]
Add mw-ui-input to mediawiki ui

Upstream component from Flow
Adds mw-ui-input component
Update existing (and undocumented) usage in core of mw-ui-input to
use Flow focus style

Updated usage of mw-ui-input in Special:Search and Special:Userlogin
Packaged in mediawiki.ui.inputs to allow developers to use inputs
separately to other mediawiki ui components.

Change-Id: Ida765b97e6574bdc8fbba88a08ec98ec12f3dc95

10 years agoMerge "Update jQuery Cookie to v1.3.1"
jenkins-bot [Mon, 28 Jul 2014 19:32:32 +0000 (19:32 +0000)]
Merge "Update jQuery Cookie to v1.3.1"

10 years agoUpdate jQuery Cookie to v1.3.1
paladox [Mon, 21 Jul 2014 08:31:09 +0000 (08:31 +0000)]
Update jQuery Cookie to v1.3.1

Source

* https://github.com/carhartl/jquery-cookie/blob/v1.3.1/jquery.cookie.js

Change log

* https://github.com/carhartl/jquery-cookie/blob/v1.3.1/CHANGELOG.md

Notable changes:

* Removed the "raw" option from $.cookie.
  This can now only be set globally via $.cookie.raw

* Bugfix: Properly handle RFC 2068 quoted cookie values.

* New: $.cookie() returns all available cookie.

We should eventually upgrade to v1.4.1, but that has a breaking change.
Namely, it drops support for $.cookie('key', null) which needs to be
replaced by $.removeCookie which didn't exist until v1.2.0.

Change-Id: Ic664dbe7b1be2c9dd67d0f50599c36fa2dab8449

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Jul 2014 19:07:05 +0000 (21:07 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I262a6adfd236603246fa68c162a18f3fcabb72c3

10 years agoFixed use of wrong class constant
Aaron Schulz [Mon, 28 Jul 2014 19:03:58 +0000 (12:03 -0700)]
Fixed use of wrong class constant

Change-Id: I6c7e49d16685315f9e84b61ba11d1a3b08730597

10 years agoMerge "Truncate block reason for whole multibyte characters"
jenkins-bot [Mon, 28 Jul 2014 17:45:50 +0000 (17:45 +0000)]
Merge "Truncate block reason for whole multibyte characters"

10 years agoMerge "Specifiy mixed doc param in FSFile"
jenkins-bot [Mon, 28 Jul 2014 17:40:51 +0000 (17:40 +0000)]
Merge "Specifiy mixed doc param in FSFile"

10 years agoTruncate block reason for whole multibyte characters
umherirrender [Mon, 28 Jul 2014 17:25:49 +0000 (19:25 +0200)]
Truncate block reason for whole multibyte characters

This applies to Special:BlockList, or to the block message shown to the
user, or API results. Log is not effected, because it already truncates
on its own.

Change-Id: I0a8bae5f43fd1604034d65e96c9461a9f83c0b0a

10 years agoMerge "Added support for result=json parameter to runJobs.php"
jenkins-bot [Mon, 28 Jul 2014 17:36:58 +0000 (17:36 +0000)]
Merge "Added support for result=json parameter to runJobs.php"

10 years agoAdded support for result=json parameter to runJobs.php
Aaron Schulz [Mon, 28 Jul 2014 17:30:18 +0000 (10:30 -0700)]
Added support for result=json parameter to runJobs.php

* This can let the caller get info about what was run, just like the web version

Change-Id: I49d7eccee52eb1dc161249fdc0546259ccf1f959

10 years agoRemoved use of cache in JobQueueFederated pop() method
Aaron Schulz [Sat, 26 Jul 2014 19:37:56 +0000 (12:37 -0700)]
Removed use of cache in JobQueueFederated pop() method

* This does not really buy anything for a number of reason and
  can cause bugs. For example, if the aggregator is notified due
  to undelayed jobs but this cache is not updated, then the runners
  will not see the jobs and will de-list aggregator entry.

bug: 68506
Change-Id: I1eacca108df59fff9c0fcc846aafaf1616cf5895

10 years agoSpecifiy mixed doc param in FSFile
umherirrender [Mon, 28 Jul 2014 17:04:51 +0000 (19:04 +0200)]
Specifiy mixed doc param in FSFile

Change-Id: I406e46da6ece2e2f9436783a0280afa7cfa9807c