lhc/web/wiklou.git
8 years agoMerge "Avoid rebuilding database fixtures for every test run"
jenkins-bot [Fri, 11 Mar 2016 00:06:19 +0000 (00:06 +0000)]
Merge "Avoid rebuilding database fixtures for every test run"

8 years agoAvoid rebuilding database fixtures for every test run
daniel [Mon, 7 Mar 2016 17:26:25 +0000 (18:26 +0100)]
Avoid rebuilding database fixtures for every test run

This reduces the runtime of database-bound tests by about 40%
(on my system, from 4:55 to 2:47; results from Jenkins are
inconclusive).

The basic idea is to call addCoreDBData() only once, and have
a addDBDataOnce() that is called once per test class, not for
every test method lie addDBData() is. Most tests could be
trivially be changed to implement addDBDataOnce() instead of
addDBData(). The ones for which this did not work immediately
were left out for now. A closer look at the tests that still
implement addDBData() may reveal additional potential for
improvement.

TODO: Once this is merged, try to change addDBData() to
addDBDataOnce() where possible in extensions.

Change-Id: Iec4ed4c8419fb4ad87e6710de808863ede9998b7

8 years agoMerge "Replace create_function() with a closure"
jenkins-bot [Thu, 10 Mar 2016 23:34:47 +0000 (23:34 +0000)]
Merge "Replace create_function() with a closure"

8 years agoReplace create_function() with a closure
Kevin Israel [Thu, 10 Mar 2016 23:04:07 +0000 (18:04 -0500)]
Replace create_function() with a closure

As in 266da0fb89ec4ae5 in extensions/Flow.

Change-Id: I0f6a38761cf1fa2956dad0f44fa023e1a8855df4

8 years agoConvert timing to ms before we've recorded too much data
Max Semenik [Thu, 10 Mar 2016 23:03:48 +0000 (15:03 -0800)]
Convert timing to ms before we've recorded too much data

Change-Id: I0a4e18290cdc662e597484a94205a481415cbb7b

8 years agoMerge "Respect undeclared command line options"
jenkins-bot [Thu, 10 Mar 2016 22:50:25 +0000 (22:50 +0000)]
Merge "Respect undeclared command line options"

8 years agoMerge "HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our...
jenkins-bot [Thu, 10 Mar 2016 21:33:28 +0000 (21:33 +0000)]
Merge "HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own"

8 years agoMerge "HTMLFormFieldWithButton: Don't make the button primary by default"
jenkins-bot [Thu, 10 Mar 2016 21:33:24 +0000 (21:33 +0000)]
Merge "HTMLFormFieldWithButton: Don't make the button primary by default"

8 years agoMerge "Remove some deprecated functions from ApiBase"
jenkins-bot [Thu, 10 Mar 2016 21:22:30 +0000 (21:22 +0000)]
Merge "Remove some deprecated functions from ApiBase"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 10 Mar 2016 20:54:09 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iaea8b19d6e8c2cb24cb41c36f42c833c8cadf85a

8 years agoRemove some deprecated functions from ApiBase
Siebrand Mazeland [Tue, 8 Mar 2016 23:33:02 +0000 (00:33 +0100)]
Remove some deprecated functions from ApiBase

* ApiBase::addTokenProperties() was removed (deprecated since 1.24).
* ApiBase::getFinalPossibleErrors() was removed (deprecated since 1.24).
* ApiBase::getFinalResultProperties() was removed (deprecated since 1.24).
* ApiBase::getRequireAtLeastOneParameterErrorMessages() was removed (deprecated since 1.24).
* ApiBase::getPossibleErrors() was removed (deprecated since 1.24).
* ApiBase::getRequireMaxOneParameterErrorMessages() was removed (deprecated since 1.24).
* ApiBase::getRequireOnlyOneParameterErrorMessages() was removed (deprecated since 1.24).
* ApiBase::getResultProperties() was removed (deprecated since 1.24).
* ApiBase::getTitleOrPageIdErrorMessage() was removed (deprecated since 1.24).
* ApiBase::parseErrors() was removed (deprecated since 1.24).
* Remove related constants ApiBase::PROP_ROOT, ApiBase::PROP_LIST,
  ApiBase::PROP_TYPE, ApiBase::PROP_NULLABLE.

Patches were submitted for remaining uses in Gerrit extensions.

Change-Id: Idea70300874258fbcb9deef6504eb55f2ebe8d6c

8 years agoHTMLFormFieldWithButton: Don't make the button primary by default
Bartosz Dziewoński [Thu, 10 Mar 2016 20:17:26 +0000 (21:17 +0100)]
HTMLFormFieldWithButton: Don't make the button primary by default

It results in multiple 'primary' buttons in forms, contrary to the
guidelines, for example on Special:Export.

Before: https://phabricator.wikimedia.org/F3605116
After: https://phabricator.wikimedia.org/F3605163

Changed Special:BotPasswords to explicitly use a 'primary' button,
since as far as I can tell it only displays a single button.

Change-Id: Ic647d2650ca635644245eb657cce045db9869fc5

8 years agoMerge "Make UploadBase use TempFSFile to wrap the temporary file"
jenkins-bot [Thu, 10 Mar 2016 20:04:54 +0000 (20:04 +0000)]
Merge "Make UploadBase use TempFSFile to wrap the temporary file"

8 years agoMerge "Fix mw.viewport.isElementInViewport with scrolled page"
jenkins-bot [Thu, 10 Mar 2016 19:24:13 +0000 (19:24 +0000)]
Merge "Fix mw.viewport.isElementInViewport with scrolled page"

8 years agoMerge "build: Ignore phpcs in /skins but not /includes/skins"
jenkins-bot [Thu, 10 Mar 2016 18:41:24 +0000 (18:41 +0000)]
Merge "build: Ignore phpcs in /skins but not /includes/skins"

8 years agoMerge "composer-merge-plugin: Bump to latest upstream version"
jenkins-bot [Thu, 10 Mar 2016 18:38:06 +0000 (18:38 +0000)]
Merge "composer-merge-plugin: Bump to latest upstream version"

8 years agoMerge "Clean up XCFHandler::getImageSize()"
jenkins-bot [Thu, 10 Mar 2016 18:08:16 +0000 (18:08 +0000)]
Merge "Clean up XCFHandler::getImageSize()"

8 years agoUse ipb_id when updating expiry in Block::updateTimestamp()
Kunal Mehta [Thu, 3 Mar 2016 02:48:08 +0000 (18:48 -0800)]
Use ipb_id when updating expiry in Block::updateTimestamp()

If Block::purgeExpired() hasn't been called due to low traffic, already
expired blocks might have their timestamps extended.

Bug: T128695
Change-Id: I21e7dca57bda77a755b54d0e09f340c3f0e75bd6

8 years agocomposer-merge-plugin: Bump to latest upstream version
Bryan Davis [Thu, 10 Mar 2016 16:47:40 +0000 (09:47 -0700)]
composer-merge-plugin: Bump to latest upstream version

v1.3.1 fixes issues with "self.version" constraints in included composer
manifests.

Depends-On: Ic34ea8b4456621e62810ad16692cc2ca7ac5f966
Change-Id: I2fa884a8ff4af42e1a62fa8e5d0799dcfc0f4547

8 years agoMerge "user: Remove debug entries from User::isValidUserName() rejections"
jenkins-bot [Thu, 10 Mar 2016 16:26:38 +0000 (16:26 +0000)]
Merge "user: Remove debug entries from User::isValidUserName() rejections"

8 years agoClean up XCFHandler::getImageSize()
Kevin Israel [Thu, 10 Mar 2016 14:45:41 +0000 (09:45 -0500)]
Clean up XCFHandler::getImageSize()

No change in behavior:

* Moved setting of array elements into the initializer.
* Replaced sprintf() with variable interpolation.
* Removed a pointless assertion.

Change-Id: Ie77d26c80d592911b33bc544f831c4d34cc47d0e

8 years agoFix mw.viewport.isElementInViewport with scrolled page
joakin [Thu, 10 Mar 2016 13:10:30 +0000 (13:10 +0000)]
Fix mw.viewport.isElementInViewport with scrolled page

With a scrolled page the function would return false since it assumed that
getBoundingClientRect returns the offset when in reality it returns the offset
relative to the window viewport.

This implementation keeps the ability to specify custom viewport rects. If we
wanted to just rely on the window viewport the implementation could be changed
with getBoundingClientRect to be much simpler.

Bug: T129466
Change-Id: I56142fbd1177fe47171a1874f73b7a8359c282ee

8 years agoRespect undeclared command line options
Tim Starling [Thu, 10 Mar 2016 05:18:13 +0000 (16:18 +1100)]
Respect undeclared command line options

This was broken by I847d45684ccd. We should really give an error when an
undeclared option is given (not ignore the option as in the previous
code), but most commandLine.inc users rely on undeclared options being
passed through to the $options global, and the change in I847d45684ccd
was apparently accidental.

Change-Id: Icec654a386bc79bf3e4ba81644c3c51ac5e093ba

8 years agoHttpFunctions: Log in English
Brad Jorsch [Wed, 9 Mar 2016 17:43:21 +0000 (12:43 -0500)]
HttpFunctions: Log in English

Bug: T127233
Change-Id: Ie61030a21f5a5f5e46452c1b6b15db594d741b71

8 years agoAllow passing a language into Status::getWikiText() etc.
Brad Jorsch [Wed, 9 Mar 2016 17:39:50 +0000 (12:39 -0500)]
Allow passing a language into Status::getWikiText() etc.

This also corrects a bug in MessageCache::parse() where it takes a
language code string but the Parser expects a Language object in
ParserOptions.

Bug: T128809
Change-Id: I3508c9e515e505890b3c62bc4a0982aa2a313782

8 years agoCheck User::isSafeToLoad() in LanguageConverter
Brad Jorsch [Wed, 9 Mar 2016 19:30:31 +0000 (14:30 -0500)]
Check User::isSafeToLoad() in LanguageConverter

Ideally LanguageConverter shouldn't be relying on global state at all.
But as a first step let's make it not try to use the global state when
that global state isn't even there.

Bug: T127233
Change-Id: I391cef3ec211d648b078fc509e0139daa58eb875

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 9 Mar 2016 20:57:31 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifd102e2f148caf1caea83af03b8e42eff8ff72cc

8 years agoMerge "OutputPage::out() was removed"
jenkins-bot [Wed, 9 Mar 2016 19:08:57 +0000 (19:08 +0000)]
Merge "OutputPage::out() was removed"

8 years agoMerge "OutputPage::setAllowedModules() was removed"
jenkins-bot [Wed, 9 Mar 2016 19:08:53 +0000 (19:08 +0000)]
Merge "OutputPage::setAllowedModules() was removed"

8 years agoMerge "OutputPage::getHeadItems() was removed"
jenkins-bot [Wed, 9 Mar 2016 19:08:49 +0000 (19:08 +0000)]
Merge "OutputPage::getHeadItems() was removed"

8 years agoMerge "OutputPage::getScript() was removed"
jenkins-bot [Wed, 9 Mar 2016 19:07:53 +0000 (19:07 +0000)]
Merge "OutputPage::getScript() was removed"

8 years agoLog a backtrace with "sessions are supposed to be disabled" message
Brad Jorsch [Wed, 9 Mar 2016 17:00:06 +0000 (12:00 -0500)]
Log a backtrace with "sessions are supposed to be disabled" message

Bug: T127233
Change-Id: I27ca561ab5967cde270f2b665b51da687f0c081a

8 years agoMerge "phpunit: Abstract user-lang override in MediaWikiTestCase"
jenkins-bot [Wed, 9 Mar 2016 17:41:51 +0000 (17:41 +0000)]
Merge "phpunit: Abstract user-lang override in MediaWikiTestCase"

8 years agophpunit: Abstract user-lang override in MediaWikiTestCase
Timo Tijhof [Wed, 9 Mar 2016 16:47:58 +0000 (16:47 +0000)]
phpunit: Abstract user-lang override in MediaWikiTestCase

Removed redundant set up in these classes (same as their paren
class MediaWikiLangTestCase does already).
* BlockTest
* ExportTest
* MWTimestampTest
* TitlePermissionTest

Change-Id: I28d18cb797bb249981727b02dffce4f0d8682b02

8 years agoStubObject: Remove redundant _call() method in StubUserLang
Timo Tijhof [Wed, 9 Mar 2016 15:40:51 +0000 (15:40 +0000)]
StubObject: Remove redundant _call() method in StubUserLang

Already exists the same way in the base class.

Change-Id: If6c89cf42f11655ea45a1d6e1660f6e5e2593169

8 years agomediawiki.inspect: Expose total size in bytes from mw.inspect
Peter Hedenskog [Wed, 9 Mar 2016 09:03:03 +0000 (10:03 +0100)]
mediawiki.inspect: Expose total size in bytes from mw.inspect

To make it easier for the Performance inspector plugin lets expose
the total size in bytes from inspect, so it can be used to calculate
the total size and graph the data.

There's one drawback with the fix: the total size is
also included in the console log, adding one extra field when you
log the data as a table. The method is generic that logs the data
and I don't want to change that.

Bug: T129319
Change-Id: Ic7ccbe624f07443942974a71f8a0b3f94074bb55

8 years agoDon't quote assert expressions in DairikiDiff
Ori Livneh [Wed, 9 Mar 2016 01:58:36 +0000 (17:58 -0800)]
Don't quote assert expressions in DairikiDiff

Per HHVM issue 5128, it is not possible to use '$this' in string-literal
assert() expressions. We can either wait for this to be fixed (unlikely to
happen soon, since it involves deep interpreter internals), comment out or
remove the asserts, or simply unquote them, so that they are actual expressions
rather than strings. The downside to this is that assertions will always be
evaluated (but so what, they are extremely cheap), and that when an assertion
fail the error message will simply read 'assert(): Assertion failed in
/path/to/file on line XXX' as opposed to including the expression in the
output. Fair trade, IMO.

See: https://github.com/facebook/hhvm/issues/5128

Bug: T124163
Change-Id: Ib458b1b0c28f8d38e9df427196ae79814f6dc0c2

8 years agoHTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own
Bartosz Dziewoński [Wed, 2 Mar 2016 19:09:53 +0000 (20:09 +0100)]
HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own

Depends on I0e5c956b9358b510c8473b1cfe6465ea1b5c07ef in OOjs UI.

This mostly reverts dd04b310527c3ce69911789254939e9a2b627ada and parts
of e85bd04bcd26f9a05406cedf6ee0dcac0b54c435.

In addition to cleanup, it fixes bugs in HTMLFormFieldWithButton
(which did not add some attributes in OOUI mode) and HTMLMultiSelectField
(which did not do the mapping, losing some attributes in OOUI mode).

Change-Id: I0d1a5288e9edb73a0c3a8431feca9fcc67b72b6a

8 years agoOutputPage::out() was removed
Siebrand Mazeland [Tue, 8 Mar 2016 22:55:39 +0000 (23:55 +0100)]
OutputPage::out() was removed

Deprecated since 1.22. Six use remain in Gerrit extension
SemanticPageMaker, that's been unmaintained since MediaWiki 1.17. They
were not replaced.

Change-Id: I8d68657562f683a4933cc5321d5df04c80cdfc29

8 years agoOutputPage::setAllowedModules() was removed
Siebrand Mazeland [Tue, 8 Mar 2016 22:46:53 +0000 (23:46 +0100)]
OutputPage::setAllowedModules() was removed

Deprecated since 1.24. No uses in core or Gerrit extensions remaining.

Change-Id: I58af2d94f31a3d5eecc21dab2813d4f27789b511

8 years agoOutputPage::getHeadItems() was removed
Siebrand Mazeland [Tue, 8 Mar 2016 22:45:02 +0000 (23:45 +0100)]
OutputPage::getHeadItems() was removed

Deprecated since 1.24. No uses in core or extensions remaining.

Change-Id: Ic038a287dab00468b08f41f31b0c8aedffc03c64

8 years agoOutputPage::getScript() was removed
Siebrand Mazeland [Tue, 8 Mar 2016 22:41:17 +0000 (23:41 +0100)]
OutputPage::getScript() was removed

Deprecated since 1.24. One use remains in Gerrit extension
SemanticPageMaker, that's been unmaintained since MediaWiki 1.17. It was
not replaced.

Change-Id: I50afa8217e7bf1b47aef3951ef2ee7295d6db21e

8 years agoMerge "Minor update on login form on layout and buttons"
jenkins-bot [Tue, 8 Mar 2016 22:35:42 +0000 (22:35 +0000)]
Merge "Minor update on login form on layout and buttons"

8 years agoMerge "Deprecating: Consolidating `progressive` & `constructive` buttons"
jenkins-bot [Tue, 8 Mar 2016 22:35:38 +0000 (22:35 +0000)]
Merge "Deprecating: Consolidating `progressive` & `constructive` buttons"

8 years agoMerge "Update OOjs UI to v0.16.2"
jenkins-bot [Tue, 8 Mar 2016 22:18:53 +0000 (22:18 +0000)]
Merge "Update OOjs UI to v0.16.2"

8 years agoMerge "Remove deprecated Language::getLangObj()"
jenkins-bot [Tue, 8 Mar 2016 22:02:28 +0000 (22:02 +0000)]
Merge "Remove deprecated Language::getLangObj()"

8 years agoMerge "Remove deprecated Language::specialPage()"
jenkins-bot [Tue, 8 Mar 2016 22:02:23 +0000 (22:02 +0000)]
Merge "Remove deprecated Language::specialPage()"

8 years agoMerge "Remove deprecated Language::GetLanguageName()"
jenkins-bot [Tue, 8 Mar 2016 21:51:04 +0000 (21:51 +0000)]
Merge "Remove deprecated Language::GetLanguageName()"

8 years agoUpdate OOjs UI to v0.16.2
James D. Forrester [Tue, 8 Mar 2016 21:49:58 +0000 (13:49 -0800)]
Update OOjs UI to v0.16.2

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.16.2/History.md

Change-Id: I5c7402606bbc5ea1c20548b7eae657338b4ae151

8 years agoMerge "Remove deprecated Language::getTranslatedLanguageNames()"
jenkins-bot [Tue, 8 Mar 2016 21:47:15 +0000 (21:47 +0000)]
Merge "Remove deprecated Language::getTranslatedLanguageNames()"

8 years agoRemove deprecated Language::getLangObj()
Siebrand Mazeland [Mon, 7 Mar 2016 17:39:26 +0000 (18:39 +0100)]
Remove deprecated Language::getLangObj()

Was deprecated since 1.24. There were no uses in Gerrit extensions

Change-Id: I7ca08416d10fbba5222cb1a1fde75b697d354b09

8 years agoRemove deprecated Language::specialPage()
Siebrand Mazeland [Mon, 7 Mar 2016 17:37:27 +0000 (18:37 +0100)]
Remove deprecated Language::specialPage()

Was deprecated since 1.24. There were no uses in Gerrit extensions

Change-Id: If67456a62cb7d9688793d876508f0f168f3bb1ff

8 years agoRemove deprecated Language::GetLanguageName()
Siebrand Mazeland [Mon, 7 Mar 2016 17:35:46 +0000 (18:35 +0100)]
Remove deprecated Language::GetLanguageName()

Was deprecated since 1.20. Uses in Gerrit extensions have been replaced.

Change-Id: I623e82ec1d9ade4da05f2eae15afdf65aa04109b

8 years agoMerge "Remove deprecated Language::getLanguageNames()"
jenkins-bot [Tue, 8 Mar 2016 21:34:57 +0000 (21:34 +0000)]
Merge "Remove deprecated Language::getLanguageNames()"

8 years agoMerge "Use header_register_callback to avoid caching responses with Set-Cookie headers"
jenkins-bot [Tue, 8 Mar 2016 21:21:21 +0000 (21:21 +0000)]
Merge "Use header_register_callback to avoid caching responses with Set-Cookie headers"

8 years agoMerge "Hygiene: Add wrapHTML method"
jenkins-bot [Tue, 8 Mar 2016 21:13:17 +0000 (21:13 +0000)]
Merge "Hygiene: Add wrapHTML method"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 8 Mar 2016 21:01:34 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4d6429a915ca693c26bdce85c0fc70ffab7af876

8 years agoMerge "Remove use of "successful" in strings"
jenkins-bot [Tue, 8 Mar 2016 20:35:30 +0000 (20:35 +0000)]
Merge "Remove use of "successful" in strings"

8 years agoRemove deprecated Language::getTranslatedLanguageNames()
Siebrand Mazeland [Mon, 7 Mar 2016 17:30:21 +0000 (18:30 +0100)]
Remove deprecated Language::getTranslatedLanguageNames()

Was deprecated since 1.20. There were no uses in Gerrit extensions

Change-Id: I0b16c0f146ecbee81921b5823b32776414f6945c

8 years agoRemove deprecated Language::getLanguageNames()
Siebrand Mazeland [Mon, 7 Mar 2016 17:25:49 +0000 (18:25 +0100)]
Remove deprecated Language::getLanguageNames()

Was deprecated since 1.20. Uses in Gerrit extensions have been replaced.

Change-Id: I2011d3e209915ddbbafdbdfff0279ea7cc5b9125

8 years agoMerge "ChangesList: Add support for context source in ChangesList::flag()"
jenkins-bot [Tue, 8 Mar 2016 20:23:02 +0000 (20:23 +0000)]
Merge "ChangesList: Add support for context source in ChangesList::flag()"

8 years agoHygiene: Add wrapHTML method
jdlrobson [Sat, 5 Mar 2016 00:52:56 +0000 (16:52 -0800)]
Hygiene: Add wrapHTML method

Put the code that wraps the parsed output html
in a method to reduce size of prepareQuickTemplate function

This allows skins to redefine the function if they wish.

Change-Id: I8a9e732d0682af89112869a2b30f61f10f531219

8 years agoMerge "ChangesList: Use context language for LogPage::getName() message"
jenkins-bot [Tue, 8 Mar 2016 20:15:29 +0000 (20:15 +0000)]
Merge "ChangesList: Use context language for LogPage::getName() message"

8 years agoUse header_register_callback to avoid caching responses with Set-Cookie headers
Brad Jorsch [Tue, 8 Mar 2016 17:46:05 +0000 (12:46 -0500)]
Use header_register_callback to avoid caching responses with Set-Cookie headers

This change mirrors logic that has been in use on the Wikimedia
Foundation production cluster's Varnish cache system for over 2 years to
guard against accidentally caching backend responses which include
Set-Cookie headers.

Bug: T127993
Change-Id: Ic79cf6c959dd870d6458874a9bffe9e25aba4919

8 years agoMerge "initSiteStats.php: Make it obvious you need to use --update"
jenkins-bot [Tue, 8 Mar 2016 19:30:06 +0000 (19:30 +0000)]
Merge "initSiteStats.php: Make it obvious you need to use --update"

8 years agoMerge "DB: Correct argument documentation to match code."
jenkins-bot [Tue, 8 Mar 2016 19:19:19 +0000 (19:19 +0000)]
Merge "DB: Correct argument documentation to match code."

8 years agoMerge "Move EmailNotification::updateWatchlistTimestamp to WatchedItemStore"
jenkins-bot [Tue, 8 Mar 2016 19:19:12 +0000 (19:19 +0000)]
Merge "Move EmailNotification::updateWatchlistTimestamp to WatchedItemStore"

8 years agoinitSiteStats.php: Make it obvious you need to use --update
Kunal Mehta [Tue, 8 Mar 2016 19:11:06 +0000 (11:11 -0800)]
initSiteStats.php: Make it obvious you need to use --update

Otherwise people will run the script a few times and be totally confused
as to why their statistics aren't being saved. The wording is taken from
updateArticleCount.php, which has a similar parameter.

Change-Id: I802553120c1bf4d8f6234ccced5f19ecd5cd9b66

8 years agoMinor update on login form on layout and buttons
Volker E [Tue, 8 Mar 2016 02:18:23 +0000 (18:18 -0800)]
Minor update on login form on layout and buttons

Changing current `constructive` button to `progressive` as part of the
consolidation task T110555. Also bringing some minor layout improvements,
aligning values to CSS coding guidelines and cleaning up typos and
superflous (initial) style values.

Bug: T89860
Bug: T126307
Change-Id: I2cc642ddc78f1b436e47261568601be592fe1fa4
Depends-on: I095eddfe5ec2f1fbc81939b67ed467484e15092b

8 years agoMove EmailNotification::updateWatchlistTimestamp to WatchedItemStore
addshore [Fri, 5 Feb 2016 12:14:13 +0000 (13:14 +0100)]
Move EmailNotification::updateWatchlistTimestamp to WatchedItemStore

Flow is the only thing remaining that uses this deprecated method.

Change-Id: Iaa4e1e34cb3f2a91c163565fb0107c500e3852d7

8 years agoDB: Correct argument documentation to match code.
Jan Zerebecki [Tue, 8 Mar 2016 18:37:33 +0000 (19:37 +0100)]
DB: Correct argument documentation to match code.

Change-Id: I1cc3910932d8c4f04b1dbbc05ada88299c3ce10b

8 years agoReplace uses of join() by implode()
Siebrand Mazeland [Tue, 8 Mar 2016 08:13:12 +0000 (09:13 +0100)]
Replace uses of join() by implode()

All of core uses implode() consistently now.

Change-Id: Iba50898c64c43f356d1caf8869f484e90d9ff651

8 years agoMerge "Hooks do not have to return true any more, they can return null"
jenkins-bot [Tue, 8 Mar 2016 18:09:03 +0000 (18:09 +0000)]
Merge "Hooks do not have to return true any more, they can return null"

8 years agoMerge "Move WatchedItem logic to WatchedItemStore"
jenkins-bot [Tue, 8 Mar 2016 18:04:11 +0000 (18:04 +0000)]
Merge "Move WatchedItem logic to WatchedItemStore"

8 years agoMerge "Add WatchedItemIntegrationTest"
jenkins-bot [Tue, 8 Mar 2016 18:03:44 +0000 (18:03 +0000)]
Merge "Add WatchedItemIntegrationTest"

8 years agouser: Remove debug entries from User::isValidUserName() rejections
Timo Tijhof [Tue, 8 Mar 2016 17:36:53 +0000 (17:36 +0000)]
user: Remove debug entries from User::isValidUserName() rejections

This reverts commit a8b32e0e3c (r31561).

Change-Id: I4ca7548c9fde5853a3ac9b8612a0e9a3241fd16b

8 years agoChangesList: Add support for context source in ChangesList::flag()
Timo Tijhof [Tue, 8 Mar 2016 17:12:38 +0000 (17:12 +0000)]
ChangesList: Add support for context source in ChangesList::flag()

This way the messages are generated in the correct language instead
of relying on the user language from global context.

This should ideally become a non-static method at some point,
but currently there currently many out-of-class callers.

Change-Id: Ifb1756c1a3bddc717387ed66a58dedd4c1a7dab9

8 years agoMerge "Guard against allowing intermediate caching when cookies are present"
jenkins-bot [Tue, 8 Mar 2016 17:12:19 +0000 (17:12 +0000)]
Merge "Guard against allowing intermediate caching when cookies are present"

8 years agoChangesList: Use context language for LogPage::getName() message
Timo Tijhof [Tue, 8 Mar 2016 16:53:32 +0000 (16:53 +0000)]
ChangesList: Use context language for LogPage::getName() message

Was calling escaped() directly on a Message object which resulted
in a $wgLang lookup, thus ignoring the context language given to the
class constructor.

Change-Id: Ia8ce739178924299ca559088fc40a2b048d7ed72

8 years agoMerge "Use single quotes in API where possible"
jenkins-bot [Tue, 8 Mar 2016 17:03:24 +0000 (17:03 +0000)]
Merge "Use single quotes in API where possible"

8 years agoMerge "MemoizedCallable: Add test for memoized closure"
jenkins-bot [Tue, 8 Mar 2016 16:56:24 +0000 (16:56 +0000)]
Merge "MemoizedCallable: Add test for memoized closure"

8 years agoMerge "SpecialPageFactory: Update main RequestContext in addition to globals"
jenkins-bot [Tue, 8 Mar 2016 16:50:09 +0000 (16:50 +0000)]
Merge "SpecialPageFactory: Update main RequestContext in addition to globals"

8 years agoMemoizedCallable: Add test for memoized closure
Timo Tijhof [Wed, 2 Mar 2016 00:47:05 +0000 (00:47 +0000)]
MemoizedCallable: Add test for memoized closure

Follows-up da3443bfa2a.

It won't work across different requests due to use of uniqid()
internally (so we may want to use a HashBagOStuff for closure
instead to save memory in APC). But at least assert that it does
and is intended to work.

Change-Id: Id4b42e8717f62f733eee8fcc9a4ab6c0f5c1f2fe

8 years agoMerge "Declare functions with access modifiers"
jenkins-bot [Tue, 8 Mar 2016 16:38:13 +0000 (16:38 +0000)]
Merge "Declare functions with access modifiers"

8 years agoMerge "Explicitly declare ApiQueryImageInfo::getInfo() public"
jenkins-bot [Tue, 8 Mar 2016 16:38:09 +0000 (16:38 +0000)]
Merge "Explicitly declare ApiQueryImageInfo::getInfo() public"

8 years agoMerge "Remove deprecated methods in ApiQuery"
jenkins-bot [Tue, 8 Mar 2016 16:38:05 +0000 (16:38 +0000)]
Merge "Remove deprecated methods in ApiQuery"

8 years agoMerge "Explicitly declare ApiImport::getData() public"
jenkins-bot [Tue, 8 Mar 2016 16:38:00 +0000 (16:38 +0000)]
Merge "Explicitly declare ApiImport::getData() public"

8 years agoMerge "Explicitly declare ImportReporter::reportPage() and override public"
jenkins-bot [Tue, 8 Mar 2016 16:37:56 +0000 (16:37 +0000)]
Merge "Explicitly declare ImportReporter::reportPage() and override public"

8 years agoMerge "Explicitly declare ApiFormatXml::addXslt() protected"
jenkins-bot [Tue, 8 Mar 2016 16:37:51 +0000 (16:37 +0000)]
Merge "Explicitly declare ApiFormatXml::addXslt() protected"

8 years agoSpecialPageFactory: Update main RequestContext in addition to globals
Timo Tijhof [Fri, 4 Mar 2016 18:49:58 +0000 (18:49 +0000)]
SpecialPageFactory: Update main RequestContext in addition to globals

Change-Id: I5fd7bbf0fea0e6bd8b23b8be6d47017682a31d69

8 years agoUse single quotes in API where possible
Siebrand Mazeland [Tue, 8 Mar 2016 08:04:45 +0000 (09:04 +0100)]
Use single quotes in API where possible

Change-Id: I972e296f4820f78f5dfcecc27bc4912ca84a3178

8 years agoMerge "Explicitly declare ApiFormatBase::initPrinter public"
jenkins-bot [Tue, 8 Mar 2016 16:26:23 +0000 (16:26 +0000)]
Merge "Explicitly declare ApiFormatBase::initPrinter public"

8 years agoMerge "Call static functions statically in API"
jenkins-bot [Tue, 8 Mar 2016 16:24:14 +0000 (16:24 +0000)]
Merge "Call static functions statically in API"

8 years agoMerge "Use Elvis operator where possible in API"
jenkins-bot [Tue, 8 Mar 2016 16:24:10 +0000 (16:24 +0000)]
Merge "Use Elvis operator where possible in API"

8 years agoMerge "Remove unused local variables in API"
jenkins-bot [Tue, 8 Mar 2016 16:20:19 +0000 (16:20 +0000)]
Merge "Remove unused local variables in API"

8 years agoDeclare functions with access modifiers
Siebrand Mazeland [Tue, 8 Mar 2016 07:46:02 +0000 (08:46 +0100)]
Declare functions with access modifiers

Parents have this visibility.

Change-Id: Icb4d0a112def0ac02f9aa42723c81bc63c085450

8 years agoExplicitly declare ApiQueryImageInfo::getInfo() public
Siebrand Mazeland [Tue, 8 Mar 2016 07:43:57 +0000 (08:43 +0100)]
Explicitly declare ApiQueryImageInfo::getInfo() public

Used as such in core and TimedMediaHandler.

Change-Id: I0ec90d2cf9ae4cca31e93522e0f68e4d55a7bcfe

8 years agoRemove deprecated methods in ApiQuery
Siebrand Mazeland [Tue, 8 Mar 2016 07:40:18 +0000 (08:40 +0100)]
Remove deprecated methods in ApiQuery

No more uses found in core or Gerrit extensions for the following methods:

* ApiQuery::getGenerators() was removed (deprecated since 1.21).
* ApiQuery::getModuleType() was removed (deprecated since 1.21).
* ApiQuery::setGeneratorContinue() was removed (deprecated since 1.24).

Change-Id: I1d46adc9ecad598c7d7726a2243bba4f7a04531a

8 years agoExplicitly declare ApiImport::getData() public
Siebrand Mazeland [Tue, 8 Mar 2016 07:38:08 +0000 (08:38 +0100)]
Explicitly declare ApiImport::getData() public

Used as such in this file.

Change-Id: I52cae5763132b606f0e4b67f1359baee9fdad1c8

8 years agoExplicitly declare ImportReporter::reportPage() and override public
Siebrand Mazeland [Tue, 8 Mar 2016 07:33:38 +0000 (08:33 +0100)]
Explicitly declare ImportReporter::reportPage() and override public

Used as such in SpecialImport.php.

Change-Id: Ia8cb1f4b95f43a50ff7ddd9aa4cb3ffc90f916c8