lhc/web/wiklou.git
10 years agoMerge "Removed isQueueDeprioritized()"
jenkins-bot [Thu, 19 Dec 2013 22:32:33 +0000 (22:32 +0000)]
Merge "Removed isQueueDeprioritized()"

10 years agoRemoved isQueueDeprioritized()
Aaron Schulz [Thu, 19 Dec 2013 21:03:18 +0000 (13:03 -0800)]
Removed isQueueDeprioritized()

* This was just a hack for one job type that is not needed anymore
  as no new refreshLinks2 jobs are inserted

Change-Id: I533f1edbd6b6e67f57ce32a9113da3eec420dd08

10 years agoMerge "Fix TOC display for printing"
jenkins-bot [Thu, 19 Dec 2013 22:09:31 +0000 (22:09 +0000)]
Merge "Fix TOC display for printing"

10 years agoMerge "Added a MemoryFileBackend class and made MockFileBackend subclass it"
Aaron Schulz [Thu, 19 Dec 2013 21:14:39 +0000 (21:14 +0000)]
Merge "Added a MemoryFileBackend class and made MockFileBackend subclass it"

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

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

Change-Id: If3b1ab4e3702d687dad2a021c5c7e8f6f8867fbf

10 years agoMerge "Make executeReadyPeriodicTasks() notify the aggregator when jobs are released...
jenkins-bot [Thu, 19 Dec 2013 20:46:01 +0000 (20:46 +0000)]
Merge "Make executeReadyPeriodicTasks() notify the aggregator when jobs are released/recycled"

10 years agoAdded a MemoryFileBackend class and made MockFileBackend subclass it
Aaron Schulz [Thu, 19 Dec 2013 01:41:02 +0000 (17:41 -0800)]
Added a MemoryFileBackend class and made MockFileBackend subclass it

* This backend passes all filebackend and parser tests
* Fixed setupUploads() in parser tests to just use create() instead
  of using store() and having a race condition in the process
* Fixed 'use-filebackend=' for Parser tests

bug: 58094
Change-Id: Ib0c38183cb7f9f2325da98c8a8a1eb2b8e39a7aa

10 years agoMerge "Add mediawiki.ui.button to places in core using mw.ui"
jenkins-bot [Thu, 19 Dec 2013 20:33:28 +0000 (20:33 +0000)]
Merge "Add mediawiki.ui.button to places in core using mw.ui"

10 years agoMake executeReadyPeriodicTasks() notify the aggregator when jobs are released/recycled
Aaron Schulz [Thu, 19 Dec 2013 20:22:45 +0000 (12:22 -0800)]
Make executeReadyPeriodicTasks() notify the aggregator when jobs are released/recycled

Change-Id: I69459f9a9f37c1d1307a9c48c37cb6063a934fa5

10 years agoMerge "Special special page group for ExpandTemplates"
jenkins-bot [Thu, 19 Dec 2013 20:10:53 +0000 (20:10 +0000)]
Merge "Special special page group for ExpandTemplates"

10 years agoMerge "Updated location of zhtable in comment"
jenkins-bot [Thu, 19 Dec 2013 19:16:26 +0000 (19:16 +0000)]
Merge "Updated location of zhtable in comment"

10 years agoUpdated location of zhtable in comment
Petr Onderka [Thu, 19 Dec 2013 18:47:22 +0000 (19:47 +0100)]
Updated location of zhtable in comment

The directory was moved in I55e431974dd9dcbcb47eb9c3aa6fbf31c5a23125.

Change-Id: I239483e6cdf7d412be01ae8bd45978481c5dd518

10 years agoUser::loadFromRow takes a stdClass object, not an array
Kunal Mehta [Thu, 19 Dec 2013 18:25:33 +0000 (10:25 -0800)]
User::loadFromRow takes a stdClass object, not an array

Change-Id: I8e0a56c02d474884a946d35dbab44bb39179d791

10 years agoi18n: Make LogEventsList user language direction aware
Ebrahim Byagowi [Thu, 19 Dec 2013 14:20:24 +0000 (14:20 +0000)]
i18n: Make LogEventsList user language direction aware

Bug: 58685
Change-Id: I9627689febb296dfeed588a52bfd30d8a9a46cda

10 years agoFix formatting in release notes
Bartosz Dziewoński [Thu, 19 Dec 2013 17:32:40 +0000 (18:32 +0100)]
Fix formatting in release notes

Missing full stop, missing space.

Change-Id: I4e68122c0f597e1f07d4592c8341d09ddf1f506d

10 years agoIntegrate feed-specific setup into general setup
Patrick Westerhoff [Thu, 19 Dec 2013 17:16:49 +0000 (18:16 +0100)]
Integrate feed-specific setup into general setup

The special page setup was previously handled separately for feed output
to restrict the request arguments to a small subset of possible filter
options. This behavior was removed in 52b59f0685.

This makes the main difference between the normal and the feed setup that
custom filter options were not loaded for feed output. Support for custom
filter options was introduced with fcbdd58326 but did not touch the feed
setup, preventing filters from being initialized when requesting a feed
(see bug 57201).

After adding support for custom filters to the feed setup, the only
remaining difference is a different default limit, and the support for
subpage syntax for non-feed output.

This commit merges the feed setup with the standard setup.

Furthermore, in `SpecialRecentchangeslinked`, the extra argument parsing
was made also redundant with 52b59f0685.

Bug: 57201
Change-Id: Ia8ba28efb96da9df5d7252278d46ff88a143368c

10 years agoSpecial special page group for ExpandTemplates
Siebrand Mazeland [Thu, 19 Dec 2013 15:43:12 +0000 (16:43 +0100)]
Special special page group for ExpandTemplates

Change-Id: I9447a65a6cbb5dd5d94212c82598c2fde0f7d92e

10 years agoMerge "Fix round-off error in Vector's collapsibleTabs.js"
jenkins-bot [Thu, 19 Dec 2013 15:40:14 +0000 (15:40 +0000)]
Merge "Fix round-off error in Vector's collapsibleTabs.js"

10 years agoFix round-off error in Vector's collapsibleTabs.js
Ori Livneh [Thu, 19 Dec 2013 07:14:10 +0000 (23:14 -0800)]
Fix round-off error in Vector's collapsibleTabs.js

Values returned by jQuery's .width() are rounded off, whereas offset values
computed with .offset() are not. As a result, if the window is sized just
right, collapsibleTabs.js will decide it has enough room to expand a tab when
it really doesn't. It will then detect the tab overlap caused by squeezing in
an additional tab and collapse it. It gets stuck in an infinite loop doing
that.

We could replace usage of $(el).width() with el.getBoundingClientRect().width
and thereby make the width calculations precise, but I noticed that jQuery is
nervous enough about the availability of getBoundingClientRect that it includes
a check to make sure it is not undefined. Rather than run the risk of a
ReferenceError, we can simply require an additional extra pixel of space before
we decide to expand anything.

Bug: 58682
Change-Id: Ib2096894619b8343735de482ee8bfa20a7cd0f48

10 years agoCorrect patch filenames in MysqlUpdater
Kevin Israel [Thu, 19 Dec 2013 05:36:37 +0000 (00:36 -0500)]
Correct patch filenames in MysqlUpdater

Follows-up 65a304c44451.

Change-Id: I5bf550721d3b36b7075896dc920fceb6fd58590a

10 years agoAdd index on logging.log_user_text
Jackmcbarn [Mon, 9 Dec 2013 21:11:06 +0000 (16:11 -0500)]
Add index on logging.log_user_text

Fixing bug #54404 requires querying against logging.log_user_text, which
is currently unindexed. Add an index, to prevent performance from being
adversely affected by the fix.

Bug: 54432
Change-Id: I6b2af65c75bbee57377cb1ec2e75ea41a5091f80

10 years agoAdd mediawiki.ui.button to places in core using mw.ui
Matthew Flaschen [Thu, 19 Dec 2013 01:23:17 +0000 (20:23 -0500)]
Add mediawiki.ui.button to places in core using mw.ui

All of these also use other mw.ui features (e.g. mw-ui-vform,
mw-ui-input, mw-ui-checkbox-label, etc.), so they can't only depend
on mediawiki.ui.button.

Change-Id: I6906533753185f7de42552cff38a86fb0171d1d8

10 years agoMerge "Add 'mediawiki.ui.button' CSS module"
Bartosz Dziewoński [Wed, 18 Dec 2013 22:41:58 +0000 (22:41 +0000)]
Merge "Add 'mediawiki.ui.button' CSS module"

10 years agoMerge "Add support for skins to set attributes of <html> element."
Bartosz Dziewoński [Wed, 18 Dec 2013 22:41:41 +0000 (22:41 +0000)]
Merge "Add support for skins to set attributes of <html> element."

10 years agoChange location of period in img-lang-info
Brian Wolff [Wed, 18 Dec 2013 22:08:20 +0000 (15:08 -0700)]
Change location of period in img-lang-info

Per https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Img-lang-info/cy/reply_(3)

Change-Id: I81441e10083a610464380a009fa467bdd5c40cc0

10 years agoAdd 'mediawiki.ui.button' CSS module
kaldari [Tue, 3 Dec 2013 19:12:32 +0000 (11:12 -0800)]
Add 'mediawiki.ui.button' CSS module

This splits the button styling out from mediawiki.ui into a
separate module.

This is an alternative to https://gerrit.wikimedia.org/r/#/c/87296/

This migration will be implemented in 3 steps, of which this is the
first:
1. Add new mediawiki.ui.button module to core
2. Add mediawiki.ui.button dependancy to all extensions and core
   features that currently use mediawiki.ui (and have buttons)
3. Remove button styles from mediawiki.ui

Change-Id: Ia375d848df15afe6ddc3f3f19e43249d6c0706f0

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 18 Dec 2013 20:31:37 +0000 (20:31 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I5986f593323e24a9f86a0f545afab11ce799727b

10 years agoMerge "Rename SpecialRecentchangeslinked class to SpecialRecentChangesLinked"
jenkins-bot [Wed, 18 Dec 2013 20:05:42 +0000 (20:05 +0000)]
Merge "Rename SpecialRecentchangeslinked class to SpecialRecentChangesLinked"

10 years agoRename SpecialRecentchangeslinked class to SpecialRecentChangesLinked
Bartosz Dziewoński [Wed, 18 Dec 2013 16:02:33 +0000 (17:02 +0100)]
Rename SpecialRecentchangeslinked class to SpecialRecentChangesLinked

For consistency with SpecialRecentChanges.

This introduces no incompatibilities as PHP classes are case-insensitive.

Change-Id: I5855074deed52fd7492f033c8a8fced8af647602

10 years agoMerge "jpegmeta: Add links to source version and improve documentation"
jenkins-bot [Wed, 18 Dec 2013 19:59:18 +0000 (19:59 +0000)]
Merge "jpegmeta: Add links to source version and improve documentation"

10 years agoMerge "Make legend on Special:RecentChanges and Special:Watchlist collapsible"
jenkins-bot [Wed, 18 Dec 2013 19:29:58 +0000 (19:29 +0000)]
Merge "Make legend on Special:RecentChanges and Special:Watchlist collapsible"

10 years agoAdd support for skins to set attributes of <html> element.
dr0ptp4kt [Wed, 18 Dec 2013 18:34:57 +0000 (10:34 -0800)]
Add support for skins to set attributes of <html> element.

* Useful for device/profile-specific stuff (e.g., manifests)

Change-Id: I65f4d3454ae52a25fe4c6e9f2119129425b3de7a

10 years agoFixed undefined variable errors that made tests fail
Aaron Schulz [Wed, 18 Dec 2013 18:36:22 +0000 (10:36 -0800)]
Fixed undefined variable errors that made tests fail

Change-Id: Ic004e0d8d8efe3e4b313b737479b8098aa0048bc

10 years agoMake legend on Special:RecentChanges and Special:Watchlist collapsible
Bartosz Dziewoński [Fri, 13 Dec 2013 20:56:02 +0000 (21:56 +0100)]
Make legend on Special:RecentChanges and Special:Watchlist collapsible

Some of the code added here is duplicated, redundant or would be
better off placed somewhere else. I know about this, but this is not
the time to fix that (and nobody would review such patches anyway…).

Bug: 52005
Change-Id: I02f2ced42f33649b6c972d35a4739372ca265e10

10 years agoMerge "API: allow disabling TOC in action=parse"
jenkins-bot [Wed, 18 Dec 2013 14:52:19 +0000 (14:52 +0000)]
Merge "API: allow disabling TOC in action=parse"

10 years agoDon't rely on array() == null
Kunal Mehta [Wed, 18 Dec 2013 02:49:34 +0000 (18:49 -0800)]
Don't rely on array() == null

Just use === null instead.

Change-Id: I6adf066214ad5bf9ae508d190b4e3e3fd92e4736

10 years agoRemove "@todo Do not release 1.19 with this."
Kunal Mehta [Wed, 18 Dec 2013 02:40:08 +0000 (18:40 -0800)]
Remove "@todo Do not release 1.19 with this."

It's a bit too late to do that

Change-Id: Ibe38b8179367d1a78472b3b967b3361f6563e7c1

10 years agoFix spacing
Kunal Mehta [Wed, 18 Dec 2013 05:19:31 +0000 (21:19 -0800)]
Fix spacing

Change-Id: If18b39048df108471f33fbfae2863f2ee24e19e7

10 years agoMerge "Make SVG language selector "use default lang" actually work"
jenkins-bot [Wed, 18 Dec 2013 00:13:09 +0000 (00:13 +0000)]
Merge "Make SVG language selector "use default lang" actually work"

10 years agoMerge "Add raw HTML output functionality"
jenkins-bot [Wed, 18 Dec 2013 00:06:18 +0000 (00:06 +0000)]
Merge "Add raw HTML output functionality"

10 years agoMake SVG language selector "use default lang" actually work
Brian Wolff [Sat, 14 Dec 2013 18:48:46 +0000 (11:48 -0700)]
Make SVG language selector "use default lang" actually work

Also have ImagePage check that the given language is actually
valid, before trying to transform with that language.

Change-Id: I62b8035b70f5cb3388f4c2a844f3bc1c7c92d01e

10 years agoFixed error in LocalRepo::findFiles()
Aaron Schulz [Tue, 17 Dec 2013 21:09:21 +0000 (13:09 -0800)]
Fixed error in LocalRepo::findFiles()

* This occured if the client wiki did not capitalize, and the
  repo did, and a file was searched under the un-capitized name.

bug: 58587
Change-Id: I657c96c6d06af12866c71df194e18feb9ad53bd9

10 years agoMerge "runbJobs: rm outdated options in comments"
jenkins-bot [Tue, 17 Dec 2013 23:46:13 +0000 (23:46 +0000)]
Merge "runbJobs: rm outdated options in comments"

10 years agoMerge "Fix fatal in LocalRepo::findFiles()"
jenkins-bot [Tue, 17 Dec 2013 23:42:18 +0000 (23:42 +0000)]
Merge "Fix fatal in LocalRepo::findFiles()"

10 years agoError handling tweaks in JobQueueFederated
Aaron Schulz [Fri, 8 Nov 2013 21:51:37 +0000 (13:51 -0800)]
Error handling tweaks in JobQueueFederated

* Throw errors in more cases when all partitions cannot be reached

Change-Id: I86ba1076430be8e4be0606294c370fadb0c43d63

10 years agoMerge "Added streamFile() unit tests"
jenkins-bot [Tue, 17 Dec 2013 22:39:04 +0000 (22:39 +0000)]
Merge "Added streamFile() unit tests"

10 years agorunbJobs: rm outdated options in comments
Antoine Musso [Tue, 17 Dec 2013 22:32:25 +0000 (23:32 +0100)]
runbJobs: rm outdated options in comments

We had a comment at the top of runJobs.php listing potential options to
use. That unsurprisingly ended up being outdated. Instead folks should
either:

* page down to the constructor to have the exhaustive list of options
* RTFM by invoking the script with --help

Change-Id: Ic87574b26145376bb9926894a7c35f9f0622a3e9

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 agoAdd raw HTML output functionality
theopolisme [Tue, 17 Dec 2013 12:11:49 +0000 (06:11 -0600)]
Add raw HTML output functionality

A new checkbox labeled "Show raw HTML" at
Special:ExpandTemplates will display the
raw HTML output in a textarea when checked.

Bug: 56694
Change-Id: If7895d2f9a257d8dd753a58cdb26da8a66aceb29

10 years agoAdded streamFile() unit tests
Aaron Schulz [Tue, 17 Dec 2013 08:06:14 +0000 (00:06 -0800)]
Added streamFile() unit tests

Change-Id: I2ef5680829048ab4fcc0a9f7ff9064d016800217

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 agoFix fatal in LocalRepo::findFiles()
Reedy [Tue, 17 Dec 2013 19:47:58 +0000 (19:47 +0000)]
Fix fatal in LocalRepo::findFiles()

Bug: 58587
Change-Id: I12513b40453573124e838d54a72a2f9a2d3de338

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 agojpegmeta: Add links to source version and improve documentation
Timo Tijhof [Fri, 13 Dec 2013 18:36:37 +0000 (19:36 +0100)]
jpegmeta: Add links to source version and improve documentation

* The closure added when this lib was imported included a jQuery
  reference, which is unnecessary.
* Remove "Starts here" and "Ends here" comments.
* Resolve the "no clue" comment.

Change-Id: Ia4b66be455e28981832a4bdd8e7d3cb290d94d54

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