lhc/web/wiklou.git
10 years agoMerge "Type cast formatted time"
jenkins-bot [Sat, 28 Dec 2013 12:02:37 +0000 (12:02 +0000)]
Merge "Type cast formatted time"

10 years agoMerge "Throw exception when ArchivedFile::getUser() has unkown type"
jenkins-bot [Sat, 28 Dec 2013 10:58:57 +0000 (10:58 +0000)]
Merge "Throw exception when ArchivedFile::getUser() has unkown type"

10 years agoMerge "Update documentation for WebInstaller_DBConnect::execute()"
MarkAHershberger [Sat, 28 Dec 2013 10:00:15 +0000 (10:00 +0000)]
Merge "Update documentation for WebInstaller_DBConnect::execute()"

10 years agoMerge "Update documentation related to newFromRow and formatRow"
jenkins-bot [Sat, 28 Dec 2013 00:47:51 +0000 (00:47 +0000)]
Merge "Update documentation related to newFromRow and formatRow"

10 years agoFix error introduced in Change Ieae80c63e391cfb1af61841a6badd51b87d00cfe
Skizzerz [Fri, 27 Dec 2013 23:51:24 +0000 (17:51 -0600)]
Fix error introduced in Change Ieae80c63e391cfb1af61841a6badd51b87d00cfe

The {{NAMESPACE}} magic word is broken by the above commit, since it uses
the function name "mwnamespace" in order to not conflict with the PHP 5.3
namespace keyword.

Change-Id: I807c9b89c101db289c0ec47593c18b0d1dc2260b

10 years agoMerge "Replace use of deprecated SpecialPageFactory::getGroup()"
jenkins-bot [Fri, 27 Dec 2013 23:07:55 +0000 (23:07 +0000)]
Merge "Replace use of deprecated SpecialPageFactory::getGroup()"

10 years agoMerge "Add SVG versions of enhanced recent changes collapse/show arrows"
jenkins-bot [Fri, 27 Dec 2013 22:38:54 +0000 (22:38 +0000)]
Merge "Add SVG versions of enhanced recent changes collapse/show arrows"

10 years agoAdd SVG versions of enhanced recent changes collapse/show arrows
m4tx [Fri, 27 Dec 2013 11:43:17 +0000 (12:43 +0100)]
Add SVG versions of enhanced recent changes collapse/show arrows

Bug: 35344
Change-Id: I1fcc255691048cb8929a68096e1e0e56e934f020

10 years agomw.loader.store: Detect malformed function stringification
Bartosz Dziewoński [Fri, 27 Dec 2013 22:03:13 +0000 (23:03 +0100)]
mw.loader.store: Detect malformed function stringification

See the bug for details.

This seems to happen somewhat consistently on Opera 12, let's
try to work around the browser bug before we blacklist it.

Includes some console logging.

Bug: 57567
Change-Id: Ifd7b203fb0ca61e4a749e6b0fc031e62121cc45a

10 years agoMerge "Make MediaWiki:Redirectpagesub accept all wikitext."
jenkins-bot [Fri, 27 Dec 2013 21:58:59 +0000 (21:58 +0000)]
Merge "Make MediaWiki:Redirectpagesub accept all wikitext."

10 years agoOptimize all SVGs
Bartosz Dziewoński [Fri, 27 Dec 2013 02:40:53 +0000 (03:40 +0100)]
Optimize all SVGs

Passed with svgo 0.4.2 <https://github.com/svg/svgo>, then prepended
'<?xml version="1.0" ?>' prolog back to each file since svgo sees
it fit to remove it and that breaks just about everything.

Skipped the ones in tests/, there's some weird stuff here and they
didn't shrink much when I tried anyway.

Total file size reduced from ~90 KB to ~30 KB, size of some icons was
reduced by 90%.

Change-Id: If05ee0e0ffeadcf5b21e2620cdfeef218e4c0c5d

10 years agoMerge "Remove deprecated methods from Revision, SkinTemplate, and WikiPage"
jenkins-bot [Fri, 27 Dec 2013 21:41:20 +0000 (21:41 +0000)]
Merge "Remove deprecated methods from Revision, SkinTemplate, and WikiPage"

10 years agoMerge "Revert "Add .gitignore to the /skins directory""
jenkins-bot [Fri, 27 Dec 2013 21:28:54 +0000 (21:28 +0000)]
Merge "Revert "Add .gitignore to the /skins directory""

10 years agoRevert "Add .gitignore to the /skins directory"
Bartosz Dziewoński [Fri, 27 Dec 2013 21:23:20 +0000 (21:23 +0000)]
Revert "Add .gitignore to the /skins directory"

New skin files (images etc.) seem to be matches by these
rules. I'm going to revert this for now since it's annoying,
feel free to resubmit a .gitignore that works.

This reverts commit d21381021658079720ce1a9aa9f0e989d8dd358e.

Change-Id: I77655ea4ba3ddb5941e1e423ad766be20479247f

10 years agoBreak some long lines
Chad Horohoe [Fri, 27 Dec 2013 21:01:17 +0000 (16:01 -0500)]
Break some long lines

Change-Id: I8c3919c04a3fc468191750af51b8be3f952f464e

10 years agoReduce insane amount of code duplication and long lines
Chad Horohoe [Fri, 27 Dec 2013 20:57:50 +0000 (15:57 -0500)]
Reduce insane amount of code duplication and long lines

Change-Id: Ieae80c63e391cfb1af61841a6badd51b87d00cfe

10 years agoMerge "Remove last remainig use in core of Title::escapeFullURL()"
jenkins-bot [Fri, 27 Dec 2013 20:29:11 +0000 (20:29 +0000)]
Merge "Remove last remainig use in core of Title::escapeFullURL()"

10 years agoMerge "Release notes for removed and renamed classes"
jenkins-bot [Fri, 27 Dec 2013 20:25:07 +0000 (20:25 +0000)]
Merge "Release notes for removed and renamed classes"

10 years agoRelease notes for removed and renamed classes
Siebrand Mazeland [Fri, 27 Dec 2013 16:05:37 +0000 (17:05 +0100)]
Release notes for removed and renamed classes

Change-Id: I65de588860575d22125c05b71bf4817388234ef1

10 years agoMerge "Use Title::isWatchable in ApiWatch"
jenkins-bot [Fri, 27 Dec 2013 19:42:15 +0000 (19:42 +0000)]
Merge "Use Title::isWatchable in ApiWatch"

10 years agoRemove deprecated methods from Revision, SkinTemplate, and WikiPage
Siebrand Mazeland [Fri, 27 Dec 2013 16:20:51 +0000 (17:20 +0100)]
Remove deprecated methods from Revision, SkinTemplate, and WikiPage

No uses found in core of Gerrit extensions.

- Revision::revText() (deprecated in 1.17)
- SkinTemplate::jstext() (deprecated in 1.21)
- WikiPage::quickEdit() (deprecated in 1.18)
- WikiPage::useParserCache() (deprecated in 1.18)
- WikiPage::viewUpdates() (deprecated in 1.18)

Change-Id: I9eee23ea3ce381b6b8373da899287bcaea4cead4

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 27 Dec 2013 18:24:52 +0000 (18:24 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie7840763fc088ca06b0704749ab31ccedd0b8aec

10 years agoMerge "Remove unused local variables"
jenkins-bot [Fri, 27 Dec 2013 18:03:28 +0000 (18:03 +0000)]
Merge "Remove unused local variables"

10 years agoMerge "Add missing return value for DatabaseBase::open() overrides"
jenkins-bot [Fri, 27 Dec 2013 18:01:25 +0000 (18:01 +0000)]
Merge "Add missing return value for DatabaseBase::open() overrides"

10 years agoUse Title::isWatchable in ApiWatch
umherirrender [Fri, 27 Dec 2013 18:01:02 +0000 (19:01 +0100)]
Use Title::isWatchable in ApiWatch

Same checks, but same method as in SpecialEditWatchlist

Change-Id: Ic03fc159df9e6322fd0f2d73de4e69b34065d5bb

10 years agoAdd missing return value for DatabaseBase::open() overrides
Siebrand Mazeland [Fri, 27 Dec 2013 16:59:39 +0000 (17:59 +0100)]
Add missing return value for DatabaseBase::open() overrides

Change-Id: Ifcd9e6fb36a5f8f53ad38a60719267d69c86c17e

10 years agoThrow exception when ArchivedFile::getUser() has unkown type
Siebrand Mazeland [Fri, 27 Dec 2013 17:00:39 +0000 (18:00 +0100)]
Throw exception when ArchivedFile::getUser() has unkown type

Change-Id: I95117c5cc73d187c8c7b859b67ad6655d196d91e

10 years agoUpdate documentation for WebInstaller_DBConnect::execute()
Siebrand Mazeland [Fri, 27 Dec 2013 17:01:34 +0000 (18:01 +0100)]
Update documentation for WebInstaller_DBConnect::execute()

Change-Id: I7f700daf8c1dbf0903159a1b750612b09f0e8e25

10 years agoAdd release notes for I9c9f5bb8af
Siebrand Mazeland [Fri, 27 Dec 2013 17:04:22 +0000 (18:04 +0100)]
Add release notes for I9c9f5bb8af

Change-Id: I65d334446de8d02d8bb5fb744c2e6d0202f2360c

10 years agoMerge "Remove deprecated SpecialRevisionDelete::extractBitField()"
jenkins-bot [Fri, 27 Dec 2013 16:45:30 +0000 (16:45 +0000)]
Merge "Remove deprecated SpecialRevisionDelete::extractBitField()"

10 years agoMerge "Remove unreachable statement"
jenkins-bot [Fri, 27 Dec 2013 16:40:33 +0000 (16:40 +0000)]
Merge "Remove unreachable statement"

10 years agoRemove unreachable statement
Siebrand Mazeland [Fri, 27 Dec 2013 16:34:55 +0000 (17:34 +0100)]
Remove unreachable statement

Change-Id: I537d189e802c6201a4c9a1a5f17ca172836ec5b3

10 years agoType cast formatted time
Siebrand Mazeland [Fri, 27 Dec 2013 16:26:06 +0000 (17:26 +0100)]
Type cast formatted time

Static code analyser warned for possible incorrect string concatenation
operator. Now it's clear what type we're dealing with.

Change-Id: Ic9f19479379ec2c6f4cb087ade44235fb110318c

10 years agoRemove Exif::makeFormattedData and Exif::getFormattedData
Siebrand Mazeland [Fri, 27 Dec 2013 15:56:23 +0000 (16:56 +0100)]
Remove Exif::makeFormattedData and Exif::getFormattedData

Both unused in core and Gerrit extensions.
Deprecated since MediaWiki 1.18.

Change-Id: I59e9bb5a368ffcbae1634395c0062fea0e754972

10 years agoMerge "Remove long deprecated methods from Linker"
jenkins-bot [Fri, 27 Dec 2013 15:52:46 +0000 (15:52 +0000)]
Merge "Remove long deprecated methods from Linker"

10 years agoMerge "Moved ScopedCallback to /libs"
jenkins-bot [Fri, 27 Dec 2013 15:46:01 +0000 (15:46 +0000)]
Merge "Moved ScopedCallback to /libs"

10 years agoMerge "Remove hints to fixed bug 54044"
jenkins-bot [Fri, 27 Dec 2013 15:41:27 +0000 (15:41 +0000)]
Merge "Remove hints to fixed bug 54044"

10 years agoRemove deprecated SpecialRevisionDelete::extractBitField()
Siebrand Mazeland [Fri, 27 Dec 2013 15:11:45 +0000 (16:11 +0100)]
Remove deprecated SpecialRevisionDelete::extractBitField()

Replaced only usage in core and extensions with
RevisionDeleter::extractBitField().

Change-Id: I9c9f5bb8af32ce39824b6bf816066fec04211533

10 years agoRemove long deprecated methods from Linker
Siebrand Mazeland [Fri, 27 Dec 2013 15:08:27 +0000 (16:08 +0100)]
Remove long deprecated methods from Linker

- Linker::makeBrokenLink() (deprecated in 1.16)
- Linker::makeBrokenLinkObj() (deprecated in 1.16)
- Linker::makeColouredLinkObj() (deprecated in 1.16)
- Linker::makeSizeLinkObj() (deprecated in 1.17)

Change-Id: I230096cbf964cdff980f33f76790a524d318408d

10 years agoReplace use of deprecated SpecialPageFactory::getGroup()
Siebrand Mazeland [Fri, 27 Dec 2013 15:02:42 +0000 (16:02 +0100)]
Replace use of deprecated SpecialPageFactory::getGroup()

Change-Id: I2d98c0ebe2fccbb844cc1997b17061a100a4495d

10 years agoRemove last remainig use in core of Title::escapeFullURL()
Siebrand Mazeland [Fri, 27 Dec 2013 14:01:26 +0000 (15:01 +0100)]
Remove last remainig use in core of Title::escapeFullURL()

This was deprecated in MediaWiki 1.19.

Change-Id: I21a46a35e449b81d5999420add91d7664fcf5f1d

10 years agoUpdate documentation related to newFromRow and formatRow
Siebrand Mazeland [Fri, 27 Dec 2013 12:56:52 +0000 (13:56 +0100)]
Update documentation related to newFromRow and formatRow

Change-Id: I65e5923c4dc3a63bd9cdbbc5fdcb572ab0cb9cae

10 years agoRemove unused local variables
Siebrand Mazeland [Fri, 27 Dec 2013 00:52:09 +0000 (01:52 +0100)]
Remove unused local variables

Change-Id: I9e5667d3b27c7685004e2f3215ea51176988d3b2

10 years agoRemove hints to fixed bug 54044
umherirrender [Fri, 27 Dec 2013 11:57:26 +0000 (12:57 +0100)]
Remove hints to fixed bug 54044

Change-Id: I119a2ec4114fd7939ef2d74e614b4a8ff8e257ac

10 years agoFixed typo in comment in MediaWikiTestCase
umherirrender [Fri, 27 Dec 2013 11:50:27 +0000 (12:50 +0100)]
Fixed typo in comment in MediaWikiTestCase

Change-Id: I72214f134e0e94195cb56271c5fcb6997245fac6

10 years agoMake MediaWiki:Redirectpagesub accept all wikitext.
Skizzerz [Fri, 27 Dec 2013 04:41:15 +0000 (22:41 -0600)]
Make MediaWiki:Redirectpagesub accept all wikitext.

Redirectpagesub is used as the system message for subheadings on redirect pages.
Currently, it only performs transformations of {{-style constructs whereas it
could be useful to accept a wider range of wikitext. For example, one could change
the message to "Redirect page ([[Special:WhatLinksHere/{{FULLPAGENAME}}|links]])"
so that the subtitle displays a link to Special:WhatLinksHere. Currently that does not work.

The subtitle is already in a block-level <div> so it can already handle additional
block-level elements, thus the inclusion of arbitrary wikitext shouldn't break things (too) badly.

Change-Id: Icbd29d71c325c63dfda80dfcd52ed32358a2f24e

10 years agoMerge "Add SVG versions of link type icons"
jenkins-bot [Fri, 27 Dec 2013 01:47:22 +0000 (01:47 +0000)]
Merge "Add SVG versions of link type icons"

10 years agoAdd SVG versions of link type icons
m4tx [Sat, 30 Nov 2013 16:56:27 +0000 (17:56 +0100)]
Add SVG versions of link type icons

Bug: 35343
Change-Id: Ifb840cb486df7c41a98c577cd8c1845c5a89a4d1

10 years agoDeclare visibility for class property of LoadBalancerSingle
Siebrand Mazeland [Thu, 26 Dec 2013 22:24:18 +0000 (23:24 +0100)]
Declare visibility for class property of LoadBalancerSingle

Change-Id: Ief598ff677f711eefcf37b2cf7915d00e204e431

10 years agoMerge "Deprecate SpecialPage::getTitle"
jenkins-bot [Thu, 26 Dec 2013 22:45:06 +0000 (22:45 +0000)]
Merge "Deprecate SpecialPage::getTitle"

10 years agoMerge "Made Title cache use MapCacheLRU"
jenkins-bot [Thu, 26 Dec 2013 22:24:14 +0000 (22:24 +0000)]
Merge "Made Title cache use MapCacheLRU"

10 years agoRemove underscore from classes LBFactory_*, LoadBalancer_*, LoadMonitor_*
Siebrand Mazeland [Wed, 27 Nov 2013 10:17:06 +0000 (11:17 +0100)]
Remove underscore from classes LBFactory_*, LoadBalancer_*, LoadMonitor_*

Part of program to remove underscores from class names. Checked core and
600+ extensions for occurrences. All uses are in core in core are updated
in this patch.

Patches for extensions:
* https://gerrit.wikimedia.org/r/#/c/96463/ CentralAuth
* https://gerrit.wikimedia.org/r/#/c/96460/ SimpleSecurity
* https://gerrit.wikimedia.org/r/#/c/96459/ WikiBase
* https://gerrit.wikimedia.org/r/#/c/96472/ Wikimedia configuration

Antoine added tests to test the back compatibility.

Change-Id: I507ba00a83bca8375a0215f00891b47e3c7afb9f

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 26 Dec 2013 19:18:09 +0000 (19:18 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia0c0839f6625c878e89d3d29bdec77446b8e77fb

10 years agoMerge "Add missing subjectspace pages to watchlist on update."
jenkins-bot [Thu, 26 Dec 2013 18:42:34 +0000 (18:42 +0000)]
Merge "Add missing subjectspace pages to watchlist on update."

10 years agoMerge "Declare visibility on log class related properties"
jenkins-bot [Thu, 26 Dec 2013 18:40:53 +0000 (18:40 +0000)]
Merge "Declare visibility on log class related properties"

10 years agoMerge "Don't escape HTML title of Special:Contributions for newbies"
jenkins-bot [Thu, 26 Dec 2013 18:39:12 +0000 (18:39 +0000)]
Merge "Don't escape HTML title of Special:Contributions for newbies"

10 years agoMerge "Use a better regular expression to find documented hooks in findHooks.php"
jenkins-bot [Thu, 26 Dec 2013 18:09:24 +0000 (18:09 +0000)]
Merge "Use a better regular expression to find documented hooks in findHooks.php"

10 years agoMerge "Disabled, unticked "Leave redirect" checkbox when redirect impossible"
jenkins-bot [Thu, 26 Dec 2013 15:01:11 +0000 (15:01 +0000)]
Merge "Disabled, unticked "Leave redirect" checkbox when redirect impossible"

10 years agoDisabled, unticked "Leave redirect" checkbox when redirect impossible
Jared [Tue, 24 Dec 2013 08:43:42 +0000 (00:43 -0800)]
Disabled, unticked "Leave redirect" checkbox when redirect impossible

Disabled the "Leave redirect" checkbox on Special:MovePage when redirect
is impossible because of the content model.

Bug: 58017
Change-Id: Ibbc5caace749662d51b9ebd4554234d79b7a887c

10 years agoFix typo in DerivativeContext doc
Kunal Mehta [Thu, 26 Dec 2013 06:56:49 +0000 (22:56 -0800)]
Fix typo in DerivativeContext doc

Change-Id: Ife6395fa7f78cb7b52b78cc60419fd387bd8509c

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 25 Dec 2013 19:57:26 +0000 (19:57 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c1d25fe74b69c0c91c69ca98636c99606dcc111

10 years agoUpdated location of zhtable in comment
Liangent [Wed, 25 Dec 2013 15:22:38 +0000 (15:22 +0000)]
Updated location of zhtable in comment

Follow up I239483e6cdf7d412be01ae8bd45978481c5dd518.

Change-Id: Ia909b36ed8b996057ba4e7966cac4d29ee3836f4

10 years agoMerge "Remove old styles for #userlogin and #userloginForm"
jenkins-bot [Wed, 25 Dec 2013 01:49:04 +0000 (01:49 +0000)]
Merge "Remove old styles for #userlogin and #userloginForm"

10 years agoMerge "Remove grey background from login/createaccount form on Monobook"
jenkins-bot [Wed, 25 Dec 2013 01:47:24 +0000 (01:47 +0000)]
Merge "Remove grey background from login/createaccount form on Monobook"

10 years agoRemove old styles for #userlogin and #userloginForm
Bartosz Dziewoński [Tue, 24 Dec 2013 16:28:01 +0000 (17:28 +0100)]
Remove old styles for #userlogin and #userloginForm

Only removed rules which either (and I could verify that):
* Are completely overridden by styles for the special pages
* No longer match any elements

Change-Id: I79268a4fc74d62b88773538e3c5817e12f70f263

10 years agoDeprecate SpecialPage::getTitle
Kunal Mehta [Tue, 24 Dec 2013 08:07:04 +0000 (00:07 -0800)]
Deprecate SpecialPage::getTitle

Callers should use SpecialPage::getPageTitle, which is
exactly identical.

This is so that in the future we can turn SpecialPage
into a ContextSource, which requires getTitle to return
getContext()->getTitle.

Change-Id: Icdcf5d5295ef5e7f08b1d403e0c123f78738fd40

10 years agoRemove grey background from login/createaccount form on Monobook
Bartosz Dziewoński [Tue, 24 Dec 2013 16:14:52 +0000 (17:14 +0100)]
Remove grey background from login/createaccount form on Monobook

It's some holdover from the early ages and looks really ugly with the
new styles.

Bug: 47698
Change-Id: I2e97fc1b4c8970cf279f0cff38b54ddd4c5b36dd

10 years agoMerge "Apply mediawiki.ui.button colors to all skins"
jenkins-bot [Tue, 24 Dec 2013 19:46:54 +0000 (19:46 +0000)]
Merge "Apply mediawiki.ui.button colors to all skins"

10 years agoMerge "Allow searching for IPs' logs"
jenkins-bot [Tue, 24 Dec 2013 15:27:15 +0000 (15:27 +0000)]
Merge "Allow searching for IPs' logs"

10 years agoMerge "mediawiki.Uri: Fix host example and change foo.com to example.com"
jenkins-bot [Tue, 24 Dec 2013 14:12:22 +0000 (14:12 +0000)]
Merge "mediawiki.Uri: Fix host example and change foo.com to example.com"

10 years agoAdded a page_links_updated column for job de-duplication
Aaron Schulz [Fri, 13 Dec 2013 00:54:51 +0000 (16:54 -0800)]
Added a page_links_updated column for job de-duplication

Change-Id: I74b6f507ef7371db92e0c3f058d38c0ca5dea9ef

10 years agoMerge "Clarify comment on SpecialPage::getDescription"
jenkins-bot [Tue, 24 Dec 2013 10:52:08 +0000 (10:52 +0000)]
Merge "Clarify comment on SpecialPage::getDescription"

10 years agoClarify comment on SpecialPage::getDescription
Brian Wolff [Tue, 24 Dec 2013 08:00:18 +0000 (01:00 -0700)]
Clarify comment on SpecialPage::getDescription

Remove mention of dynamically adding messages at runtime
(Not supported anymore)

Change-Id: I82500a6b12ffd1087211930ca62f6020caea32f7

10 years agoDon't escape HTML title of Special:Contributions for newbies
Yusuke Matsubara [Mon, 23 Dec 2013 12:31:41 +0000 (21:31 +0900)]
Don't escape HTML title of Special:Contributions for newbies

This is a correction regarding the call of "->plain".
MediaWiki:pagetitle may contain variables (such as {{SITENAME}})
to be parsed, so it should not be treated as plain text.
MediaWiki:sp-contributions-newbies-title appears to be plain text only.

Change-Id: Ia6c0d955fb789535104956be9a00ce432aabe9e1

10 years agoMerge "mediawiki.js: Add mw.track"
jenkins-bot [Mon, 23 Dec 2013 23:59:00 +0000 (23:59 +0000)]
Merge "mediawiki.js: Add mw.track"

10 years agoMerge "Added $wgJobBackoffThrottling to replace wmf sleep() hack"
jenkins-bot [Mon, 23 Dec 2013 23:40:04 +0000 (23:40 +0000)]
Merge "Added $wgJobBackoffThrottling to replace wmf sleep() hack"

10 years agoAdded $wgJobBackoffThrottling to replace wmf sleep() hack
Aaron Schulz [Sat, 21 Dec 2013 20:57:45 +0000 (12:57 -0800)]
Added $wgJobBackoffThrottling to replace wmf sleep() hack

* This also adds a Job::workItemCount() method
* Removed unused USE_PRIORITY constant
* A few small cleanups in runJobs.php

Change-Id: Ife9370e488fa63dcd1f702ed98f3b7f26057f10c

10 years agomediawiki.js: Add mw.track
Ori Livneh [Thu, 5 Dec 2013 22:51:40 +0000 (14:51 -0800)]
mediawiki.js: Add mw.track

`mw.track` implements a topic-based message broker / event bus for
JavaScript code. Its distinguishing characteristic is that subscribers are
called with each event that matches their topic filter, including any
events that fired before the subscriber registered. This allows code to be
instrumented to report performance data without having to know anything
about subscribers, and it makes it trivial to attach MediaWiki events to
any event logging system -- not just EventLogging, but also Google
Analytics, New Relic, etc., which is a compelling feature for third-party
users.

The implementation is ported from VisualEditor, where it was introduced in
change I29740fa7a and subsequently refined. I did not port
`ve.trackSubscribeAll`, since it is syntactic sugar for calling
`ve.trackSubscribe` with the empty string as a subscription. It made sense
to have a wrapper for VE, since registering a handler for all VE events is
a credible use-case, but it seems less legitimate if `track` is expanded
to the entire MediaWiki ecosystem.

Change-Id: I8c7af097e6a9b2781ba3d6625d1132b7788ce8da

10 years agoMerge "Release notes for Ia193571a, I56758908, I9fd40bcb"
jenkins-bot [Mon, 23 Dec 2013 22:35:01 +0000 (22:35 +0000)]
Merge "Release notes for Ia193571a, I56758908, I9fd40bcb"

10 years agoMerge "Split skins.common up into a proper trio of .elements, .content, and .interfac...
jenkins-bot [Mon, 23 Dec 2013 22:34:53 +0000 (22:34 +0000)]
Merge "Split skins.common up into a proper trio of .elements, .content, and .interface modules."

10 years agoRelease notes for Ia193571a, I56758908, I9fd40bcb
Bartosz Dziewoński [Sat, 21 Dec 2013 23:35:16 +0000 (00:35 +0100)]
Release notes for Ia193571a, I56758908, I9fd40bcb

Change-Id: I6d7c4ba3592c5dd646180189086fd854ee6516a8

10 years agoApply mediawiki.ui.button colors to all skins
Matthew Flaschen [Mon, 23 Dec 2013 22:14:50 +0000 (17:14 -0500)]
Apply mediawiki.ui.button colors to all skins

Specific skins can still add overrides using skinStyles.  However,
before this change, there was no custom style for any other skin.  They
just looked like Vector without the colors and type.  That grey could
be confused with a 'disabled' state.

Vector still has an override just for the font size and height.

Bug: 55554
Change-Id: I5ed8f6ca7d756731639fa4b62fbb4e4d74972100

10 years agoAllow searching for IPs' logs
Jackmcbarn [Mon, 23 Dec 2013 21:09:21 +0000 (16:09 -0500)]
Allow searching for IPs' logs

Update limitPerformer to search for IPs based on log_user_text, rather
than preventing any results from being returned. Also, make a
corresponding adjustment to list=logevents in the API, and remove
indexes to match the LogPager code.

Bug: 58691
Bug: 54404
Change-Id: Iae3f4ee5c7fba5b0b0f4f8fb3e67ac054c7b8dd7

10 years agomediawiki.Uri: Fix host example and change foo.com to example.com
Timo Tijhof [Mon, 23 Dec 2013 21:38:01 +0000 (21:38 +0000)]
mediawiki.Uri: Fix host example and change foo.com to example.com

* The example changed host from foo.com to www.foo.com, but
  the .toString() comment showing the expected value was wrong
  as it implied setting .host doesn't work, but it does.

* Update examples and tests to use example.org or example.com
  instead of foo, test, or google.com etc.

Follows-up a94417720248dd3 which accidentally broke the example,
when fixing the .setAttr() -> .attr() mistake.

Change-Id: Ifeaf713a8f1db8758b01aa84061b49316ca5d577

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 23 Dec 2013 20:44:54 +0000 (20:44 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I224ceef57736f6567735a3d1e19f1ec0fddb515e

10 years agoMerge "mediawiki.action.edit.preview: Run hook on detached node"
jenkins-bot [Mon, 23 Dec 2013 20:03:18 +0000 (20:03 +0000)]
Merge "mediawiki.action.edit.preview: Run hook on detached node"

10 years agoFix mediawiki-core-regression-master
Brad Jorsch [Mon, 23 Dec 2013 18:48:21 +0000 (13:48 -0500)]
Fix mediawiki-core-regression-master

The Interwiki class caches lookups, so ApiQueryTest.php's use of "en:"
was failing for mediawiki-core-regression-master because something else
had already made a call for that prefix. The easy fix is to use a
different prefix that is very unlikely to ever be used in a different
test.

Change-Id: I43ca554d5b5465d760eae03d1f76b8c3bf589210

10 years agoMerge "Add Travis CI job configuration for testing MediaWiki on HHVM"
jenkins-bot [Mon, 23 Dec 2013 18:13:59 +0000 (18:13 +0000)]
Merge "Add Travis CI job configuration for testing MediaWiki on HHVM"

10 years agoFix capitalization in ApiQueryBase::titlePartToKey()
btongminh [Sun, 17 Nov 2013 17:52:54 +0000 (18:52 +0100)]
Fix capitalization in ApiQueryBase::titlePartToKey()

ApiQueryBase::titlePartToKey now allows an extra parameter that
indicates the namespace in order to properly capitalize the title part.

This allows list=allcategories, list=allimages, list=alllinks,
list=allpages, list=deletedrevs and list=filearchive to
handle case-sensitivity properly for all parameters.

Bug: 25702
Change-Id: Iaa5a71ec536f3716f54bc84b39f645545dfd8660

10 years agoMerge "Plural rules: updates for UTS #35 Rev 33"
jenkins-bot [Mon, 23 Dec 2013 14:00:34 +0000 (14:00 +0000)]
Merge "Plural rules: updates for UTS #35 Rev 33"

10 years agoMerge "generateJsonI18n.php: replace i18n.php with a shim"
jenkins-bot [Mon, 23 Dec 2013 11:25:28 +0000 (11:25 +0000)]
Merge "generateJsonI18n.php: replace i18n.php with a shim"

10 years agoMerge "Add NS_USER, NS_USER_TALK aliases for Old English"
jenkins-bot [Mon, 23 Dec 2013 11:01:29 +0000 (11:01 +0000)]
Merge "Add NS_USER, NS_USER_TALK aliases for Old English"

10 years agoAdd NS_USER, NS_USER_TALK aliases for Old English
Tomasz W. Kozlowski [Mon, 23 Dec 2013 09:16:16 +0000 (10:16 +0100)]
Add NS_USER, NS_USER_TALK aliases for Old English

This patch adds accent-free aliases for the NS_USER
and NS_USER_TALK namespaces per community request.
The names, I am told, have been translated by an
Old English Wikipedia administrator.

See bug for details.

Bug: 58863
Change-Id: I14e334fe42c502b8182487328ebab76a6d52a8a8

10 years agogenerateJsonI18n.php: replace i18n.php with a shim
Niklas Laxström [Sun, 22 Dec 2013 17:11:14 +0000 (17:11 +0000)]
generateJsonI18n.php: replace i18n.php with a shim

Change-Id: I4b8f1d9c0b13fca3aae0bec5c614218e917691ef

10 years agoAdd Travis CI job configuration for testing MediaWiki on HHVM
Ori Livneh [Mon, 23 Dec 2013 05:44:51 +0000 (21:44 -0800)]
Add Travis CI job configuration for testing MediaWiki on HHVM

Travis CI is a popular continuous integration service that provides free
automated testing to FOSS projects. Ten days ago, the HHVM team announced that
Travis CI's build environment provides HHVM by default. This patch contains a
Travis CI job configuration that runs MediaWiki's test suite using HHVM.
Because we replicate changes to GitHub, merging this change and enabling the
Travis CI hook in the repository configuration on GitHub will cause Travis CI
to run the tests on each commit.

Change-Id: Ia18cba5facb7f0b506e962df2f114338af571b8a

10 years agoFix doc for NullJob
Kunal Mehta [Mon, 23 Dec 2013 03:16:54 +0000 (19:16 -0800)]
Fix doc for NullJob

Change-Id: I6cde9fc95a102349ecbaccb813fb8ef86f159b8c
Follows-up: I2bedd0ff311bff027d998f193d6cb799d70d2a93

10 years agomediawiki.hlist: Use mw.hook( 'wikipage.content' ) in JS fallback
Bartosz Dziewoński [Tue, 19 Nov 2013 11:15:06 +0000 (12:15 +0100)]
mediawiki.hlist: Use mw.hook( 'wikipage.content' ) in JS fallback

…to make sure that any dynamically-inserted content will be processed
as well.

Change-Id: Ibc34668fea309c319118b29f51300da3ed06311a

10 years agomediawiki.hlist: Remove skin-specific styles
Bartosz Dziewoński [Sat, 7 Dec 2013 01:26:26 +0000 (02:26 +0100)]
mediawiki.hlist: Remove skin-specific styles

Per bug 40062 comment 23, these no longer do anything useful.

Change-Id: I666cae92a6742aadf840f4a1c20d7f7a1426192b

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

Change-Id: I6b506db2ec155c99e9d3b3dd59e5f8e8de760f94

10 years agoMerge "Make Language::fetchLanguageName lowercase its first argument."
jenkins-bot [Sun, 22 Dec 2013 16:18:27 +0000 (16:18 +0000)]
Merge "Make Language::fetchLanguageName lowercase its first argument."