lhc/web/wiklou.git
9 years agoUpdate OOjs UI to v0.1.0-pre (0e50d2e336)
Roan Kattouw [Wed, 6 Aug 2014 12:56:55 +0000 (13:56 +0100)]
Update OOjs UI to v0.1.0-pre (0e50d2e336)

New changes:
1283a33 Localisation updates from https://translatewiki.net.
0e50d2e Initialise dir property and use a getter

Change-Id: Ieb469d38e881cf7de284a987301626a2f945d2df

9 years agojquery.confirmable: New inline confirmation module
Bartosz Dziewoński [Mon, 28 Oct 2013 14:56:30 +0000 (15:56 +0100)]
jquery.confirmable: New inline confirmation module

$().confirmable() can be applied to any inline-block element. It will
cause it to expand into "Are you sure? [Yes] [No]" question and
buttons when clicked, where the buttons are clones of the original
element: [Yes] will carry out the default action (or a different one,
if specified), [No] will collapse the interface back.

Possible uses include:
* Confirmable "rollback" links
* Confirmable "unwatch" links on watchlists
* Confirmable "thank" links (Echo extension's ones)

Added a demo with possible uses on history and watchlist pages.
Included Hebrew messages courtesy of Moriel.

Change-Id: I2f6e0bd4f6f0a84e1a0d7193cde076738f3cdd25

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

Change-Id: I1e884e2a94ffb687ad82a41008b6ee8b00a8f039

9 years agoMerge "Add gender for upload log entries"
jenkins-bot [Tue, 5 Aug 2014 15:09:51 +0000 (15:09 +0000)]
Merge "Add gender for upload log entries"

9 years agoMerge "Update links for software homepages"
jenkins-bot [Tue, 5 Aug 2014 14:49:07 +0000 (14:49 +0000)]
Merge "Update links for software homepages"

9 years agoMerge "mediawiki.jqueryMsg.test.js: Additional test cases for external link"
jenkins-bot [Mon, 4 Aug 2014 23:15:21 +0000 (23:15 +0000)]
Merge "mediawiki.jqueryMsg.test.js: Additional test cases for external link"

9 years agoMerge "Preferences: Disable the 'skin' preference if there are no skins"
jenkins-bot [Mon, 4 Aug 2014 20:04:09 +0000 (20:04 +0000)]
Merge "Preferences: Disable the 'skin' preference if there are no skins"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 4 Aug 2014 19:39:15 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I02368e329c1c30add1269663e5c4b2a658dadbbb

9 years agoMerge "Add loadPasswords() calls to User password mutators"
jenkins-bot [Mon, 4 Aug 2014 18:26:50 +0000 (18:26 +0000)]
Merge "Add loadPasswords() calls to User password mutators"

9 years agoRemove unused globals
addshore [Mon, 4 Aug 2014 08:43:50 +0000 (09:43 +0100)]
Remove unused globals

These were missed in I4a87a7007f4adc2ab47be1207f1a04a5ccd31323

Change-Id: I1fc0435c1cd359a30cb1a9f5f07ebadd6e14bcf1

9 years agoTests for API action=revisiondelete
Kunal Mehta [Sun, 27 Oct 2013 04:53:39 +0000 (21:53 -0700)]
Tests for API action=revisiondelete

Change-Id: Ida8acb8a58fe3e871ac30727d90e22fff04f488d

9 years agoUpdate links for software homepages
Fomafix [Mon, 4 Aug 2014 15:53:56 +0000 (15:53 +0000)]
Update links for software homepages

Avoid redirects.

This is the current situation:
* MySQL: http://www.mysql.com/ redirects to https://www.mysql.com/
* MariaDB: http://mariadb.org/ redirects to https://mariadb.org/
* Percona: https://www.percona.com/ redirects to http://www.percona.com/
* PostgreSQL: https://www.postgresql.org/ redirects to http://www.postgresql.org/
* Oracle: https://www.oracle.com/ redirects to http://www.oracle.com/
* SQLite: http://www.sqlite.org/ redirects to https://www.sqlite.org/
* Microsoft: Supports http://www.microsoft.com/ and https://www.microsoft.com/
  and http://microsoft.com/ and https://microsoft.com/ redirects to https://www.microsoft.com/
* PHP: http://www.php.net/ redirects to http://php.net/
  and https://www.php.net/ redirects to https://php.net/

Change-Id: I3da95a22386cc5e479ac1365a6680bf54bdcd81a

9 years agoAdd gender for upload log entries
umherirrender [Mon, 4 Aug 2014 15:25:11 +0000 (17:25 +0200)]
Add gender for upload log entries

With Icd8662ecb9eb0f6c0ff9841bdbd5736d6dd0d015 the log for uploads was
migrated to the new system, but no formatter was set to use the new
system also on Special:Log.
There is no need for an extra formatter class, because at the moment
there is nothing extra to format.

Added the new messages and adjust them. Now upload logs supports gender.
The old messages are kept for IRC where there were already in use.
This also hide the params added with
Icd8662ecb9eb0f6c0ff9841bdbd5736d6dd0d015 on Special:Log, because there
are not needed for i18n.

Change-Id: Idf281898d8a5a023a0b9ce3bc90b3ca55c1a6376

9 years agoHTMLForm: Avoid usage of non-standard 'flags' parameter of String#replace
Brad Jorsch [Wed, 16 Jul 2014 21:04:20 +0000 (17:04 -0400)]
HTMLForm: Avoid usage of non-standard 'flags' parameter of String#replace

Chrome (and most other browser) don't support the non-standard 'flags'
argument to String#replace (implemented by Mozilla Firefox). Instead pass
a RegExp object with those flags.

Bug: 68050
Change-Id: Ia463002e708975eed1a5c3657f2e1a4d6b4e74de

9 years agoAdd loadPasswords() calls to User password mutators
Tyler Romeo [Mon, 4 Aug 2014 15:10:01 +0000 (11:10 -0400)]
Add loadPasswords() calls to User password mutators

In User::setPassword() and User::setNewpassword(), added
calls to loadPasswords() so that the passwords are not
overridden when they are eventually actually loaded.

Bug: 69102
Change-Id: I0b881986323051abed7d1af816eae9eafdbd6782

9 years agoMerge "Fixed spacing"
jenkins-bot [Mon, 4 Aug 2014 11:13:21 +0000 (11:13 +0000)]
Merge "Fixed spacing"

9 years agoMerge "Fixed docs"
jenkins-bot [Mon, 4 Aug 2014 11:11:41 +0000 (11:11 +0000)]
Merge "Fixed docs"

9 years agoMerge "SpecialMyLanguage: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:24:15 +0000 (10:24 +0000)]
Merge "SpecialMyLanguage: Use Config instead of globals"

9 years agoMerge "SpecialNewImages: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:24:06 +0000 (10:24 +0000)]
Merge "SpecialNewImages: Use Config instead of globals"

9 years agoMerge "SpecialPageLanguage: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:23:56 +0000 (10:23 +0000)]
Merge "SpecialPageLanguage: Use Config instead of globals"

9 years agoMerge "SpecialResetTokens: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:16:46 +0000 (10:16 +0000)]
Merge "SpecialResetTokens: Use Config instead of globals"

9 years agoFixed docs
umherirrender [Mon, 4 Aug 2014 10:00:15 +0000 (12:00 +0200)]
Fixed docs

- Use short form of boolean
- Use capital at begin of doc text

Change-Id: Ic5afacfa7298b1938d3b45ffd0cac5ce01f2f9db

9 years agoMerge "Fix bad reference in method doc"
jenkins-bot [Mon, 4 Aug 2014 09:55:32 +0000 (09:55 +0000)]
Merge "Fix bad reference in method doc"

9 years agoMerge "SpecialMovepage: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:55:26 +0000 (09:55 +0000)]
Merge "SpecialMovepage: Use Config instead of globals"

9 years agoFixed spacing
umherirrender [Mon, 4 Aug 2014 09:51:22 +0000 (11:51 +0200)]
Fixed spacing

- Removed spaces around array index
- Changed else if to elseif
- Added space after foreach/if/function
- include_once is not a function

Change-Id: I7745ae791d1b7e60cfebec6d268513a9cc071bdd

9 years agoMerge "SpecialNewPages: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:49:55 +0000 (09:49 +0000)]
Merge "SpecialNewPages: Use Config instead of globals"

9 years agoMerge "SpecialPasswordReset: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:47:28 +0000 (09:47 +0000)]
Merge "SpecialPasswordReset: Use Config instead of globals"

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 agoMerge "SpecialProtectedPages: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:39:09 +0000 (09:39 +0000)]
Merge "SpecialProtectedPages: Use Config instead of globals"

9 years agoImprove PHPUnit detection code
Ori Livneh [Mon, 4 Aug 2014 05:48:40 +0000 (22:48 -0700)]
Improve PHPUnit detection code

The code that attempts to load PHPUnit is simpler and clearer when rewritten as
a loop that iterates through a set of possible include paths for PHPUnit,
ordered from most to least desirable, and which tries each include path in turn
and then checks if the requisite classes are now loaded.

Also simplify check for PHP version: MediaWiki requires 5.3+, so might as well
assume it.

Change-Id: I9e25d69c1381cf3a87e7df2baf346bc6bb5aa052

9 years agoAdd getPassword/getTemporaryPassword accessors to User
Kunal Mehta [Mon, 4 Aug 2014 01:41:39 +0000 (18:41 -0700)]
Add getPassword/getTemporaryPassword accessors to User

In I0a9c972931a, User::load() no longer loaded the
mPassword and mNewpassword member variables, and
User::loadPasswords() is private. So this lets
things that need to access the Password objects directly.

Change-Id: Ib79ce01a47f90af681e376ce918eda559b4b94a6

9 years agoMerge "SpecialJavaScriptTest: Use Config instead of globals"
Kunal Mehta [Mon, 4 Aug 2014 00:39:38 +0000 (00:39 +0000)]
Merge "SpecialJavaScriptTest: Use Config instead of globals"

9 years agoSpecialResetTokens: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:37:38 +0000 (17:37 -0700)]
SpecialResetTokens: Use Config instead of globals

Change-Id: Iab521a681751e70c369ebf90c8ef4dab4a5d9d4a

9 years agoSpecialProtectedPages: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:28:34 +0000 (17:28 -0700)]
SpecialProtectedPages: Use Config instead of globals

Change-Id: Iecad936dca63dd9d2660d16a855ecd6a3336623e

9 years agoSpecialPasswordReset: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:27:07 +0000 (17:27 -0700)]
SpecialPasswordReset: Use Config instead of globals

Change-Id: I017fb8b636771902c3b50c5588e6ae3d5db70688

9 years agoSpecialPageLanguage: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:22:24 +0000 (17:22 -0700)]
SpecialPageLanguage: Use Config instead of globals

Change-Id: Icd3b1a7f32eeae7a433920de93337b29a5c4e222

9 years agoSpecialNewPages: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:20:30 +0000 (17:20 -0700)]
SpecialNewPages: Use Config instead of globals

Change-Id: I3a8aadc491ca3ece1bd4314c919741ff00a7cfc5

9 years agoSpecialNewImages: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:14:35 +0000 (17:14 -0700)]
SpecialNewImages: Use Config instead of globals

Change-Id: I713ebc5a45dd01e83d32cd68e52ffd557dc52aee

9 years agoSpecialMyLanguage: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:11:17 +0000 (17:11 -0700)]
SpecialMyLanguage: Use Config instead of globals

Change-Id: I30291d1e062ccaa7f3d05697c2b4ade3ac4ef11d

9 years agoSpecialMovepage: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:02:42 +0000 (17:02 -0700)]
SpecialMovepage: Use Config instead of globals

Change-Id: I19978393120f542d9b11b28870e452062777ee78

9 years agoMerge "SpecialLog: Use Config instead of globals"
Kunal Mehta [Sun, 3 Aug 2014 23:57:43 +0000 (23:57 +0000)]
Merge "SpecialLog: Use Config instead of globals"

9 years agoUse wfScript() instead of globals in a few places
Kunal Mehta [Sun, 3 Aug 2014 23:41:53 +0000 (16:41 -0700)]
Use wfScript() instead of globals in a few places

Change-Id: I8a23e7b647c082119799b5bc8cfd5ff76c712f85

9 years agoMerge "SpecialLockdb: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 23:39:53 +0000 (23:39 +0000)]
Merge "SpecialLockdb: Use Config instead of globals"

9 years agoSpecialLog: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:38:57 +0000 (16:38 -0700)]
SpecialLog: Use Config instead of globals

Change-Id: I79fca62fccf27618f1da94c2d0fb263daad5c875

9 years agoMerge "SpecialListUsers: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 23:36:07 +0000 (23:36 +0000)]
Merge "SpecialListUsers: Use Config instead of globals"

9 years agoSpecialLockdb: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:35:52 +0000 (16:35 -0700)]
SpecialLockdb: Use Config instead of globals

Change-Id: I70b1fc0a4c89628c504f75e5e19beff5169cd5cb

9 years agoSpecialListUsers: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:32:04 +0000 (16:32 -0700)]
SpecialListUsers: Use Config instead of globals

Change-Id: I3016d40bc36438b261b329d6db6bb38798079623

9 years agoMerge "Add tests for ConfigFactory::getDefaultInstance"
jenkins-bot [Sun, 3 Aug 2014 23:31:19 +0000 (23:31 +0000)]
Merge "Add tests for ConfigFactory::getDefaultInstance"

9 years agoAdd tests for ConfigFactory::getDefaultInstance
Kunal Mehta [Sun, 3 Aug 2014 21:05:50 +0000 (14:05 -0700)]
Add tests for ConfigFactory::getDefaultInstance

Change-Id: I6d356458dfe0a66f9af12ab58a6b1dcf47b6325a

9 years agoMerge "SpecialListFiles: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 23:09:15 +0000 (23:09 +0000)]
Merge "SpecialListFiles: Use Config instead of globals"

9 years agoSpecialListFiles: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:01:38 +0000 (16:01 -0700)]
SpecialListFiles: Use Config instead of globals

Change-Id: Id311c3009ce885b632897b6a0b85efc7ba445b9d

9 years agoSpecialLinkSearch: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 22:59:42 +0000 (15:59 -0700)]
SpecialLinkSearch: Use Config instead of globals

Change-Id: I387049cc524de0847d0f195e4435d1935c7a047f

9 years agoMerge "SpecialChangeEmail: Use Config instead of globals"
Kunal Mehta [Sun, 3 Aug 2014 22:54:26 +0000 (22:54 +0000)]
Merge "SpecialChangeEmail: Use Config instead of globals"

9 years agoSpecialJavaScriptTest: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 22:54:01 +0000 (15:54 -0700)]
SpecialJavaScriptTest: Use Config instead of globals

Change-Id: I7f32c7ff63dc1547e4bd76153ec449894dbd0184

9 years agoMerge "SpecialExport: Use Config instead of globals"
Addshore [Sun, 3 Aug 2014 22:49:57 +0000 (22:49 +0000)]
Merge "SpecialExport: Use Config instead of globals"

9 years agoMerge "SpecialChangePassword: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 22:49:46 +0000 (22:49 +0000)]
Merge "SpecialChangePassword: Use Config instead of globals"

9 years agoMerge "DeletedContributionsPage: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 22:47:15 +0000 (22:47 +0000)]
Merge "DeletedContributionsPage: Use Config instead of globals"

9 years agoMerge "SpecialExpandTemplates: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 22:46:40 +0000 (22:46 +0000)]
Merge "SpecialExpandTemplates: Use Config instead of globals"

9 years agoUse wfScript() instead of global in a few places
Kunal Mehta [Sun, 3 Aug 2014 21:25:52 +0000 (14:25 -0700)]
Use wfScript() instead of global in a few places

Change-Id: I3bb8eb52508e0f0ba40a889b400b0fc303311e29

9 years agoSpecialExport: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 22:10:25 +0000 (15:10 -0700)]
SpecialExport: Use Config instead of globals

Change-Id: I4a87a7007f4adc2ab47be1207f1a04a5ccd31323

9 years agoSpecialExpandTemplates: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 21:55:15 +0000 (14:55 -0700)]
SpecialExpandTemplates: Use Config instead of globals

Change-Id: I84b1008a11aa12708231b6f460715a5cdd4f4e01

9 years agoDeletedContributionsPage: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 21:45:53 +0000 (14:45 -0700)]
DeletedContributionsPage: Use Config instead of globals

Change-Id: I5d97deb6f36b5db3371f784c16159d8ee53ba8ee

9 years agoSpecialChangePassword: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 21:32:34 +0000 (14:32 -0700)]
SpecialChangePassword: Use Config instead of globals

Change-Id: Iabd07d226ea6da340dc7fc52a2370c287b769bbc

9 years agoSpecialChangeEmail: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 21:30:20 +0000 (14:30 -0700)]
SpecialChangeEmail: Use Config instead of globals

Change-Id: I8c2f6ec440839ebd0a48726c10867eec26946435

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 3 Aug 2014 19:52:58 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie088cb1ba258e63ae6b78dc6ff7d4c3eb8d59ff8

9 years agoVector: Remove dead @import in screen.less
Bartosz Dziewoński [Sun, 3 Aug 2014 19:14:57 +0000 (21:14 +0200)]
Vector: Remove dead @import in screen.less

This file doesn't exist anymore after If248781e, I forgot to remove
this line. In a better world this would be throwing an exception
instead of just doing nothing and being stupid.

Change-Id: If75f0f4c5c0a896a04ab0009665a212051120c37

9 years agoVector: Fix missing tab images on Special:Preferences
Bartosz Dziewoński [Sun, 3 Aug 2014 19:13:54 +0000 (21:13 +0200)]
Vector: Fix missing tab images on Special:Preferences

This fixes an issue in vector when you go to special preference the
images would not load. That is because you needed to add ../ to the
file path.

This follows up If248781e44300039eb52262d03b2f6722838dd12

Change-Id: Iee3303eb1288ad5fc9e5a39e4854774a6da375ff

9 years agoAllow use of phpunit.phar with MediaWiki's phpunit.php test entry point
addshore [Mon, 5 May 2014 16:40:54 +0000 (17:40 +0100)]
Allow use of phpunit.phar with MediaWiki's phpunit.php test entry point

MediaWiki tends to assume installation of phpunit via PEAR.
Distribution of phpunit via PEAR will eventually be discontinued,
in favor of distribution via PHAR or composer. PEAR installation
of phpunit 4.0 essentially distributes a phar.

https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.0.0

This patch allows phpunit.php to work with a phpunit.phar file,
as long as it's in the include path.  --with-phpunitdir can be used
to add a directory to the include path.

With composer install, no options are needed and it works.

Bug: 58881
Change-Id: Ibac9b36bbb9614d990c697a091947a64c8987d1d

9 years agoRemove MediaWikiPHPUnitCommand
addshore [Mon, 5 May 2014 16:10:07 +0000 (17:10 +0100)]
Remove MediaWikiPHPUnitCommand

All functionality has been moved to other places

Change-Id: I6b6b0ef846bc63108c4dff9e17098432fd9d1697

9 years agoMove debug-tests out of MediaWikiPHPUnitCommand
addshore [Mon, 5 May 2014 14:11:34 +0000 (15:11 +0100)]
Move debug-tests out of MediaWikiPHPUnitCommand

This also slightly refactors MediaWikiPHPUnitTestListener
so we can pass it into phpunit directly using the
--printer option

Change-Id: I6a19e3902130eeba6a0941f24a4f440b712058e5

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 2 Aug 2014 20:09:22 +0000 (22:09 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I627fb14816a7bdcaf98c6895ad162f9befd12d64

9 years agoPreferences: Disable the 'skin' preference if there are no skins
Bartosz Dziewoński [Sun, 27 Jul 2014 20:27:29 +0000 (22:27 +0200)]
Preferences: Disable the 'skin' preference if there are no skins

Having a radio field with no valid values makes MediaWiki sad and
causes exceptions.

Also make double-sure that the global default value is not invalid.
That causes exceptions too.

Change-Id: I90cc9e6f40303aa5771c265948a0be4a4ce2e42c

9 years agoDocumentation: put FormAction and FormlessAction into "Actions" group
withoutaname [Sun, 13 Jul 2014 07:15:44 +0000 (00:15 -0700)]
Documentation: put FormAction and FormlessAction into "Actions" group

Change-Id: Iac8a203426897446b8c9f3fbaaa9d608c419bce6

9 years agoMerge "Improve KSS doc for mw-ui-checkbox and input"
jenkins-bot [Fri, 1 Aug 2014 23:12:59 +0000 (23:12 +0000)]
Merge "Improve KSS doc for mw-ui-checkbox and input"

9 years agoImprove KSS doc for mw-ui-checkbox and input
S Page [Fri, 1 Aug 2014 22:53:46 +0000 (15:53 -0700)]
Improve KSS doc for mw-ui-checkbox and input

Improve English, end sentences with a full stop or period, show
placeholder styling in input examples.
Comments only.  `cd docs/kss && make kss && make kssopen` to check.

Change-Id: I61a7c120930b4ba76f9d0e69f36e4ef17db95ac4

9 years agoMerge "Separate select() parameter summary from detail"
jenkins-bot [Fri, 1 Aug 2014 22:49:36 +0000 (22:49 +0000)]
Merge "Separate select() parameter summary from detail"

9 years agoMerge "Docs: Add note that you might want Title::getLinkURL"
jenkins-bot [Fri, 1 Aug 2014 22:37:29 +0000 (22:37 +0000)]
Merge "Docs: Add note that you might want Title::getLinkURL"

9 years agoDocs: Add note that you might want Title::getLinkURL
Erik Bernhardson [Fri, 1 Aug 2014 20:58:51 +0000 (13:58 -0700)]
Docs: Add note that you might want Title::getLinkURL

While there are valid use cases of Title::getLocalURL, it is safer
to use Title::getLinkURL in most instances.  Additionally developers
won't accidentally their fragments that way.

Change-Id: I1bf567ba9c38103d39a883e8ea3a60f9f2082181

9 years agoAllow classes to be registered properly from installer
Chad Horohoe [Wed, 2 Jul 2014 22:40:49 +0000 (15:40 -0700)]
Allow classes to be registered properly from installer

Because otherwise extensions can cause the installer to explode when
they can't find their own classes at entry point.

I feel dirty.

Bug: 67440
Change-Id: I235fe58125fd49319963d949faffe024684755bd

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 1 Aug 2014 19:18:44 +0000 (21:18 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2965067cc40170a93f0a2368ce22aab5eef83295

9 years agoMerge "Enforce array type hinting in OutputPage.php"
jenkins-bot [Fri, 1 Aug 2014 19:08:16 +0000 (19:08 +0000)]
Merge "Enforce array type hinting in OutputPage.php"

9 years agoCheck for result size failure in ApiQuery
Brad Jorsch [Fri, 1 Aug 2014 16:23:09 +0000 (12:23 -0400)]
Check for result size failure in ApiQuery

If someone sets $wgAPIMaxResultSize crazily small and then queries a
large number of pages, it can cause ApiQuery to fail to populate the
'pages' node. Then submodules might add data to the node, leading to
errors from the XML formatter (or bogus output from other formatters).

While that particular failure mode is probably going away soon, it's
still good to catch the error situation.

Bug: 68989
Change-Id: If0b2eda421fd86dd7acc4fe48cec47741e214221

9 years agoFix messed up parameters in Recentchanges hook
Thiemo Mättig [Fri, 1 Aug 2014 15:13:18 +0000 (17:13 +0200)]
Fix messed up parameters in Recentchanges hook

Ouch. Sorry.

Bug: 68938
Bug: 68943

Change-Id: I3c02c2ff06a3e8ee02136c876276cb63de03bcc7

9 years agoFactorise $this->getTitle() call in Article::confirmDelete()
Alexandre Emsenhuber [Fri, 1 Aug 2014 14:31:50 +0000 (16:31 +0200)]
Factorise $this->getTitle() call in Article::confirmDelete()

Call it once instead of seven times.

Change-Id: I2f4d298a15046c4dc02afbf7582c90a1f17ea4cb

9 years agoVastly increase how long wfWaitForSlaves() can block in CLI mode
Aaron Schulz [Fri, 1 Aug 2014 06:11:34 +0000 (23:11 -0700)]
Vastly increase how long wfWaitForSlaves() can block in CLI mode

* All maintenance scripts pretty much assumed this behavior, but it
  was not actually the case. This can avoid some massive lag problems.

Change-Id: I5894409d6abade16afd8144f6689c2aff3fa7327

9 years agoAdd mw-ui-* context colors for any element, plus special handling for anchors
Shahyar [Wed, 30 Jul 2014 16:44:19 +0000 (12:44 -0400)]
Add mw-ui-* context colors for any element, plus special handling for anchors

Progressive, constructive, destructive can now be used independently of mw-ui-button.

Change-Id: I89d80927d603407678182592a1b12e2132de4141

9 years agoMerge "Remove global functions deprecated since 1.22"
jenkins-bot [Thu, 31 Jul 2014 22:04:14 +0000 (22:04 +0000)]
Merge "Remove global functions deprecated since 1.22"

9 years agoMerge "Remove deprecated $wgCompiledFiles configuration setting"
jenkins-bot [Thu, 31 Jul 2014 21:43:56 +0000 (21:43 +0000)]
Merge "Remove deprecated $wgCompiledFiles configuration setting"

9 years agoMerge "Add mw-ui-checkbox"
jenkins-bot [Thu, 31 Jul 2014 21:01:32 +0000 (21:01 +0000)]
Merge "Add mw-ui-checkbox"

9 years agoAdd mw-ui-checkbox
jdlrobson [Thu, 24 Jul 2014 20:01:35 +0000 (13:01 -0700)]
Add mw-ui-checkbox

Move checkbox styling from BetaFeatures extension to core.
Drop vendor prefixed border radius support (http://caniuse.com/border-radius)

Use adjacent selector which is supported IE 7 and greater
Use not selector to filter out IE < 8 which do not support :checked

Change-Id: I6a0db7c8ce33d242120f1cba9222db4e2154696c

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 31 Jul 2014 20:00:15 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id172b0ad35f4b0513db7ad8b787431052a4428f2

9 years agoRemove useless temporary variable in Setup.php
Alexandre Emsenhuber [Thu, 31 Jul 2014 19:17:42 +0000 (21:17 +0200)]
Remove useless temporary variable in Setup.php

Also makes the definition of $wgLocalFileRepo consistent.

Change-Id: I6fc7a6e938699ded90eca577dd005a77466cbeee

9 years agoMerge "Shorten ternary expressions in RawAction.php"
jenkins-bot [Thu, 31 Jul 2014 17:44:29 +0000 (17:44 +0000)]
Merge "Shorten ternary expressions in RawAction.php"

9 years agoMerge "Api request log: improve module retrieval"
jenkins-bot [Thu, 31 Jul 2014 17:32:35 +0000 (17:32 +0000)]
Merge "Api request log: improve module retrieval"

9 years agoMerge "Throw exception in importDump instead of dumping a random backtrace and erroring"
jenkins-bot [Thu, 31 Jul 2014 17:21:56 +0000 (17:21 +0000)]
Merge "Throw exception in importDump instead of dumping a random backtrace and erroring"

9 years agoAPI: Allow undeleting files
Brad Jorsch [Tue, 15 Jul 2014 16:52:20 +0000 (12:52 -0400)]
API: Allow undeleting files

Strange that action=undelete didn't support this already.

Bug: 40817
Change-Id: Ia864158370411e555f63f70588ebd305a756d6f5

9 years agoMerge "Use <pre> to format bash commands"
jenkins-bot [Thu, 31 Jul 2014 15:53:27 +0000 (15:53 +0000)]
Merge "Use <pre> to format bash commands"

9 years agolist=logevent userid is returned as string, should be integer
Reedy [Thu, 31 Jul 2014 14:24:58 +0000 (15:24 +0100)]
list=logevent userid is returned as string, should be integer

Bug: 68921
Change-Id: Ibdc771cfc3286f8f20f64a2817a2ef01d4b1f8ad

9 years agoPartially undo failed revert of "Update jquery.ui Vector theme to 1.9.2"
Timo Tijhof [Thu, 31 Jul 2014 11:21:32 +0000 (12:21 +0100)]
Partially undo failed revert of "Update jquery.ui Vector theme to 1.9.2"

Follows-up 36b8e0e10ff which claims to revert 7bb0c9a01e, but
really just made a gigantic mess of the place and managed to somehow
partially undo the jQuery UI upgrade to 1.9 (3cb2ccd87863abb8a) which
breaks in all kinds of interesting ways because the stylesheets
it added instead are from jQuery UI 1.8 and naturally incompatible.

This restores resources/lib/jquery.ui from the mediawiki-core
tree at 977b5ea0e090 (parent of 7bb0c9a01e).

Change-Id: Ie3bcd8560fe5012ed616fc341e036e8614b5208c

9 years agoRemove global functions deprecated since 1.22
withoutaname [Thu, 31 Jul 2014 07:23:56 +0000 (00:23 -0700)]
Remove global functions deprecated since 1.22

Specifically functions wfArrayLookup(), wfArrayMerge(),
wfDebugDieBacktrace() and wfTime() from GlobalFunctions.php.

Change-Id: I9339cb2d8da41953a0e2a051452298f480256ebc