lhc/web/wiklou.git
10 years agoAPI: allow disabling TOC in action=parse
Max Semenik [Tue, 17 Dec 2013 22:31:17 +0000 (02:31 +0400)]
API: allow disabling TOC in action=parse

Change-Id: If9652bbae97ce40c8695affeb28be6088949dfd2

10 years agojquery.suggestions: Remove any highlights when hiding suggestions
MatmaRex [Sat, 31 Aug 2013 17:39:19 +0000 (19:39 +0200)]
jquery.suggestions: Remove any highlights when hiding suggestions

Bug: 26350
Change-Id: I8385fe2a53f6d77f87613734ff297c3892764f3e

10 years agoMerge "mediawiki.searchSuggest: Unbreak browser blacklist"
jenkins-bot [Tue, 17 Dec 2013 21:09:50 +0000 (21:09 +0000)]
Merge "mediawiki.searchSuggest: Unbreak browser blacklist"

10 years agoMerge "Watch user page and user talk page by default"
jenkins-bot [Tue, 17 Dec 2013 21:08:26 +0000 (21:08 +0000)]
Merge "Watch user page and user talk page by default"

10 years agoMake #contentSub slightly darker
Bartosz Dziewoński [Fri, 18 Oct 2013 16:09:04 +0000 (18:09 +0200)]
Make #contentSub slightly darker

It's too light, not contrasting with the white background.

Bug: 54423
Change-Id: I58e2a028ce097315c82742a6fce91c18f94e5037

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 17 Dec 2013 19:23:05 +0000 (19:23 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I80558ee8b9933e7c6ee9a866f469da928ebec4bb

10 years agoMerge "Fix inconsistency in ArchivedFile::getUser"
jenkins-bot [Tue, 17 Dec 2013 18:39:08 +0000 (18:39 +0000)]
Merge "Fix inconsistency in ArchivedFile::getUser"

10 years agoMerge "Add one more missing directory to findHooks.php"
jenkins-bot [Tue, 17 Dec 2013 18:28:31 +0000 (18:28 +0000)]
Merge "Add one more missing directory to findHooks.php"

10 years agoMerge "Remove unused job ID parameter from jobs"
jenkins-bot [Tue, 17 Dec 2013 18:22:06 +0000 (18:22 +0000)]
Merge "Remove unused job ID parameter from jobs"

10 years agoMerge "Change message 'rcshowhideliu' to match its actual functionality"
jenkins-bot [Tue, 17 Dec 2013 14:56:11 +0000 (14:56 +0000)]
Merge "Change message 'rcshowhideliu' to match its actual functionality"

10 years agoRemove unused job ID parameter from jobs
Aaron Schulz [Tue, 17 Dec 2013 08:26:57 +0000 (00:26 -0800)]
Remove unused job ID parameter from jobs

Change-Id: I2bedd0ff311bff027d998f193d6cb799d70d2a93

10 years agoMerge "Removed deprecated job ID cruft"
Aaron Schulz [Tue, 17 Dec 2013 08:10:09 +0000 (08:10 +0000)]
Merge "Removed deprecated job ID cruft"

10 years agoMerge "Correct the plural forms for Manx (Gaelg)"
jenkins-bot [Tue, 17 Dec 2013 07:20:38 +0000 (07:20 +0000)]
Merge "Correct the plural forms for Manx (Gaelg)"

10 years agoRemoved deprecated job ID cruft
Aaron Schulz [Mon, 16 Dec 2013 06:31:07 +0000 (22:31 -0800)]
Removed deprecated job ID cruft

Change-Id: I1db3b9adeaaeb66821e9ff6a931f7905ce916b7f

10 years agoeval.php: update intro comment
Tim Starling [Tue, 17 Dec 2013 03:33:36 +0000 (14:33 +1100)]
eval.php: update intro comment

PHP has had an interactive mode since 5.1.0.

Change-Id: I5ecc35ca6c4911b4fbc8eb17866997d931c5a97d

10 years agoupdate.php: Fix PHP4 syntax error
Kevin Israel [Tue, 17 Dec 2013 01:13:48 +0000 (20:13 -0500)]
update.php: Fix PHP4 syntax error

PHP4 does not support method chaining, so I broke the line into
two so we can continue to show a more helpful error message in
that version of PHP, which reached EOL just about six years ago.

Also changed "Done. The job took [...]" to "Done in [...]"; "job"
has a specific meaning in MediaWiki that is irrelevant here.

Follows-up fae8daa658c1.

Change-Id: If2480aa24f18d36f33462d874b2a1dd13abb641a

10 years agoChange message 'rcshowhideliu' to match its actual functionality
Alex Ivanov [Mon, 16 Dec 2013 22:40:13 +0000 (00:40 +0200)]
Change message 'rcshowhideliu' to match its actual functionality

Bug: 55980
Change-Id: I85322e15d949d512bf088d344eacfc929ecf8659

10 years agoMerge "SpecialRecentChanges::makeLegend: Mention usage in Watchlist"
jenkins-bot [Mon, 16 Dec 2013 21:41:17 +0000 (21:41 +0000)]
Merge "SpecialRecentChanges::makeLegend: Mention usage in Watchlist"

10 years agoAdded more Setup.php profiling
Aaron Schulz [Mon, 16 Dec 2013 01:57:51 +0000 (17:57 -0800)]
Added more Setup.php profiling

Change-Id: Ie76c1ae54ccf825f387b57a8e9096f608eb3d120

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 16 Dec 2013 19:38:10 +0000 (19:38 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: If7cc1c1d3be260cda5f8aa2543fd2196a09d4622

10 years agoExplicitly support user id in action=userrights
Kunal Mehta [Sat, 14 Dec 2013 20:47:06 +0000 (12:47 -0800)]
Explicitly support user id in action=userrights

Bug: 32493
Change-Id: I2279cde5d0077f8a0612e707a2410693c5e53a12

10 years agoMerge "Remove useless $out parameter from SkinTemplate::prepareQuickTemplate()"
jenkins-bot [Mon, 16 Dec 2013 16:57:26 +0000 (16:57 +0000)]
Merge "Remove useless $out parameter from SkinTemplate::prepareQuickTemplate()"

10 years agoMerge "Add SpecialBlockModifyFormFields hook"
jenkins-bot [Mon, 16 Dec 2013 12:59:37 +0000 (12:59 +0000)]
Merge "Add SpecialBlockModifyFormFields hook"

10 years agoMerge "Remove unused variable and deprecated parameters"
jenkins-bot [Mon, 16 Dec 2013 12:29:01 +0000 (12:29 +0000)]
Merge "Remove unused variable and deprecated parameters"

10 years agoSpecialRecentChanges::makeLegend: Mention usage in Watchlist
Bartosz Dziewoński [Mon, 16 Dec 2013 12:13:33 +0000 (13:13 +0100)]
SpecialRecentChanges::makeLegend: Mention usage in Watchlist

Follow-up to Iabf4873f.

Change-Id: I21da3569f77f66473298dce7e1d9b9cff7aa4f25

10 years agoMerge "i18n: make "potentially" lowercase"
jenkins-bot [Mon, 16 Dec 2013 08:06:53 +0000 (08:06 +0000)]
Merge "i18n: make "potentially" lowercase"

10 years agoAdd SpecialBlockModifyFormFields hook
Kunal Mehta [Thu, 12 Dec 2013 20:18:05 +0000 (12:18 -0800)]
Add SpecialBlockModifyFormFields hook

For extensions to add more fields to Special:Block

Change-Id: I00fbc7af1e50e1f76208a3692f152058d2d1879e

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sun, 15 Dec 2013 21:04:26 +0000 (21:04 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoMove functions to better place in Special:Search
umherirrender [Sat, 23 Nov 2013 17:54:17 +0000 (18:54 +0100)]
Move functions to better place in Special:Search

The function direct behind the variable definition is not the prefer
place.

Change-Id: I9183e1f1af22644a4f811657fbf2245a11b48854

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 15 Dec 2013 20:46:10 +0000 (20:46 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ida0e6e21ce8aceb61419681e283fe32dedd0a0ce

10 years agoMerge "Fixed spacing"
Brian Wolff [Sun, 15 Dec 2013 20:33:32 +0000 (20:33 +0000)]
Merge "Fixed spacing"

10 years agoFixed spacing
umherirrender [Sun, 15 Dec 2013 19:56:09 +0000 (20:56 +0100)]
Fixed spacing

- Removed double spaces in arrays
- Added space after for
- Added spaces around string concat

Change-Id: Ifbcaf35f9bfef1f97226a38b5bd74c237f61c99e

10 years agoSpecialUndelete: Use DifferenceEngine#addHeader instead of rolling our own
Bartosz Dziewoński [Sun, 8 Dec 2013 18:52:51 +0000 (19:52 +0100)]
SpecialUndelete: Use DifferenceEngine#addHeader instead of rolling our own

Change-Id: I4ea57e60aaf3112622d893ecd8b81f4e65e5806d

10 years agoInsert test page into DB not to violate constraint
saper [Sat, 7 Dec 2013 15:40:58 +0000 (16:40 +0100)]
Insert test page into DB not to violate constraint

Page with id 0 does not exist at the time transaction
is committed to the database.

Unit tests with table constraints enabled
fail with:

1) RevisionStorageTest::testUserWasLastToEdit with data set #0 (3, true)
DBQueryError: A database error has occurred. Did you forget to run
maintenance/update.php after upgrading?  See:
https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: INSERT INTO "unittest_revision"
(rev_id,rev_page,rev_text_id /* more fields */ )
VALUES ('461','0','460' /* more fields */
Function: Revision::insertOn
Error: 23503 ERROR:  insert or update on table "unittest_revision"
violates foreign key constraint "ut_revision_rev_page_fkey"
DETAIL:  Key (rev_page)=(0) is not present in table "unittest_page".

/usr/home/saper/test/mytest/includes/db/Database.php:1111
/usr/home/saper/test/mytest/includes/db/DatabasePostgres.php:511
/usr/home/saper/test/mytest/includes/db/Database.php:1077
/usr/home/saper/test/mytest/includes/db/DatabasePostgres.php:871
/usr/home/saper/test/mytest/includes/Revision.php:1422
/usr/home/saper/test/mytest/tests/phpunit/includes/RevisionStorageTest.php:488
/usr/home/saper/test/mytest/tests/phpunit/MediaWikiTestCase.php:123
/usr/home/saper/test/mytest/tests/phpunit/MediaWikiPHPUnitCommand.php:80
/usr/home/saper/test/mytest/tests/phpunit/MediaWikiPHPUnitCommand.php:64
/usr/home/saper/test/mytest/tests/phpunit/phpunit.php:115

Change-Id: I653a8bccdaa748a9bea453cd1dbf609a30e1ff6f

10 years agoAttempt to fix problems noted in phpcs.
Mark A. Hershberger [Tue, 10 Dec 2013 13:33:04 +0000 (08:33 -0500)]
Attempt to fix problems noted in phpcs.

Seen at https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs-strict-HEAD/4724/console

Change-Id: I1bcec887849f726cf0015a3a3a44bfc1f797658c

10 years agoAttempt to fix problems noted in phpcs.
Mark A. Hershberger [Tue, 10 Dec 2013 13:00:49 +0000 (08:00 -0500)]
Attempt to fix problems noted in phpcs.

Seen at
https://integration.wikimedia.org/ci/job/mediawiki-core-regression-phpcs-HEAD/3256/console

Change-Id: If1272366fa242ccdf1191ba1686f2d1cdf046872

10 years agoImprove redis connection error log
Tim Starling [Fri, 15 Nov 2013 03:44:06 +0000 (14:44 +1100)]
Improve redis connection error log

Include the server name in the log entry for exceptions thrown during
connect. We are logging a lot of these.

Change-Id: Ia3f775a9e22447efb067c3203a3b80c4385aa2c0

10 years agoAbstract out mysql_field_type() call from DatabaseBase
Kevin Israel [Sat, 7 Dec 2013 20:08:47 +0000 (15:08 -0500)]
Abstract out mysql_field_type() call from DatabaseBase

DatabaseMysqlBase::fieldType() is used in the maintenance script
convertLinks.php for upgrading from MediaWiki 1.2 or earlier. This
script was failing when the mysqli extension was enabled.

Follows-up b1cc3511fd7ab2d64432ee02, and 00299ecb9515.

Change-Id: I5d888f4dd344ecba15506023d35f6d2d6e24cfd8

10 years agoAdd new_name_timestamp index when upgrading from 1.1
Kevin Israel [Sat, 7 Dec 2013 20:29:20 +0000 (15:29 -0500)]
Add new_name_timestamp index when upgrading from 1.1

This index is specified in some FORCE INDEX clauses, so it has to be
present. Patch already exists; the installer just wasn't using it.

There still are some other schema inconsistencies I have to track
down, so I'm not yet adding a release note that upgrading from 1.1
has been "fixed".

Change-Id: Ibd593d3f5b63f4cb033c6c9dabaac398bb1afd19

10 years agoi18n: make "potentially" lowercase
shirayuki [Sun, 15 Dec 2013 15:11:34 +0000 (00:11 +0900)]
i18n: make "potentially" lowercase

Spotted by Purodha
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Revdelete-suppress-text

Change-Id: I7fd667afeeef97d715133de7486bb39b5b9e7915

10 years agoRemove useless $out parameter from SkinTemplate::prepareQuickTemplate()
Alexandre Emsenhuber [Sun, 15 Dec 2013 14:53:20 +0000 (15:53 +0100)]
Remove useless $out parameter from SkinTemplate::prepareQuickTemplate()

Fix for I0a9a7f10ea (f5a0c23); use $this->getOutput() instead.

Passing different OutputPage object to Skin methods than the one set in
the context is deprecated, so there is no point having that parameter.

The method's signature is also misleading, since it allows null to be
passed, but if that value would be passed to it, the code would
crash since a such case is not handled in the method.

The $out parameter passed to the method from outputPage() is left since
it is required by the MobileFrontend extension. A similar commit will
be done in the extension, and the parameter's removal will happen once
this condition is lifted.

Change-Id: I4fac5b14afeab25f6f79f889c7ce56874827717d

10 years agoRemove unused variable $user from SkinTemplate::outputPage()
Alexandre Emsenhuber [Sun, 15 Dec 2013 14:21:11 +0000 (15:21 +0100)]
Remove unused variable $user from SkinTemplate::outputPage()

Change-Id: I566e835f8362671a08f9a2c34b6124f462fdb463

10 years agoAdd one more missing directory to findHooks.php
Alexandre Emsenhuber [Sun, 15 Dec 2013 12:49:56 +0000 (13:49 +0100)]
Add one more missing directory to findHooks.php

Change-Id: If2aa0ff952a565b4171bc0955619cb9d86a87221

10 years agoAdd missing directories to findHooks.php
Kunal Mehta [Thu, 12 Dec 2013 20:59:40 +0000 (12:59 -0800)]
Add missing directories to findHooks.php

Change-Id: I60ead68fbed90ee6d94ee6d7d783f69bf1aaa9f8

10 years agoMerge "Clean some phpcs errors in Preferences.php"
jenkins-bot [Sun, 15 Dec 2013 12:15:03 +0000 (12:15 +0000)]
Merge "Clean some phpcs errors in Preferences.php"

10 years agoSet default for nickname preference
Max Semenik [Thu, 12 Dec 2013 00:46:22 +0000 (04:46 +0400)]
Set default for nickname preference

Not having a default results in 1361430 pointless rows with
empty up_value in user_properties on enwiki only.

Part of work on bug 52777.

Change-Id: I63db3a813fbf11fd3d9a0f0535facc39d975c563

10 years agoClean some phpcs errors in Preferences.php
Amir E. Aharoni [Sun, 15 Dec 2013 07:20:11 +0000 (09:20 +0200)]
Clean some phpcs errors in Preferences.php

Change-Id: I315e562c5f85e464a8ca61be6a47e2a468156a55

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 14 Dec 2013 20:42:14 +0000 (20:42 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I81f2c786041718b678dbd9fba411e24d0c4d4cf7

10 years agoUserArray: Avoid * and double keys in select
umherirrender [Sat, 30 Nov 2013 00:57:58 +0000 (01:57 +0100)]
UserArray: Avoid * and double keys in select

Use User::selectFields to get all fields instead of *,
also use array_unqiue to make the sql nicer by having only single value
in the IN statement.

Change-Id: I0a4888be20f84f2955e82ced621aed526cc83f20

10 years ago(bug 40889) Follow-up 6f1d4db3: Fix the upload form when radio buttons are shown.
Vitaliy Filippov [Tue, 8 Oct 2013 11:15:03 +0000 (15:15 +0400)]
(bug 40889) Follow-up 6f1d4db3: Fix the upload form when radio buttons are shown.

The previous change had broken the upload form if URL uploads or
some other possible upload source types are enabled - i.e. in
the case when there are radio buttons. The "incorrect" label ID
was used by radiobutton.

Change-Id: I7c15fd4250b6a2d26af2cc0373da5ac6c884d690

10 years agoReplace deprecated notifyRC2UDP() with notifyRCFeeds().
Siebrand Mazeland [Tue, 3 Dec 2013 21:48:40 +0000 (22:48 +0100)]
Replace deprecated notifyRC2UDP() with notifyRCFeeds().

Change-Id: I54f6ce861ee0ecc6121df76e52ca3de16dd141fa

10 years agoUse canonical casing for Xml::option (no code changes)
Brian Wolff [Sat, 14 Dec 2013 02:16:35 +0000 (19:16 -0700)]
Use canonical casing for Xml::option (no code changes)

Per Umherirrender.

Change-Id: I520d71cc9969fe823122565faea9e725f96972f4
Follow-up: d0c0bad56d8ff3fe

10 years agoMerge "Removed excess title validity check"
Brian Wolff [Sat, 14 Dec 2013 06:44:09 +0000 (06:44 +0000)]
Merge "Removed excess title validity check"

10 years agoMake visibleMetadataField protected
Siebrand Mazeland [Thu, 5 Dec 2013 19:40:38 +0000 (20:40 +0100)]
Make visibleMetadataField protected

Related patch sets:
* https://gerrit.wikimedia.org/r/#/c/99429/ Extension PagedTiffHandler

Change-Id: I0441fdf1ce1e06688f16c62e1993bb05911b45bc

10 years agoOnly show 'Show extended details' for file metadata having extra rows
umherirrender [Fri, 6 Dec 2013 21:36:26 +0000 (22:36 +0100)]
Only show 'Show extended details' for file metadata having extra rows

When a file only has default visible metadata, there is no need
to allow extending the optional metadata, because there are none.

Also added comments in ImagePage.php and shared.css because this
system is scattered all over and each piece seems disconnected
(the shared.css block was incorrectly documented as only being
used to initially hide rows, wheareas in practice that never
happens and instead the collapsed state is toggled on click).

Change-Id: I595fed425135c1e8dd341258633217428bcb4154

10 years agoFix outdated comment in DefaultSettings
This, that and the other [Sat, 21 Sep 2013 09:28:57 +0000 (19:28 +1000)]
Fix outdated comment in DefaultSettings

wgCopyUploadTimeout is used now.

Follow up to Ia85a97434c14adcdaafc0802cbe0530bfa57a435

Change-Id: I9838f3f13274f4276b6a51a50afdc64fa34554e2

10 years agoMerge "Document the wikipage.content hook"
jenkins-bot [Sat, 14 Dec 2013 02:36:42 +0000 (02:36 +0000)]
Merge "Document the wikipage.content hook"

10 years agoDocument the wikipage.content hook
Matthew Flaschen [Thu, 14 Nov 2013 08:05:29 +0000 (03:05 -0500)]
Document the wikipage.content hook

There is some text in the mw.hook documentation section, but that's
really intended to document mw.hook.

Change-Id: I2afb74a1124123220b26b50b3df64dd7bae80208

10 years agoAdd method to get entire text layer. This could be useful for search
Brian Wolff [Fri, 6 Dec 2013 19:34:49 +0000 (15:34 -0400)]
Add method to get entire text layer. This could be useful for search

Change-Id: I22f5fc47aef3cf362cdf630980deea48fe531d45

10 years agoMerge "startup.js: log current time as global 'mediaWikiLoadStart'"
jenkins-bot [Fri, 13 Dec 2013 20:51:14 +0000 (20:51 +0000)]
Merge "startup.js: log current time as global 'mediaWikiLoadStart'"

10 years agoMerge "Blacklist Google Glass web browser from JS"
jenkins-bot [Fri, 13 Dec 2013 20:42:56 +0000 (20:42 +0000)]
Merge "Blacklist Google Glass web browser from JS"

10 years agoMerge "Fix WikiPage::prepareContentForEdit's default format handling"
jenkins-bot [Fri, 13 Dec 2013 20:19:34 +0000 (20:19 +0000)]
Merge "Fix WikiPage::prepareContentForEdit's default format handling"

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 13 Dec 2013 20:17:19 +0000 (20:17 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoFix WikiPage::prepareContentForEdit's default format handling
Brad Jorsch [Fri, 13 Dec 2013 17:15:39 +0000 (12:15 -0500)]
Fix WikiPage::prepareContentForEdit's default format handling

If some caller passes null for the $serialization_format parameter,
they're going to break the in-memory caching of the prepared edit even
though it's likely that the format being used is the same as the format
being used by everything else.

It seems sensible to cache null as the default format for the content
object to avoid this.

Bug: 57026
Change-Id: I4ddcf6e388636e6a6397b664b8683ad774a09a04

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 13 Dec 2013 19:58:40 +0000 (19:58 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idd97bcf1748297b4633435fd73530d7bc14e2707

10 years agoFix TempFSFile creation
Bryan Davis [Fri, 13 Dec 2013 19:49:45 +0000 (12:49 -0700)]
Fix TempFSFile creation

A new TempFSFile should be instantiated via the factory rather than
using the object constructor.

Change-Id: Icd059566087c6a644a0d0ed69abfe13b88b38ee4

10 years agoMerge "Fix TextContent::preSaveTransform() return type"
jenkins-bot [Fri, 13 Dec 2013 19:03:56 +0000 (19:03 +0000)]
Merge "Fix TextContent::preSaveTransform() return type"

10 years agoMerge "Use TempFSFile in UploadFromUrl"
jenkins-bot [Fri, 13 Dec 2013 18:50:02 +0000 (18:50 +0000)]
Merge "Use TempFSFile in UploadFromUrl"

10 years agoFix TextContent::preSaveTransform() return type
Brad Jorsch [Fri, 13 Dec 2013 17:51:47 +0000 (12:51 -0500)]
Fix TextContent::preSaveTransform() return type

TextContent::preSaveTransform should return an object of the same class
as $this, not a WikitextContent.

Apparently this was never noticed because most code paths rtrim the
input and TextContent::preSaveTransform returns $this if the rtrim is a
no-op on the input.

Bug: 58451
Change-Id: I9f8f78d52448d1ba055a654a12ff4fad86756110

10 years agoMerge "Fix error handling in File::createThumb."
jenkins-bot [Fri, 13 Dec 2013 18:17:30 +0000 (18:17 +0000)]
Merge "Fix error handling in File::createThumb."

10 years agoMerge "Made RepoGroup use ProcessCacheLRU"
jenkins-bot [Fri, 13 Dec 2013 15:51:15 +0000 (15:51 +0000)]
Merge "Made RepoGroup use ProcessCacheLRU"

10 years agoFix error handling in File::createThumb.
Brian Wolff [Fri, 13 Dec 2013 08:54:20 +0000 (01:54 -0700)]
Fix error handling in File::createThumb.

Was checking for null, but transform always returns either
false or an object.

createThumb isn't used in core, but some extensions use it.

Bug: 58436
Change-Id: Icaf5088a193dc1d9b9c365f92722bef1f9c1dba6

10 years agoUpdate oojs to v1.0.6
Timo Tijhof [Fri, 13 Dec 2013 01:28:50 +0000 (02:28 +0100)]
Update oojs to v1.0.6

Code:
 http://krinkle.github.io/oojs/releases/oojs-1.0.6.js

Release notes:
 https://github.com/wikimedia/oojs/blob/v1.0.6/History.md

Change-Id: I75e814385f697d92fdd1d22b3a0dbec3e0fe397e

10 years agoMerge "mediawiki.mixins: Remove -o and -moz vendor prefixes for transition"
jenkins-bot [Fri, 13 Dec 2013 00:34:50 +0000 (00:34 +0000)]
Merge "mediawiki.mixins: Remove -o and -moz vendor prefixes for transition"

10 years agoUpdate FSRepo to avoid the deprecated FileBackend construction style
Aaron Schulz [Tue, 10 Dec 2013 22:29:06 +0000 (14:29 -0800)]
Update FSRepo to avoid the deprecated FileBackend construction style

Change-Id: Iaa8d57e22750582eb95e4abab7444ff291807416

10 years agoUse TempFSFile in UploadFromUrl
Bryan Davis [Thu, 12 Dec 2013 23:10:14 +0000 (16:10 -0700)]
Use TempFSFile in UploadFromUrl

Make it a little harder for the developer to leak files in the temp
directory by managing the temporary file with a TempFSFile instance.

Change-Id: I8bafc3a6e6212781d9e2e4f8f370ce7c446f1fd5

10 years agoFix inconsistency in ArchivedFile::getUser
Brian Wolff [Thu, 12 Dec 2013 20:01:50 +0000 (13:01 -0700)]
Fix inconsistency in ArchivedFile::getUser

It was returning user id, where the interface is to take an
argument, and by default return the user text.

This caused weird output (user id instead of name) in certain places.

Change-Id: Icae281de67cfaafe52f1fb1fa4c7556aff7cd306
Follow-up: 8bd386e3680808d1ae1166140ef6917f0498ef3a

10 years agoMerge "Removed stray ! in isQueueDeprioritized()"
jenkins-bot [Thu, 12 Dec 2013 22:08:35 +0000 (22:08 +0000)]
Merge "Removed stray ! in isQueueDeprioritized()"

10 years agoRemoved stray ! in isQueueDeprioritized()
Aaron Schulz [Thu, 12 Dec 2013 21:57:00 +0000 (13:57 -0800)]
Removed stray ! in isQueueDeprioritized()

Change-Id: I7a4b7f6205350dd61cb37a6cd9b57d40cd74e6c8

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 12 Dec 2013 21:16:33 +0000 (21:16 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I256c74a670f5576e22e7ee6c9d3eefdade64c788

10 years agoMerge "Avoid calling protected File field"
Brian Wolff [Thu, 12 Dec 2013 18:51:57 +0000 (18:51 +0000)]
Merge "Avoid calling protected File field"

10 years agoSpecialWantedcategories: Show more current information when in cached mode
Bartosz Dziewoński [Sun, 8 Dec 2013 14:39:25 +0000 (15:39 +0100)]
SpecialWantedcategories: Show more current information when in cached mode

Usability improvements I thought up when trying to through nearly
500 entries on this page on pl.wp.

* Strike items on the list if the category was created or emptied
  since the last update
* Show current number of items if it's different from the original one

Change-Id: Ifcc534f19fb60732bcd40f75ddca390106ebe28e

10 years agoAvoid calling protected File field
Aaron Schulz [Wed, 11 Dec 2013 19:16:41 +0000 (11:16 -0800)]
Avoid calling protected File field

bug: 58333
Change-Id: I0bd4a5fe9687c4261ca0f57e30f723e8bf2589ac

10 years agoAdd ApiBeforeMain hook
Brad Jorsch [Thu, 12 Dec 2013 15:01:33 +0000 (10:01 -0500)]
Add ApiBeforeMain hook

$wgExtensionFunctions is called before the RequestContext is really
available (i.e. getTitle() is null, accessing the User object may fail
because other extensions' UserLoadFromSession hooks don't expect to be
called that early, etc). The index.php code path has BeforeInitialize to
take action after RequestContext is available but before much else
happens, but the API doesn't (yet) have anything similar.

Bug: 58380
Change-Id: I0a167faaa4166da381194c53373d82e038848924

10 years agoMerge "Make (Title|User)Array implements Countable"
jenkins-bot [Thu, 12 Dec 2013 09:49:38 +0000 (09:49 +0000)]
Merge "Make (Title|User)Array implements Countable"

10 years agoMake (Title|User)Array implements Countable
Niklas Laxström [Thu, 12 Dec 2013 09:19:19 +0000 (09:19 +0000)]
Make (Title|User)Array implements Countable

count( $results ) always returned 1, now expected number

Bug: 58377
Change-Id: I7d6b3bc1b09b46fe60cb5a74c25f9b28fffa5b73

10 years agoMerge "Always give sane output for Title::getUserCaseDBkey()"
jenkins-bot [Thu, 12 Dec 2013 09:17:43 +0000 (09:17 +0000)]
Merge "Always give sane output for Title::getUserCaseDBkey()"

10 years agoMerge "mediawiki.js: Minor clean up of comments and code"
jenkins-bot [Thu, 12 Dec 2013 05:01:14 +0000 (05:01 +0000)]
Merge "mediawiki.js: Minor clean up of comments and code"

10 years agomediawiki.js: Minor clean up of comments and code
Timo Tijhof [Thu, 5 Dec 2013 23:24:13 +0000 (00:24 +0100)]
mediawiki.js: Minor clean up of comments and code

* Put ternary on one line or separated over 3 lines.
* Whitepace inside parentheses (e.g. catch statement).
* Avoid trailing line comments.
* Capitalise description of parameters for consistency and to
  have it better stand apart from the variable name.
* Phrase primary method block description as a single line
  in the imperative mood.
* Avoid shortened urls inside documentation.
  (updated Modernizr ref to a release instead of git hash).
* Using store.enabled as boolean (null being falsey).
* Merge subsequent if-statements having the same logical purpose
  and body.

Change-Id: Ia1db9e54d528b2799187d80d2e3e22e31f74fb6b

10 years agoIcuCollation: Add CollationCkb subclass for Sorani Kurdish
Bartosz Dziewoński [Sun, 17 Nov 2013 15:02:29 +0000 (16:02 +0100)]
IcuCollation: Add CollationCkb subclass for Sorani Kurdish

ICU does not currently support Sorani Kurdish / Central Kurdish
language ('ckb'). CollationCkb uses the same collation rules as
Persian / Farsi ('fa'), but different characters for digits.

For use at ckb.wikipedia, which currently has 'uca-fa' collation
deployed as a workaround.

Added the MW language used for transforming digits to cache key for
first-letters data, in addition to the ICU locale.

Bug: 55630
Change-Id: I7d7f007592ede952859c5c9556b9ea5084b90e89

10 years agoIcuCollation: Sort digits under localised digits' headings
Bartosz Dziewoński [Sat, 12 Oct 2013 22:21:01 +0000 (00:21 +0200)]
IcuCollation: Sort digits under localised digits' headings

Previously both '1' and '۱' ("DIGIT ONE" and "EXTENDED ARABIC-INDIC
DIGIT ONE") were sorted under '1' heading, regardless of collation
locale.

Now they will be both sorted under localised heading name (transformed
using Language#formatNum), for example '1' for 'uca-en' collation or
'۱' for 'uca-fa' collation.

Bug: 55630
Change-Id: I0b745d955a6e72f53873c95648087aa5f90a8852

10 years agoMerge "Fix QueryPage transaction plan"
jenkins-bot [Thu, 12 Dec 2013 03:21:13 +0000 (03:21 +0000)]
Merge "Fix QueryPage transaction plan"

10 years agoBetter warning for Message object
Yuri Astrakhan [Thu, 12 Dec 2013 01:58:19 +0000 (20:58 -0500)]
Better warning for Message object

Trying to track down the source of the production warnings

Change-Id: Iba666af3e84651fde338764d0f9d47a38b6b54e9

10 years agomediawiki.mixins: Remove -o and -moz vendor prefixes for transition
Juliusz Gonera [Fri, 6 Dec 2013 23:36:15 +0000 (15:36 -0800)]
mediawiki.mixins: Remove -o and -moz vendor prefixes for transition

-moz is needed for Firefox <= 15.0, -o is needed for Opera <= 12.0 [1].
Usage of those browsers is negligible [2].

[1] http://caniuse.com/css-transitions
[2] http://stats.wikimedia.org/wikimedia/squids/SquidReportClients.htm

Change-Id: I43bcf1efacb87ab61b78140fe85bd846d791b54a

10 years agoAlways give sane output for Title::getUserCaseDBkey()
Brian Wolff [Wed, 11 Dec 2013 23:06:57 +0000 (16:06 -0700)]
Always give sane output for Title::getUserCaseDBkey()

Sometimes (e.g. via Title::makeTitle), the usercase db key is
not set. If that happens we should fallback to the normal db key.

This fixes file redirects on repos where initialCapital is set
to false.

Change-Id: I38bc4ebeb41b06f5c718cf5f64da158e6c1a9f49

10 years agoMerge "CSSMin: Correctly format 'url()' values with parentheses etc."
jenkins-bot [Wed, 11 Dec 2013 22:23:51 +0000 (22:23 +0000)]
Merge "CSSMin: Correctly format 'url()' values with parentheses etc."

10 years agoMerge "CSSMin: Change behavior for missing files"
jenkins-bot [Wed, 11 Dec 2013 22:18:11 +0000 (22:18 +0000)]
Merge "CSSMin: Change behavior for missing files"

10 years agoMerge "CSSMin: Fix remapOne() for URLs that are proto-relative or have query part"
jenkins-bot [Wed, 11 Dec 2013 22:11:31 +0000 (22:11 +0000)]
Merge "CSSMin: Fix remapOne() for URLs that are proto-relative or have query part"

10 years agoCSSMin: Correctly format 'url()' values with parentheses etc.
Bartosz Dziewoński [Wed, 11 Dec 2013 21:00:29 +0000 (22:00 +0100)]
CSSMin: Correctly format 'url()' values with parentheses etc.

Introduce new static function, CSSMin::buildUrlValue.

Actually using such values in CSS does not work well because the
URL_REGEX is nowhere near good enough. :(

Change-Id: I04a7078dd0087bcb461fa5e5168c870d37c255f4

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 11 Dec 2013 20:32:41 +0000 (20:32 +0000)]
Merge "Localisation updates from https://translatewiki.net."