lhc/web/wiklou.git
9 years agotest: Clean up data providers that should be static
Timo Tijhof [Thu, 18 Sep 2014 01:28:26 +0000 (18:28 -0700)]
test: Clean up data providers that should be static

Follows-up b36d883.

By far most data providers are static (and PHPUnit expects them
to be static and calls them that way).

Most of these classes already had their data providers static
but additional commits sloppily introduced non-static ones.

* ResourceLoaderWikiModuleTest, 8968d8787f.
* TitleTest, 545f1d3a73.
  Odd unused method 'dataTestIsValidMoveOperation' was introduced
  in 550b878e63.
* GlobalVarConfigTest, a3e18c3670.

Change-Id: I5da99f7cd3da68c550ae507ffe1f725d31e7666f

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 18 Sep 2014 18:36:17 +0000 (20:36 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia4f690c6711ff3c3f20be8d0450cce148f242063

9 years agoMerge "checkbox.less: Use @borderRadius"
jenkins-bot [Thu, 18 Sep 2014 18:20:49 +0000 (18:20 +0000)]
Merge "checkbox.less: Use @borderRadius"

9 years agoMerge "mediawiki.ui: Add @borderRadius variable to be used for inputs and buttons"
jenkins-bot [Thu, 18 Sep 2014 18:20:44 +0000 (18:20 +0000)]
Merge "mediawiki.ui: Add @borderRadius variable to be used for inputs and buttons"

9 years agoMerge "mediawiki.util: Deprecate mw.util.updateTooltipAccessKeys"
jenkins-bot [Thu, 18 Sep 2014 18:18:05 +0000 (18:18 +0000)]
Merge "mediawiki.util: Deprecate mw.util.updateTooltipAccessKeys"

9 years agoMerge "inputs.less: Lower baseline"
jenkins-bot [Thu, 18 Sep 2014 18:13:09 +0000 (18:13 +0000)]
Merge "inputs.less: Lower baseline"

9 years agoMerge "Move EmailNotification watchlist handling into helper method"
jenkins-bot [Thu, 18 Sep 2014 18:08:24 +0000 (18:08 +0000)]
Merge "Move EmailNotification watchlist handling into helper method"

9 years agomediawiki.util: Deprecate mw.util.updateTooltipAccessKeys
Fomafix [Mon, 1 Sep 2014 05:29:23 +0000 (05:29 +0000)]
mediawiki.util: Deprecate mw.util.updateTooltipAccessKeys

Use $nodes.updateTooltipAccessKeys() instead of
mw.util.updateTooltipAccessKeys( $nodes )

mw.util.updateTooltipAccessKeys() with empty parameter
to update all nodes is only needed in mediawiki.page.ready.js.
Copy that code to mediawiki.page.ready.js.

Adapt wikibits.js

Change-Id: I300a23e614e5f91fe2f536d958e91a47f6203021

9 years agoMerge "Do not require iiurlwidth when getting thumbnails."
jenkins-bot [Thu, 18 Sep 2014 17:48:00 +0000 (17:48 +0000)]
Merge "Do not require iiurlwidth when getting thumbnails."

9 years agoMerge "Add duration field in query=imageinfo&iiprop=dimensions"
jenkins-bot [Thu, 18 Sep 2014 17:46:47 +0000 (17:46 +0000)]
Merge "Add duration field in query=imageinfo&iiprop=dimensions"

9 years agoMerge "Add release notes for recent Config-related changes"
jenkins-bot [Thu, 18 Sep 2014 17:45:50 +0000 (17:45 +0000)]
Merge "Add release notes for recent Config-related changes"

9 years agoAdd release notes for recent Config-related changes
Kunal Mehta [Thu, 18 Sep 2014 17:31:26 +0000 (10:31 -0700)]
Add release notes for recent Config-related changes

Change-Id: I84765a2462766e82ee0f139b855ba948654c1d7f

9 years agoSupport for enabling skins in the command-line installer
Bartosz Dziewoński [Sat, 13 Sep 2014 18:34:52 +0000 (20:34 +0200)]
Support for enabling skins in the command-line installer

Whoops, I kind of forgot that this exists. Follow-up to a957836f.

Bug: 70815
Change-Id: I6944fe1b1f7a8b77d32fafbca2349645320571f5

9 years agoinputs.less: Lower baseline
Prateek Saxena [Thu, 18 Sep 2014 17:14:51 +0000 (10:14 -0700)]
inputs.less: Lower baseline

Bug: 70917
Change-Id: I979886fe48a4c13e2ef088dc3ce48f3a9b15ba2a

9 years agocheckbox.less: Use @borderRadius
Prateek Saxena [Thu, 18 Sep 2014 16:29:11 +0000 (09:29 -0700)]
checkbox.less: Use @borderRadius

Bug: 70916
Change-Id: Ia9b23b78c409744d7b4a34ff88f4231a96e15dad

9 years agomediawiki.ui: Add @borderRadius variable to be used for inputs and buttons
Prateek Saxena [Thu, 18 Sep 2014 15:51:03 +0000 (08:51 -0700)]
mediawiki.ui: Add @borderRadius variable to be used for inputs and buttons

Bug: 70916
Change-Id: I2102033ae5faa16367ddd4cbb879fdc62b4ca0b0

9 years agoMerge "Fix Parsoid's span.reference styling to match PHP's output"
jenkins-bot [Thu, 18 Sep 2014 16:42:45 +0000 (16:42 +0000)]
Merge "Fix Parsoid's span.reference styling to match PHP's output"

9 years agoMerge "button.less: Set min-width to 80px"
jenkins-bot [Thu, 18 Sep 2014 16:40:04 +0000 (16:40 +0000)]
Merge "button.less: Set min-width to 80px"

9 years agoAdd duration field in query=imageinfo&iiprop=dimensions
Brian Wolff [Sun, 31 Aug 2014 19:57:53 +0000 (16:57 -0300)]
Add duration field in query=imageinfo&iiprop=dimensions

If the file has a duration (e.g. an audio or video file), include
it in the list of dimensions returned. Do not include anything
for still media (normal pictures).

This affects both query=imageinfo and TMH's query=videoinfo.

Bug: 55941
Change-Id: If172a1cbaca08bff2eb709f6c829985b28b0200d

9 years agoDo not require iiurlwidth when getting thumbnails.
Brian Wolff [Thu, 19 Jun 2014 23:19:35 +0000 (20:19 -0300)]
Do not require iiurlwidth when getting thumbnails.

Some file types might not have a specific width/height. As an
example, TimedMediaHandler can specify thumbnails that are
"mid" sized instead of specific width. The requirement for
iiurlwidth was breaking some edge cases with ForeignAPIRepo
and TimedMediaHandler (Specificly with ?embedplayer=yes).

Do not require a width, but also verify that thumbnail parameters
are ok by running through normaliseParams (Formats that require
a width make this function return false if none is specified).

Change-Id: I8bb4c26db56c814ddfbd3e53ca98d05378c2a0bd

9 years agoMerge "Use qqx language for OldChangesListTest"
jenkins-bot [Thu, 18 Sep 2014 16:07:28 +0000 (16:07 +0000)]
Merge "Use qqx language for OldChangesListTest"

9 years agoFix Parsoid's span.reference styling to match PHP's output
Subramanya Sastry [Thu, 18 Sep 2014 16:05:26 +0000 (11:05 -0500)]
Fix Parsoid's span.reference styling to match PHP's output

* In Chrome (and other webkit-based browsers like phantomjs),
  the computed font-size for span.reference in Parsoid was 12px
  whereas in Firefox, it was 11px. The computed font-size for
  <sup> used for references for core mediawiki css is 11px in
  both Firefox and Chrome. I was able to pin this on the
  font-size: smaller vs font-size: 80% difference by inspecting
  in Chrome and Firefox (and also by dumping computed CSS in
  phantomjs).

* Verified via visual-diffing on ruthenium that this fix cleans
  up the diffs.

  http://parsoid-tests.wikimedia.org/visualdiff-item/pngs/enwiki/Medha_Patkar.diff.png

Change-Id: Ida67035cfb020696d2299ee26fe8d44717ffc421

9 years agobutton.less: Set min-width to 80px
Prateek Saxena [Thu, 18 Sep 2014 15:37:13 +0000 (08:37 -0700)]
button.less: Set min-width to 80px

Bug: 70972
Change-Id: I8e6beaf12d7cf1f1af20f4ff144eb0a7c2667a47

9 years agoMerge "mediawiki.action.view.redirectPage: Correct a CSS selector"
jenkins-bot [Thu, 18 Sep 2014 14:07:57 +0000 (14:07 +0000)]
Merge "mediawiki.action.view.redirectPage: Correct a CSS selector"

9 years agomediawiki.action.view.redirectPage: Correct a CSS selector
Bartosz Dziewoński [Thu, 18 Sep 2014 13:58:26 +0000 (15:58 +0200)]
mediawiki.action.view.redirectPage: Correct a CSS selector

Follow-up to 7dc4b586. .redirectTo was used for an early version of
that patch, I forgot to update it.

Change-Id: I935a761cb9e0c231afd098b5f1f3114240a9bf1f

9 years agoMove EmailNotification watchlist handling into helper method
Erik Bernhardson [Tue, 9 Sep 2014 21:10:01 +0000 (14:10 -0700)]
Move EmailNotification watchlist handling into helper method

Pulls one pure method with no state from EmailNotification into a
public static method.  This is done so that extensions (Flow, maybe
others) can replace the Email notifications with alternative ones (Echo)
while still updating the watchlist.

A better solution might be to extricate watchlist update from email
notifications, but this seems like a reasonable first step.

Bug: 66876
Change-Id: Iae213b87706c447b880244711e7747954423bb69

9 years agoMerge "Improve styleability of RecentChanges form"
jenkins-bot [Thu, 18 Sep 2014 13:19:53 +0000 (13:19 +0000)]
Merge "Improve styleability of RecentChanges form"

9 years agoMerge "Allow callback functions for creating SpecialPages."
jenkins-bot [Thu, 18 Sep 2014 13:19:28 +0000 (13:19 +0000)]
Merge "Allow callback functions for creating SpecialPages."

9 years agoMerge "Add MultiConfig for fallback logic"
jenkins-bot [Thu, 18 Sep 2014 13:13:39 +0000 (13:13 +0000)]
Merge "Add MultiConfig for fallback logic"

9 years agoUse qqx language for OldChangesListTest
aude [Mon, 1 Sep 2014 10:22:50 +0000 (12:22 +0200)]
Use qqx language for OldChangesListTest

Change-Id: Icda9d541ea0fc929ab8b9274bbe870eb6278d2ed

9 years agoAllow callback functions for creating SpecialPages.
daniel [Thu, 7 Aug 2014 15:40:55 +0000 (17:40 +0200)]
Allow callback functions for creating SpecialPages.

This enables factory functions to be registered for special
pages, as an alterative to giving a class name. This follows the
same rationale as Ieb85493a7765, which introduced factory functions
for API modules.

Change-Id: Ia2107dc5af7869187ba5dc02a1bef46d6801e138

9 years agoMerge "Change MediaWiki UI to use skinStyles so skins can customize"
jenkins-bot [Thu, 18 Sep 2014 09:46:27 +0000 (09:46 +0000)]
Merge "Change MediaWiki UI to use skinStyles so skins can customize"

9 years agoMerge "Enforce some type hinting in Linker class"
jenkins-bot [Thu, 18 Sep 2014 09:46:24 +0000 (09:46 +0000)]
Merge "Enforce some type hinting in Linker class"

9 years agoRecord redirect target in ParserOptions
Brad Jorsch [Fri, 2 May 2014 20:16:51 +0000 (16:16 -0400)]
Record redirect target in ParserOptions

Since Id44d566a, the text passed to the parser when parsing a
&redirect=no page no longer contains the #REDIRECT directive. For the
benefit of extensions that want to know the redirect target from various
parser hooks, record the target on the ParserOptions object associated
with the parse.

Bug: 62856
Change-Id: Icd1da9911a43eabacbd9e9a369a8326f67f270ff

9 years agoChange MediaWiki UI to use skinStyles so skins can customize
Matthew Flaschen [Thu, 18 Sep 2014 05:20:24 +0000 (01:20 -0400)]
Change MediaWiki UI to use skinStyles so skins can customize

Bug: 70351
Change-Id: I5d5725dba7e8e65b8fe3f5213b5e50d8dfeba755

9 years agoMerge "Revert buggy MediaWiki UI change and dependent changes"
Legoktm [Thu, 18 Sep 2014 03:01:28 +0000 (03:01 +0000)]
Merge "Revert buggy MediaWiki UI change and dependent changes"

9 years agoMerge "Don't break existing expiry time of "infinity" when modifying protection"
jenkins-bot [Thu, 18 Sep 2014 02:27:56 +0000 (02:27 +0000)]
Merge "Don't break existing expiry time of "infinity" when modifying protection"

9 years agoUpdate OOjs UI to v0.1.0-pre (ec785c2c64)
James D. Forrester [Thu, 18 Sep 2014 01:30:19 +0000 (18:30 -0700)]
Update OOjs UI to v0.1.0-pre (ec785c2c64)

New changes:
09e9d2c Fix documentation lies about dialog labels
ec785c2 Followup 6c862e8: position before AND after showing in TextInputMenuWidget

Change-Id: Ia1c9aa039503f0f18ac1da7748e7f87bfcdf7092

9 years agoDocument that MediaWiki also supports HHVM
Kunal Mehta [Wed, 17 Sep 2014 22:16:29 +0000 (15:16 -0700)]
Document that MediaWiki also supports HHVM

Change-Id: Ibbca89d3e31dcfba6c150f7fb930c8b9a6eac341

9 years agoMerge "Followup 1cf5a6e: use $wgResourceBasePath to refer to resources/assets, not...
jenkins-bot [Wed, 17 Sep 2014 23:33:55 +0000 (23:33 +0000)]
Merge "Followup 1cf5a6e: use $wgResourceBasePath to refer to resources/assets, not $wgScriptPath"

9 years agoFollowup 1cf5a6e: use $wgResourceBasePath to refer to resources/assets, not $wgScriptPath
Roan Kattouw [Wed, 17 Sep 2014 23:12:53 +0000 (16:12 -0700)]
Followup 1cf5a6e: use $wgResourceBasePath to refer to resources/assets, not $wgScriptPath

Bonus: actually make $wgResourceBasePath default to $wgScriptPath, rather than
special-casing it in ResourceLoaderFileModule.

Change-Id: I608435cef00d3e77a5bbdb0a0122d3e7e1a4eb78

9 years agoMerge "inputs.less: Use .mw-ui-input-inline for type="number""
jenkins-bot [Wed, 17 Sep 2014 23:10:19 +0000 (23:10 +0000)]
Merge "inputs.less: Use .mw-ui-input-inline for type="number""

9 years agoMerge "Move assets/ to resources/assets/"
jenkins-bot [Wed, 17 Sep 2014 23:02:35 +0000 (23:02 +0000)]
Merge "Move assets/ to resources/assets/"

9 years agoAdd MultiConfig for fallback logic
Kunal Mehta [Mon, 11 Aug 2014 12:17:37 +0000 (13:17 +0100)]
Add MultiConfig for fallback logic

This change adds MultiConfig and HashConfig classes,
but does not actually use them anywhere. In a future
change, we can convert DefaultSettings.php into
a HashConfig instance and use MultiConfig as the
'main' config instance.

Bug: 69418
Change-Id: I0ef2fbb86d5c27602d70240219ee08be31e2d09b

9 years agoRevert buggy MediaWiki UI change and dependent changes
Matthew Flaschen [Wed, 17 Sep 2014 20:13:27 +0000 (16:13 -0400)]
Revert buggy MediaWiki UI change and dependent changes

Reverts:

c0ec2d64c0ea79e840072627407aeb16131e0f88
** mw-ui-button: Revamp the LESS to be simpler, and improve cross-browser support
[This breaks buttons in IE6-8 which previously were styled correctly and without problems.
This commit lacked rationale]

Unfortunately, this also means reverting these two commits which were
based off this one:
b8a15fb6282cd329faf7fee359edcb530061b949
** Override vector anchor hover and visited styles on mw-ui-button
645ba9f1d229fa50572ec58d3932059281b84aac
** Remove mw-ui-button min sizing for inline mode

Change-Id: If5e55916795060fb3baadb75f997446527cbc27d

9 years agoMerge "PHPUnit: Add Database tags"
jenkins-bot [Wed, 17 Sep 2014 22:02:15 +0000 (22:02 +0000)]
Merge "PHPUnit:  Add Database tags"

9 years agoMerge "Update OOjs UI to v0.1.0-pre (24ac83a472)"
jenkins-bot [Wed, 17 Sep 2014 21:04:59 +0000 (21:04 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (24ac83a472)"

9 years agoMerge "Doc typo fixes"
jenkins-bot [Wed, 17 Sep 2014 20:43:08 +0000 (20:43 +0000)]
Merge "Doc typo fixes"

9 years agoinputs.less: Use .mw-ui-input-inline for type="number"
Prateek Saxena [Wed, 17 Sep 2014 18:45:27 +0000 (11:45 -0700)]
inputs.less: Use .mw-ui-input-inline for type="number"

Bug: 70404
Change-Id: If7a44e681392937c01886e035bc88b8add37b969

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 17 Sep 2014 20:24:33 +0000 (22:24 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I275d3d733d628994e348ad6357bb263e51146133

9 years agoMove assets/ to resources/assets/
Bartosz Dziewoński [Wed, 17 Sep 2014 19:39:03 +0000 (21:39 +0200)]
Move assets/ to resources/assets/

While it's "semantically" incorrect (these files are not
ResourceLoader resources), putting them in that subdirectory is a lot
less hassle than introducing a new toplevel directory.

Follow-up to 2b4b9a3f. Discussion that resulted in the toplevel
assets/ took place on I6268d663 (now abandoned).

Change-Id: Iedbfd802457fe35803899e3479540177760ec30b

9 years agoDoc typo fixes
Aaron Schulz [Wed, 17 Sep 2014 18:30:07 +0000 (11:30 -0700)]
Doc typo fixes

Change-Id: I41286754185dbd1d23f409dfb60eb0fe9d4aa5f5

9 years agoUpdate OOjs UI to v0.1.0-pre (24ac83a472)
James D. Forrester [Wed, 17 Sep 2014 18:23:53 +0000 (11:23 -0700)]
Update OOjs UI to v0.1.0-pre (24ac83a472)

New changes:
91a7fab build: Bump miscellaneous devDependencies to latest
18c32c5 Localisation updates from https://translatewiki.net.
283e2a1 When updating the ideal size while not clipping, set that size
6c862e8 Update width of TextInputMenuWidget before fitting labels, not after

Change-Id: If825e0ec0e294b2569c98b5340be436ba896eceb

9 years agoRemove mw-ui-button min sizing for inline mode
Shahyar [Wed, 17 Sep 2014 05:11:27 +0000 (01:11 -0400)]
Remove mw-ui-button min sizing for inline mode

Change-Id: I47ac148cbbdf8042677601cd6ef4e33a6627d648

9 years agoOverride vector anchor hover and visited styles on mw-ui-button
Shahyar [Wed, 17 Sep 2014 05:05:13 +0000 (01:05 -0400)]
Override vector anchor hover and visited styles on mw-ui-button

Also adds anchors to mw-ui-button living style guide

Change-Id: I1adb4004da9924a06956a10b89ccd02d188e5a11

9 years agoMerge "Array to string conversion in TransformationalImageHandler.php:167"
jenkins-bot [Wed, 17 Sep 2014 17:29:22 +0000 (17:29 +0000)]
Merge "Array to string conversion in TransformationalImageHandler.php:167"

9 years agoMerge "Undefined $scaler in TransformationalImageHandler::rotate()"
jenkins-bot [Wed, 17 Sep 2014 17:20:25 +0000 (17:20 +0000)]
Merge "Undefined $scaler in TransformationalImageHandler::rotate()"

9 years agoMerge "Add TitleExists hook"
jenkins-bot [Wed, 17 Sep 2014 17:11:29 +0000 (17:11 +0000)]
Merge "Add TitleExists hook"

9 years agoUndefined $scaler in TransformationalImageHandler::rotate()
Reedy [Wed, 17 Sep 2014 16:01:23 +0000 (17:01 +0100)]
Undefined $scaler in TransformationalImageHandler::rotate()

Bug: 70903
Change-Id: I25899d9a3435150c97bc94d80004fc19d38b3638

9 years agoArray to string conversion in TransformationalImageHandler.php:167
Reedy [Wed, 17 Sep 2014 15:55:42 +0000 (16:55 +0100)]
Array to string conversion in TransformationalImageHandler.php:167

Bug: 70902
Change-Id: Ia5e0949fc18275955dd1d320f8d538e3f2a7855b

9 years agoUpdate wfMessage doc
Brad Jorsch [Tue, 16 Sep 2014 18:04:16 +0000 (14:04 -0400)]
Update wfMessage doc

The Message class constructor has long supported passing an array of
keys for fallback messages, and wfMessage passes the $keys parameter
through unchanged.

And since this is already in use in core, we may as well document it.

Change-Id: I8f7f9ade87e855300650b2e7e31b9303daa96ac5

9 years agomw-ui-button: Revamp the LESS to be simpler, and improve cross-browser support
Shahyar [Wed, 30 Jul 2014 16:51:24 +0000 (12:51 -0400)]
mw-ui-button: Revamp the LESS to be simpler, and improve cross-browser support

Uses a slightly modified iteration of the button design
Drops mw-ui-primary

Change-Id: Ia6deef500ada2cf33c96ce70909592764df39901

9 years agoMerge "Replaced more trx DIY with startAtomic()"
jenkins-bot [Wed, 17 Sep 2014 01:51:20 +0000 (01:51 +0000)]
Merge "Replaced more trx DIY with startAtomic()"

9 years agoMerge "i18n: replace "login" by "log in""
jenkins-bot [Wed, 17 Sep 2014 01:50:20 +0000 (01:50 +0000)]
Merge "i18n: replace "login" by "log in""

9 years agoPHPUnit: Add Database tags
Jeff Janes [Fri, 15 Aug 2014 21:11:26 +0000 (14:11 -0700)]
PHPUnit:  Add Database tags

Several unit tests access the database, but did not declare
themselves in the Database @group.  This causes
"make databaseless" to fail needlessly.  Add the
missing tags.

tests/phpunit/includes/LinkerTest.php
tests/phpunit/includes/actions/ActionTest.php
tests/phpunit/includes/specials/ImageListPagerTest.php
tests/phpunit/includes/specials/SpecialMIMESearchTest.php
tests/phpunit/includes/title/MediaWikiPageLinkRendererTest.php

Other than ActionTest.php, these also are problematic in 1.23

Change-Id: I7c1c957e2194c13e48b7ba68d7529e5d89901875

9 years agoMerge "Correct button colours of preference page when $wgUseMediaWikiUIEverywhere...
jenkins-bot [Wed, 17 Sep 2014 01:12:36 +0000 (01:12 +0000)]
Merge "Correct button colours of preference page when $wgUseMediaWikiUIEverywhere is enabled"

9 years agoi18n: replace "login" by "log in"
shirayuki [Wed, 17 Sep 2014 00:53:42 +0000 (09:53 +0900)]
i18n: replace "login" by "log in"

Spotted by Fito
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Prefsnologintext2/es

Change-Id: I87d2d4d7f6d5863f91e1072a6a1bb6f201371b6d

9 years agoMerge "Made the DB profiler use startAtomic()"
jenkins-bot [Wed, 17 Sep 2014 00:28:18 +0000 (00:28 +0000)]
Merge "Made the DB profiler use startAtomic()"

9 years agoReplaced more trx DIY with startAtomic()
Aaron Schulz [Wed, 17 Sep 2014 00:26:10 +0000 (17:26 -0700)]
Replaced more trx DIY with startAtomic()

Change-Id: I76662aa438ed8aa294f8ec5973c9a51fd8b7cdbf

9 years agoMade the DB profiler use startAtomic()
Aaron Schulz [Wed, 17 Sep 2014 00:20:23 +0000 (17:20 -0700)]
Made the DB profiler use startAtomic()

Change-Id: I6eadd071c16781b320d0c8c518e6184a4c38d874

9 years agoRemoved redundant begin/commit calls
Aaron Schulz [Wed, 17 Sep 2014 00:18:21 +0000 (17:18 -0700)]
Removed redundant begin/commit calls

Change-Id: I33b496c5c57451eec24080a5b769020979fb51f0

9 years agoCorrect button colours of preference page when $wgUseMediaWikiUIEverywhere is enabled
jdlrobson [Mon, 1 Sep 2014 19:36:06 +0000 (20:36 +0100)]
Correct button colours of preference page when $wgUseMediaWikiUIEverywhere is enabled

* Apply mw-ui-destructive to Special:Preferences/Reset
  when $wgUseMediaWikiUIEverywhere is enabled

Introduces HTMLForm->setSubmitDestructive()

Bug: 65317
Change-Id: I1d6691dce3e7dab662bda9a718e16c5caee6c041

9 years agoMerge "Improve/rename Parser::replaceUnusualEscapes"
jenkins-bot [Tue, 16 Sep 2014 23:07:56 +0000 (23:07 +0000)]
Merge "Improve/rename Parser::replaceUnusualEscapes"

9 years agoMerge "Made SiteSQLStore use startAtomic() instead of DIY"
jenkins-bot [Tue, 16 Sep 2014 23:00:58 +0000 (23:00 +0000)]
Merge "Made SiteSQLStore use startAtomic() instead of DIY"

9 years agoImprove/rename Parser::replaceUnusualEscapes
Brad Jorsch [Sat, 21 Dec 2013 02:14:48 +0000 (21:14 -0500)]
Improve/rename Parser::replaceUnusualEscapes

The previous implementation would unescape '&', '=', '+', and '%'. The
first three will break the URL when unescaped in the query string, and
the last will break when unescaped anywhere.

The code is now changed to treat the path, query, and fragment parts of
the URL separately when unescaping. We also escape any unsafe characters
and ensure all percent-encodings use uppercase hexits.

And since the old name is no longer accurate,
Parser::replaceUnusualEscapes is deprecated in favor of
Parser::normalizeLinkUrl.

Bug: 57909
Change-Id: I77dc308d0d016c395ad737c08cf10a7711e25bbd

9 years agoMerge "MovePage::move(): Return a Status object"
jenkins-bot [Tue, 16 Sep 2014 22:58:47 +0000 (22:58 +0000)]
Merge "MovePage::move(): Return a Status object"

9 years agoMade SiteSQLStore use startAtomic() instead of DIY
Aaron Schulz [Fri, 12 Sep 2014 22:58:40 +0000 (15:58 -0700)]
Made SiteSQLStore use startAtomic() instead of DIY

Change-Id: I3f47675646d772b4718086e2715e243da3a16bab

9 years agoMerge "Start moving page move logic out of Title"
jenkins-bot [Tue, 16 Sep 2014 22:51:37 +0000 (22:51 +0000)]
Merge "Start moving page move logic out of Title"

9 years agoMake generating Parser test class names more robust
Brian Wolff [Wed, 5 Jun 2013 16:14:27 +0000 (13:14 -0300)]
Make generating Parser test class names more robust

This includes the extension name, and it also does much
more stringent validation. In the (now rather unlikely)
event of a duplicate name, it will append a number.

This is important, as it is very confusing when this bug strikes.
There exists extensions like CharRangeSpan which will trigger this bug.

Bug: 42174
Change-Id: Idf14b4cbdb8ec103340d48855e0361acf707b101

9 years agoMake GetLocalFileCopy pool counter call from tiff be generic
Brian Wolff [Sun, 27 Jul 2014 23:23:55 +0000 (20:23 -0300)]
Make GetLocalFileCopy pool counter call from tiff be generic

I was to make PagedTiffHandler subclass TransformationalImageHandler.
The biggest thing that's different is the pool counter call.
However, given that a file is just as expensive in terms of
network bandwidth regardless of its type, seems to make sense
to make this check generic.

Change-Id: I7e4a4769edaa4742803df407b9c719c54fb77de3

9 years agoMerge "Use 0x for hexadecimal prefix"
jenkins-bot [Tue, 16 Sep 2014 19:06:09 +0000 (19:06 +0000)]
Merge "Use 0x for hexadecimal prefix"

9 years agoUse 0x for hexadecimal prefix
csteipp [Tue, 16 Sep 2014 18:51:07 +0000 (11:51 -0700)]
Use 0x for hexadecimal prefix

0X is a legal hex prefix, but tools like pfff and my syntax highlighter
prefer the more common 0x.

Change-Id: I38bba068f9a97566b0df9fb0a2fe72d25519a21b

9 years agoMerge "Save pages content in the default format of their content type"
jenkins-bot [Tue, 16 Sep 2014 17:43:45 +0000 (17:43 +0000)]
Merge "Save pages content in the default format of their content type"

9 years agoMerge "When cloning TextContent, include model"
jenkins-bot [Tue, 16 Sep 2014 17:42:11 +0000 (17:42 +0000)]
Merge "When cloning TextContent, include model"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 16 Sep 2014 17:24:41 +0000 (19:24 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4885e74d38770b40d2b3eebfb66cb4a5a3eaf8d4

9 years agoResourceLoaderEditToolbarModule: Fix PHP Strict Standards warning
Bartosz Dziewoński [Tue, 16 Sep 2014 14:46:19 +0000 (16:46 +0200)]
ResourceLoaderEditToolbarModule: Fix PHP Strict Standards warning

PHP Strict Standards:  Declaration of ResourceLoaderEditToolbarModule::getLessCompiler()
should be compatible with ResourceLoaderFileModule::getLessCompiler(ResourceLoaderContext $context = NULL)
in …/includes/resourceloader/ResourceLoaderEditToolbarModule.php on line 0

Change-Id: I6b2de82028a81db7c65eb22f2535fbe4fa70cc91

9 years agoMerge "Using ULS in Special:PageLanguage"
jenkins-bot [Tue, 16 Sep 2014 13:16:19 +0000 (13:16 +0000)]
Merge "Using ULS in Special:PageLanguage"

9 years agoMerge "i18n: improve "tog-hide*" messages"
jenkins-bot [Tue, 16 Sep 2014 13:10:50 +0000 (13:10 +0000)]
Merge "i18n: improve "tog-hide*" messages"

9 years agoMerge "Revamp classic edit toolbar not to hardcode paths in HTML"
jenkins-bot [Tue, 16 Sep 2014 12:51:21 +0000 (12:51 +0000)]
Merge "Revamp classic edit toolbar not to hardcode paths in HTML"

9 years agoMerge "Split BitmapHandler into two classes."
jenkins-bot [Tue, 16 Sep 2014 08:27:49 +0000 (08:27 +0000)]
Merge "Split BitmapHandler into two classes."

9 years agoWhen cloning TextContent, include model
Yuri Astrakhan [Tue, 16 Sep 2014 06:58:36 +0000 (02:58 -0400)]
When cloning TextContent, include model

The model id should be preserved when cloning values
on save.

Change-Id: I397d36af30cf1401023b761e8c41f0dc83e76c12

9 years agoEnforce some type hinting in Linker class
withoutaname [Tue, 8 Jul 2014 08:00:11 +0000 (01:00 -0700)]
Enforce some type hinting in Linker class

Specifically for link(), linkText(), makeImageLink(),
and makeBrokenImageLinkObj() functions

Change-Id: I4c397de289ae51bc463b5ae7c2968703d1424368

9 years agoUpdated mediawiki dict
Yuri Astrakhan [Tue, 16 Sep 2014 01:03:22 +0000 (21:03 -0400)]
Updated mediawiki dict

Change-Id: Ia8eb4213fbc83be27de88a62d1c9c332f17b6579

9 years agoMerge "Improve hidden field validation"
jenkins-bot [Tue, 16 Sep 2014 00:10:13 +0000 (00:10 +0000)]
Merge "Improve hidden field validation"

9 years agoAdd TitleExists hook
Jackmcbarn [Mon, 15 Sep 2014 22:46:25 +0000 (18:46 -0400)]
Add TitleExists hook

Bug: 70495
Change-Id: I4f9a04d09ff8c4bdda678a591aea7f1153cb0a40

9 years agoUpdate OOjs UI to v0.1.0-pre (49b64bdba7)
Roan Kattouw [Mon, 15 Sep 2014 22:18:40 +0000 (15:18 -0700)]
Update OOjs UI to v0.1.0-pre (49b64bdba7)

New changes:
c82b429 Work around position: fixed; bug in Safari
9e1432e Split out isPending, pushPending, popPending, etc. into PendingElement

Change-Id: Ifd213123adfc9c96de2f16379c8ed3d706c210f8

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 15 Sep 2014 22:08:46 +0000 (00:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iaa9c20fe36b527c5ede84daa50abdda48a71d957

9 years agoMerge "Readd word-separator between edithelp link and newwindow hint"
jenkins-bot [Mon, 15 Sep 2014 21:00:40 +0000 (21:00 +0000)]
Merge "Readd word-separator between edithelp link and newwindow hint"

9 years agoMerge "Better false positive detection for Special:Wantedfiles"
jenkins-bot [Mon, 15 Sep 2014 19:47:04 +0000 (19:47 +0000)]
Merge "Better false positive detection for Special:Wantedfiles"

9 years agoMerge "Allow WantedQueryPage subclasses to override the existence check"
jenkins-bot [Mon, 15 Sep 2014 19:47:01 +0000 (19:47 +0000)]
Merge "Allow WantedQueryPage subclasses to override the existence check"