lhc/web/wiklou.git
8 years agoUpdate OOjs UI to v0.11.1
James D. Forrester [Tue, 5 May 2015 00:48:51 +0000 (17:48 -0700)]
Update OOjs UI to v0.11.1

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

Change-Id: I8774390ed8393801212f2270a786984687794aeb

8 years agoMerge "Allow QueryPage subclasses to use a different "no results" message than "speci...
jenkins-bot [Mon, 4 May 2015 21:43:41 +0000 (21:43 +0000)]
Merge "Allow QueryPage subclasses to use a different "no results" message than "specialpage-empty""

8 years agoMerge "Underscores etc. aren't valid in HTML IDs, so escape them properly"
jenkins-bot [Mon, 4 May 2015 20:12:48 +0000 (20:12 +0000)]
Merge "Underscores etc. aren't valid in HTML IDs, so escape them properly"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 4 May 2015 19:59:35 +0000 (19:59 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 4 May 2015 19:56:27 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id3883777c5d3b015269e56d56f634f8f281ff65a

8 years agoMerge "Make $wgDBerrorLogTZ actually default to $wgLocaltimezone"
jenkins-bot [Mon, 4 May 2015 19:54:11 +0000 (19:54 +0000)]
Merge "Make $wgDBerrorLogTZ actually default to $wgLocaltimezone"

8 years agoUnderscores etc. aren't valid in HTML IDs, so escape them properly
Jack Phoenix [Mon, 4 May 2015 00:10:06 +0000 (03:10 +0300)]
Underscores etc. aren't valid in HTML IDs, so escape them properly

This was an issue where a skin's/extension's name would contain spaces,
i.e. "Cologne Blue", "Renameuser for CentralAuth". Such a name would be
passed as-is to the HTML ID, but spaces aren't valid in IDs, and this
would in turn lead to HTML validation issues. Currently the English
Wikipedia's Special:Version page has 26 validation issues and this patch
fixes the supermajority of them.

Change-Id: Ia197b0208fa2abfebbea1cb23f08822db2938162

8 years agoMerge "registration: Add support for $wgParserTestFiles"
jenkins-bot [Mon, 4 May 2015 19:33:55 +0000 (19:33 +0000)]
Merge "registration: Add support for $wgParserTestFiles"

8 years agoMerge "registration: Support $wgMediaHandlers in ExtensionProcessor"
jenkins-bot [Mon, 4 May 2015 19:20:26 +0000 (19:20 +0000)]
Merge "registration: Support $wgMediaHandlers in ExtensionProcessor"

8 years agoMerge "mw.track: Implement trackUnsubscribe"
jenkins-bot [Mon, 4 May 2015 18:38:59 +0000 (18:38 +0000)]
Merge "mw.track: Implement trackUnsubscribe"

8 years agoMerge "Made wl_notificationtimestamp updates able to use queues"
jenkins-bot [Mon, 4 May 2015 18:35:45 +0000 (18:35 +0000)]
Merge "Made wl_notificationtimestamp updates able to use queues"

8 years agoMerge "registration: Throw more obvious error when a file doesn't exist"
jenkins-bot [Mon, 4 May 2015 18:01:13 +0000 (18:01 +0000)]
Merge "registration: Throw more obvious error when a file doesn't exist"

8 years agoMerge "Provide detailed information about invalid titles"
jenkins-bot [Mon, 4 May 2015 17:26:03 +0000 (17:26 +0000)]
Merge "Provide detailed information about invalid titles"

8 years agoregistration: Throw more obvious error when a file doesn't exist
Kunal Mehta [Mon, 4 May 2015 17:13:18 +0000 (10:13 -0700)]
registration: Throw more obvious error when a file doesn't exist

Previously it was saying the file that didn't exist wasn't valid JSON,
which was confusing.

Change-Id: I8381295ffcaba4e0dbfe9b93bdad80f86c119129

8 years agoMerge "Update getHelpUrls() for reworked mw.org API pages"
jenkins-bot [Mon, 4 May 2015 13:56:21 +0000 (13:56 +0000)]
Merge "Update getHelpUrls() for reworked mw.org API pages"

9 years agoMerge "Add new languages to 1.25 release notes and Names.php"
jenkins-bot [Mon, 4 May 2015 10:17:45 +0000 (10:17 +0000)]
Merge "Add new languages to 1.25 release notes and Names.php"

9 years agoAdd new languages to 1.25 release notes and Names.php
Federico Leva [Mon, 4 May 2015 09:54:48 +0000 (11:54 +0200)]
Add new languages to 1.25 release notes and Names.php

Change-Id: I37412c27c8fbc3354e78a544ac106230583b9e2e

9 years agoRemove invalid language code "bh" (alias of "bho")
Federico Leva [Mon, 2 Mar 2015 10:00:28 +0000 (11:00 +0100)]
Remove invalid language code "bh" (alias of "bho")

Depends on c19cf0e2d53aa4ad6e401202960501a0df876d8e

Bug: T91240
Change-Id: Ic43aa17d180213df2115f771e433fb9e0eb1e8ca

9 years agoUpdate getHelpUrls() for reworked mw.org API pages
RobinHood70 [Tue, 7 Apr 2015 09:55:31 +0000 (02:55 -0700)]
Update getHelpUrls() for reworked mw.org API pages

Community members restructured the mediawiki.org API pages, e.g.
the meta allmessages query submodule is no longer in the catch-all
https://www.mediawiki.org/wiki/API:Meta?oldid=1408361#allmessages_.2F_am
but its own https://www.mediawiki.org/wiki/API:Allmessages

The links in the generated API help, e.g.
https://www.mediawiki.org/wiki/Special:ApiHelp/query+allmessages,  are no
correct. They're not 404s but they don't take you directly to the
relevant page.

This patch set fixes the getHelpUrls() URLs (and does nothing else).
I tested them all.

Thanks RobinHood70!

Change-Id: Icea94abdd22d1ad468172642a21641e7c5ce2046

9 years agoMerge "Fix name of Tunisian Arabic language in Latin script"
jenkins-bot [Mon, 4 May 2015 06:02:15 +0000 (06:02 +0000)]
Merge "Fix name of Tunisian Arabic language in Latin script"

9 years agoMerge "Add unit tests for all LogFormatters"
jenkins-bot [Sun, 3 May 2015 22:12:55 +0000 (22:12 +0000)]
Merge "Add unit tests for all LogFormatters"

9 years agoDon't ignore content model for default message texts
Alex Monk [Wed, 8 Apr 2015 16:19:55 +0000 (17:19 +0100)]
Don't ignore content model for default message texts

When an extension decides to change the content model of one of its messages
using ContentHandlerDefaultModelFor, respect that despite the page not
existing.

Bug: T92899
Change-Id: I302d7915bb7b0c768e7130fac195ee0bac5a5101

9 years agoAdd unit tests for all LogFormatters
umherirrender [Thu, 9 Apr 2015 09:09:36 +0000 (11:09 +0200)]
Add unit tests for all LogFormatters

Test the LogFormatter by passing old and new database rows to it.
The text shown on Special:Log and the api result returned by
list=logevents is tested.

Change-Id: Icfcba506f4fa3010cdaf973aa2df23b6e92c25e4

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 3 May 2015 19:15:48 +0000 (21:15 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie5b88f7a118de5f7811df486635111531b199b77

9 years agoMerge "Fixed some IDE warnings in ChangeTags"
jenkins-bot [Sun, 3 May 2015 12:12:27 +0000 (12:12 +0000)]
Merge "Fixed some IDE warnings in ChangeTags"

9 years agoregistration: Add support for $wgParserTestFiles
Kunal Mehta [Sun, 3 May 2015 06:02:22 +0000 (23:02 -0700)]
registration: Add support for $wgParserTestFiles

Bug: T97921
Change-Id: I9a736a4c0ff739c4acf742b8f17792544851b28e

9 years agoregistration: Support $wgMediaHandlers in ExtensionProcessor
Kunal Mehta [Sun, 3 May 2015 02:38:29 +0000 (19:38 -0700)]
registration: Support $wgMediaHandlers in ExtensionProcessor

Bug: T97908
Change-Id: I3bea9273f956d93aebc5176b83d375c574715382

9 years agoFixed some IDE warnings in ChangeTags
This, that and the other [Sun, 3 May 2015 03:28:55 +0000 (13:28 +1000)]
Fixed some IDE warnings in ChangeTags

Change-Id: Ie7af687e543756988618be21a464f43ad03052d5

9 years agoAllow QueryPage subclasses to use a different "no results" message than "specialpage...
Jack Phoenix [Wed, 29 Apr 2015 00:16:38 +0000 (03:16 +0300)]
Allow QueryPage subclasses to use a different "no results" message than "specialpage-empty"

Child classes wishing to show a different message, such as wikiHow's
NewArticleBoost extension, need to override showEmptyText() to display
their custom message via the appropriate OutputPage method(s).

Change-Id: If488e2c81b225eb651e52bcca0fea08b8e685286

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 2 May 2015 19:39:41 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6d47a79e8418d6ddbfdb501a1cd82ff680ebd851

9 years agoMerge "Add test for IRC line for legacy type block/block"
jenkins-bot [Sat, 2 May 2015 15:57:08 +0000 (15:57 +0000)]
Merge "Add test for IRC line for legacy type block/block"

9 years agoMerge "convertExtensionToRegistration.php: Ignore i18n shims"
jenkins-bot [Sat, 2 May 2015 05:00:42 +0000 (05:00 +0000)]
Merge "convertExtensionToRegistration.php: Ignore i18n shims"

9 years agoMerge "generateJsonI18n.php: Remove features that should no longer be needed"
jenkins-bot [Sat, 2 May 2015 04:53:11 +0000 (04:53 +0000)]
Merge "generateJsonI18n.php: Remove features that should no longer be needed"

9 years agoMerge "Follow-up ee320648fd1: output mw-content-{ltr,rtl} unconditionally"
jenkins-bot [Sat, 2 May 2015 01:55:34 +0000 (01:55 +0000)]
Merge "Follow-up ee320648fd1: output mw-content-{ltr,rtl} unconditionally"

9 years agoMerge "HTMLForm: Add wfDeprecated to isVForm"
jenkins-bot [Sat, 2 May 2015 00:57:14 +0000 (00:57 +0000)]
Merge "HTMLForm: Add wfDeprecated to isVForm"

9 years agoRemoved DjVu pageCount() check and let it surface in the shell command
Aaron Schulz [Fri, 1 May 2015 23:38:04 +0000 (16:38 -0700)]
Removed DjVu pageCount() check and let it surface in the shell command

* This avoids loading the bloated metadata field

Bug: T96360
Change-Id: I2f1b59e81829d5752857816536688cd596b65edf

9 years agobuild: Bump various devDependencies
James D. Forrester [Fri, 1 May 2015 22:37:14 +0000 (15:37 -0700)]
build: Bump various devDependencies

grunt-contrib-jshint:  0.11.0 -> 0.11.2
grunt-jscs:            1.5.0  -> 1.8.0
karma-chrome-launcher: 0.1.7  -> 0.1.8
qunitjs:               1.17.1 -> 1.18.0

Some trivial indentation and line-spacing changes to make this pass jscs.

Change-Id: Ieeb6dbcd3e6d9f6f0fb9865d356da462b9b0499b

9 years agoHTMLForm: Add wfDeprecated to isVForm
Bartosz Dziewoński [Fri, 1 May 2015 19:52:17 +0000 (21:52 +0200)]
HTMLForm: Add wfDeprecated to isVForm

Change-Id: Idd8eb9cf63794c5a71439c130ad28564e6d3e750

9 years agoFollow-up ee320648fd1: output mw-content-{ltr,rtl} unconditionally
Roan Kattouw [Fri, 1 May 2015 21:59:17 +0000 (14:59 -0700)]
Follow-up ee320648fd1: output mw-content-{ltr,rtl} unconditionally

So much CSS relies on .mw-content-{ltr,rtl} now for directionality
things that we should just have it everywhere.

Bug: T97744
Change-Id: I0c0466023bc3b88d58f7067c3226f2dbdd1488ed

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 1 May 2015 19:38:11 +0000 (19:38 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Revert "Use CSS columns instead of tables in Special:SpecialPages""
jenkins-bot [Fri, 1 May 2015 19:37:34 +0000 (19:37 +0000)]
Merge "Revert "Use CSS columns instead of tables in Special:SpecialPages""

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 1 May 2015 19:28:31 +0000 (21:28 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I3a92cfdcbf771a4aa30389ee11b69b9a4f6f8f73

9 years agoAdd test for IRC line for legacy type block/block
umherirrender [Thu, 9 Apr 2015 09:32:56 +0000 (11:32 +0200)]
Add test for IRC line for legacy type block/block

Follow-Up: I08aea8399ce766e98c1a76e237169f220c6cc751
Change-Id: I8626e8ce28104d20a6145d47e647ef0ad86b3523

9 years agoRevert "Use CSS columns instead of tables in Special:SpecialPages"
Glaisher [Fri, 1 May 2015 17:59:33 +0000 (17:59 +0000)]
Revert "Use CSS columns instead of tables in Special:SpecialPages"

This reverts commit dc40debaea2effd46a43c88d0fc925b3550c829b.

Bug: T97026
Change-Id: I1475a61037e6ece536b2b4e26f4d606d5d3828f7

9 years agoUse more specific and less ambiguous ids for line numbers in diffs
Ricordisamoa [Thu, 19 Mar 2015 08:56:19 +0000 (09:56 +0100)]
Use more specific and less ambiguous ids for line numbers in diffs

Per Krinkle's comment on I068c7f6167e20f42cb675335554b98ff1fb83e16

Bug: T63486
Change-Id: I6b334e838b5beaf14ae066c61ddc50d7a4958b97

9 years agoMerge "Add missing newline in apihelp-upload-description list"
jenkins-bot [Fri, 1 May 2015 15:58:09 +0000 (15:58 +0000)]
Merge "Add missing newline in apihelp-upload-description list"

9 years agoMerge "ChangeTags: Don't show UI when no editable tags exist"
jenkins-bot [Fri, 1 May 2015 15:30:22 +0000 (15:30 +0000)]
Merge "ChangeTags: Don't show UI when no editable tags exist"

9 years agoChangeTags: Don't show UI when no editable tags exist
Brad Jorsch [Fri, 1 May 2015 15:05:32 +0000 (11:05 -0400)]
ChangeTags: Don't show UI when no editable tags exist

Bug: T97773
Change-Id: I001f15ca6f58bc9318eed84aa8ace2bddcb1b315

9 years agoAdd missing newline in apihelp-upload-description list
Federico Leva [Fri, 1 May 2015 11:49:07 +0000 (13:49 +0200)]
Add missing newline in apihelp-upload-description list

Spotted by XZise.

Change-Id: Id317c4e849d937153abc5dabd168fc45847994eb

9 years agoconvertExtensionToRegistration.php: Ignore i18n shims
Kevin Israel [Fri, 1 May 2015 03:32:44 +0000 (23:32 -0400)]
convertExtensionToRegistration.php: Ignore i18n shims

Bug: T91350
Change-Id: I18b35db14a13f58909bce83fec11bf9e8f10672d

9 years agoProvide detailed information about invalid titles
Bartosz Dziewoński [Sat, 25 Apr 2015 22:43:37 +0000 (00:43 +0200)]
Provide detailed information about invalid titles

includes/Title.php
* The private method Title::secureAndSplit() now throws a
  MalformedTitleException instead of returning false on invalid
  titles.
* Added Title::newFromTextThrow(), which behaves exactly like
  Title::newFromText() but throws MalformedTitleException instead of
  returning null on invalid titles.

includes/title/MediaWikiTitleCodec.php
* Provide more information with the thrown MalformedTitleExceptions.

includes/MediaWiki.php
* Use the new Title::newFromTextThrow() to get detailed error
  information, display it.

Change-Id: I4da8ecb457a77473e32d745ba48ab8505b35e45f

9 years agoMerge "Also add mw-content-{ltr,rtl} on page views for missing pages"
jenkins-bot [Thu, 30 Apr 2015 21:10:30 +0000 (21:10 +0000)]
Merge "Also add mw-content-{ltr,rtl} on page views for missing pages"

9 years agoAlso add mw-content-{ltr,rtl} on page views for missing pages
Roan Kattouw [Thu, 30 Apr 2015 20:33:29 +0000 (13:33 -0700)]
Also add mw-content-{ltr,rtl} on page views for missing pages

So that noarticletext or whatever might render there has
this class applied.

For some reason, this was explicitly bypassed for missing pages,
but there was no explanation why.

Bug: T97624
Change-Id: Ib790498ff102f9d9b01aac3b8551c4829f964b7d

9 years agogenerateJsonI18n.php: Remove features that should no longer be needed
Kevin Israel [Thu, 30 Apr 2015 19:45:17 +0000 (15:45 -0400)]
generateJsonI18n.php: Remove features that should no longer be needed

* Removed --langcode, which was for converting core messages files.
* Do not generate backward compatibility shims. MediaWiki 1.19 will
  enter end-of-life status in May 2015.
* Print a special error message for shims, which is different from
  the one that used to refer to --langcode.
* Removed extra newlines from error messages.

Change-Id: Ic8498fbdd7c2bd6e30ddbd96da85b2b8b23d706b

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 30 Apr 2015 19:43:24 +0000 (21:43 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I39cb3b69ddb8e81059eedaaeced4f4f2bc44ed66

9 years agoMerge "SearchHighlighter: Stop checking for existence of "wfCite" function"
jenkins-bot [Thu, 30 Apr 2015 18:36:29 +0000 (18:36 +0000)]
Merge "SearchHighlighter: Stop checking for existence of "wfCite" function"

9 years agoSearchHighlighter: Stop checking for existence of "wfCite" function
Kunal Mehta [Thu, 30 Apr 2015 18:25:01 +0000 (11:25 -0700)]
SearchHighlighter: Stop checking for existence of "wfCite" function

…and instead look for the Cite class. Not really any better, but
it will let us eliminate the "wfCite" global function.

Change-Id: Icdf82cb9771e6ae9bcaa6a02629b1b11f840a5c6

9 years agoMerge "Increase parity between api search and on-wiki search"
jenkins-bot [Thu, 30 Apr 2015 17:08:25 +0000 (17:08 +0000)]
Merge "Increase parity between api search and on-wiki search"

9 years agoMerge "Documentation for SpecialSearch.mPrefix"
jenkins-bot [Thu, 30 Apr 2015 16:48:44 +0000 (16:48 +0000)]
Merge "Documentation for SpecialSearch.mPrefix"

9 years agoDocumentation for SpecialSearch.mPrefix
Nik Everett [Thu, 30 Apr 2015 16:36:51 +0000 (12:36 -0400)]
Documentation for SpecialSearch.mPrefix

Change-Id: Ica3223ac231e837a4858853be06dea8c7b1edb4d

9 years agoPreferences: Use case-insensitive comparison for skin names
Bartosz Dziewoński [Mon, 27 Apr 2015 21:44:05 +0000 (23:44 +0200)]
Preferences: Use case-insensitive comparison for skin names

They are treated case-insensitively everywhere else.

Change-Id: I2561150aca9d88ad67ef359143f06d0ee90ab52e

9 years agoIncrease parity between api search and on-wiki search
Erik Bernhardson [Wed, 29 Apr 2015 20:42:03 +0000 (13:42 -0700)]
Increase parity between api search and on-wiki search

The on wiki search indicates more information than is currently
available by api.  Adds two more props to improve parity:

* categorysnippet: similar to the other snippets, about the category
  that triggered the match
* isfilematch: indicates if the match was part of file content

Additionally when 'suggestion' is included as part of the searchinfo,
'suggestionsnippet' is now also returned.

Change-Id: Ibf18905775a79caed213aca1bdebcffe3644c23b

9 years agoMerge "API: Also mangle indexed tag names in format=xml"
jenkins-bot [Thu, 30 Apr 2015 15:02:37 +0000 (15:02 +0000)]
Merge "API: Also mangle indexed tag names in format=xml"

9 years agoCreate PageViewUpdates hook
Mark A. Hershberger [Thu, 30 Apr 2015 02:23:30 +0000 (22:23 -0400)]
Create PageViewUpdates hook

Bug: T97622
Change-Id: I0f2dedf84a540b6f87623792c7b4f8b8ad8f8059

9 years agoAPI: Also mangle indexed tag names in format=xml
Brad Jorsch [Thu, 30 Apr 2015 13:00:04 +0000 (09:00 -0400)]
API: Also mangle indexed tag names in format=xml

I had thought no one would be silly enough to set invalid tag names for
ApiResult::setIndexedTagName(), since it's specifically *for* XML tag
names. Apparently I was wrong.

Bug: T97599
Change-Id: I62ad832b1d8c23a275e5c67160f0b1febe5f3454

9 years agoUpdate OOjs UI to v0.11.0
Bartosz Dziewoński [Thu, 23 Apr 2015 12:05:21 +0000 (14:05 +0200)]
Update OOjs UI to v0.11.0

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

Local changes to accommodate for font-size change.

This is a total hack. Sorry. I will get it killed.

Bug: T91152
Change-Id: Ie69d14b9094b8cbd4e051985ffd6aaac490be3a6

9 years agoRestore B/C for ApiOpenSearch json output if warnings are present
Marius Hoch [Thu, 30 Apr 2015 00:39:55 +0000 (02:39 +0200)]
Restore B/C for ApiOpenSearch json output if warnings are present

Bug: T97617
Change-Id: Id26f83398c989b7737f52da3f90603ddb533517c

9 years agoMerge "mediawiki.mixins: Avoid including css rule on every less file that includes...
jenkins-bot [Wed, 29 Apr 2015 22:49:07 +0000 (22:49 +0000)]
Merge "mediawiki.mixins: Avoid including css rule on every less file that includes this mixin"

9 years agomediawiki.mixins: Avoid including css rule on every less file that includes this...
jdlrobson [Wed, 29 Apr 2015 21:37:36 +0000 (14:37 -0700)]
mediawiki.mixins: Avoid including css rule on every less file that includes this mixin

Follow-up to 13c53454.

Bug: T97587
Change-Id: Ic2d1a32b747de94282f1e0e6e90c438e12029250

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 29 Apr 2015 20:06:43 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id1471f16fb98cde20726e309966761b46e5d978c

9 years agoAdd @var LoadBalancer[] type doc
Thiemo Mättig [Mon, 20 Apr 2015 13:44:50 +0000 (15:44 +0200)]
Add @var LoadBalancer[] type doc

This avoids a good amount of type warnings in certain IDEs, e.g. in
my PHPStorm.

Change-Id: Id2b99ad48fa2c0d924a1f51b7d2e382eaac7347d

9 years agoChange case of class names to match declarations
Kevin Israel [Wed, 29 Apr 2015 12:46:32 +0000 (08:46 -0400)]
Change case of class names to match declarations

Found by running a script that uses PHP's tokenizer extension to
extract class declarations and uses, then compare them:

* AllMessagesTablePager
* SVGReader
* XML

Change-Id: I960aa05b2127722ecc5ae8b165549f9e1077d3c1

9 years agoMade getWithSetCallback doc comment clearer
Aaron Schulz [Wed, 29 Apr 2015 18:42:05 +0000 (11:42 -0700)]
Made getWithSetCallback doc comment clearer

Change-Id: I68c3929691c886bcfee32499a6058f01f69ea63c

9 years agoMerge "Fixed some <code> tags for doxygen"
jenkins-bot [Wed, 29 Apr 2015 18:02:51 +0000 (18:02 +0000)]
Merge "Fixed some <code> tags for doxygen"

9 years agoMerge "ChangeTags: Show checkbox on Special:Log when user lacks RevDel rights"
jenkins-bot [Wed, 29 Apr 2015 18:02:24 +0000 (18:02 +0000)]
Merge "ChangeTags: Show checkbox on Special:Log when user lacks RevDel rights"

9 years agoChangeTags: Show checkbox on Special:Log when user lacks RevDel rights
Brad Jorsch [Wed, 29 Apr 2015 17:34:30 +0000 (13:34 -0400)]
ChangeTags: Show checkbox on Special:Log when user lacks RevDel rights

The actual production of checkboxes in LogEventsList didn't get updated
to show checkboxes when the user can edit change tags but cannot use
RevDel on log entries.

This also renames LogEventsList::USE_REVDEL_CHECKBOXES to
LogEventsList::USE_CHECKBOXES to be accurate with the change here; no
extensions in Gerrit use this constant, so we should be safe.

Bug: T97501
Change-Id: I72ca7371fe73b650d5ef32d18da19788084f9aeb

9 years agoMovePage: Move target existence check into isValidMove()
Kunal Mehta [Wed, 29 Apr 2015 17:36:03 +0000 (10:36 -0700)]
MovePage: Move target existence check into isValidMove()

The target existence check is not dependent upon the user who is making
the move, so move it into MovePage::isValidMove() instead of
MovePage::checkPermissions() which not all callers will call.

Bug: T97536
Change-Id: I3aad1455ad4c064cbeaf35221a00ca6baba97c33

9 years agoUpdate jQuery from v1.11.2 to v1.11.3
Timo Tijhof [Wed, 29 Apr 2015 16:19:16 +0000 (17:19 +0100)]
Update jQuery from v1.11.2 to v1.11.3

This release ships a hot-fix for a JIT bug in iOS 8.2 and 8.3.
This is the only change.

Source code
 https://code.jquery.com/jquery-1.11.3.js

Release notes
 http://blog.jquery.com/2015/04/28/jquery-1-11-3

Change-Id: I5f23b24ae4481749b32e469bb83663361f706e97

9 years agoAPI: ApiResult must validate even when using numeric auto-indexes
Brad Jorsch [Wed, 29 Apr 2015 14:39:25 +0000 (10:39 -0400)]
API: ApiResult must validate even when using numeric auto-indexes

Bug: T97490
Change-Id: I5301a615a992b090000a59f86e13b9f78dcd5aec

9 years agoFixed some <code> tags for doxygen
Aaron Schulz [Wed, 29 Apr 2015 04:49:40 +0000 (21:49 -0700)]
Fixed some <code> tags for doxygen

Change-Id: I550b8760556e4916ee9b63ee244bbbcb4d926142

9 years agoMake $wgDBerrorLogTZ actually default to $wgLocaltimezone
Timo Tijhof [Thu, 16 Apr 2015 02:16:15 +0000 (03:16 +0100)]
Make $wgDBerrorLogTZ actually default to $wgLocaltimezone

Change-Id: I6ef84bf6b91a6783d1ff1c3dd0c4016ebf076367

9 years agoMerge "Update OOjs to v1.1.7"
jenkins-bot [Wed, 29 Apr 2015 02:37:39 +0000 (02:37 +0000)]
Merge "Update OOjs to v1.1.7"

9 years agoUpdate OOjs to v1.1.7
James D. Forrester [Wed, 29 Apr 2015 01:24:59 +0000 (18:24 -0700)]
Update OOjs to v1.1.7

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.1.7/History.md

Change-Id: Ie275172cc497dfba53bd5b405f9f1a4089c063eb

9 years agomaintenance/resources: Enable 'set -e' and 'set -u' in bash scripts
Timo Tijhof [Wed, 29 Apr 2015 01:02:50 +0000 (02:02 +0100)]
maintenance/resources: Enable 'set -e' and 'set -u' in bash scripts

* set -e: Abort on error.
* set -u: Emit error for undefined variables.

This removes the need for endless "&&"-chains and easy-to-forget
"|| exit 1" statements.

Change-Id: I41a1c0d1bd57b5e241b83224096d32876fd913af

9 years agoProtect API metadata keys from FormatMetadata::fetchExtendedMetadata()
Brad Jorsch [Tue, 28 Apr 2015 20:32:16 +0000 (16:32 -0400)]
Protect API metadata keys from FormatMetadata::fetchExtendedMetadata()

Bug: T97469
Change-Id: If5d101231ca913621c88e6683f6ef07f6dae1ee8

9 years agoMerge "Use ResourceLoaderImageModule to serve icons for OOjs UI"
jenkins-bot [Tue, 28 Apr 2015 20:21:08 +0000 (20:21 +0000)]
Merge "Use ResourceLoaderImageModule to serve icons for OOjs UI"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Apr 2015 19:03:25 +0000 (21:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I663235fee22c625f55610a6c53c790a127fbc786

9 years agoresourceloader: Always send headers with a 304 response
Roan Kattouw [Thu, 18 Jul 2013 17:52:23 +0000 (10:52 -0700)]
resourceloader: Always send headers with a 304 response

There was a code path that sent plain 304s without Expires or any
other headers. Fix this by moving the call to sendResponseHeaders()
into tryLastModified().

Bug: 51283
Change-Id: I15d13c5d32102f53bf3e3aaac01d76967e968f78

9 years agomw.track: Implement trackUnsubscribe
Timo Tijhof [Fri, 27 Mar 2015 23:55:20 +0000 (23:55 +0000)]
mw.track: Implement trackUnsubscribe

Bug: T93986
Change-Id: I38219319cb7963f1f19ee81857dd084709fb6be1

9 years agoMade DatabaseSqlite::__construct always caller super
Aaron Schulz [Mon, 27 Apr 2015 19:17:52 +0000 (12:17 -0700)]
Made DatabaseSqlite::__construct always caller super

* Also fixed misuse of private mTrxAtomicLevels var

Change-Id: I711508cb3906a5192be1a244a7e511b1720141ca

9 years agoUse ResourceLoaderImageModule to serve icons for OOjs UI
Bartosz Dziewoński [Tue, 7 Apr 2015 16:02:46 +0000 (18:02 +0200)]
Use ResourceLoaderImageModule to serve icons for OOjs UI

Benefits:
* Full per-language icons support. Icons that differ for each language
  (such as the 'Bold' icon) will now always display correctly
  according to user interface language, even on old browsers.
* MediaWiki UI icons support. When the 'mediawiki.ui.icon' module is
  loaded, you can use syntaxes such as below to display any OOUI icons
  (from the packs that were loaded) without involving OOUI itself.
    <div class="mw-ui-icon mw-ui-icon-before mw-ui-icon-check">OK</div>
    <div class="mw-ui-icon mw-ui-icon-after mw-ui-icon-check">OK</div>
    <div class="mw-ui-icon mw-ui-icon-element mw-ui-icon-check">OK</div>

Summary of changes:
* Resources.php:
  * Remove icons CSS files. Include image data JSON files instead.
  * Split the images from 'oojs-ui.styles' module to separate ones.
* OutputPage: Update enableOOUI() method for newly split modules.
* ResourceLoaderImageModule: Make it possible to load image data from
  a JSON file.
* update-oojs-ui.sh: Copy source files rather than distribution for
  icon packs.

This is not an improvement when it comes to code quality, though :(
Issues include some nasty code duplication, using "source code" (image
definitions) from OOUI rather than just distribution files, and hacky
methods to load image data from JSON files live.

Bug: T92551
Change-Id: Id369ecaec7048dcf68ba1e4df748362760533782

9 years agoMerge "Removed LocalFile::purgeHistory method"
jenkins-bot [Tue, 28 Apr 2015 08:31:14 +0000 (08:31 +0000)]
Merge "Removed LocalFile::purgeHistory method"

9 years agoMerge "Avoid direct DatabaseSqlite constructor use in tests"
jenkins-bot [Tue, 28 Apr 2015 08:27:11 +0000 (08:27 +0000)]
Merge "Avoid direct DatabaseSqlite constructor use in tests"

9 years agoMerge "Added $wgTrxProfilerLimits and slow query limits"
jenkins-bot [Tue, 28 Apr 2015 08:26:06 +0000 (08:26 +0000)]
Merge "Added $wgTrxProfilerLimits and slow query limits"

9 years agoAdded $wgTrxProfilerLimits and slow query limits
Aaron Schulz [Sun, 26 Apr 2015 18:26:49 +0000 (11:26 -0700)]
Added $wgTrxProfilerLimits and slow query limits

* Limits are now configurable instead of being hard-coded

Change-Id: I99133586eb82e8e9e84061548c8d1a99695fde5c

9 years agoMerge "Remove cache use in setNewtalk, as nothing reads from that"
jenkins-bot [Tue, 28 Apr 2015 07:55:41 +0000 (07:55 +0000)]
Merge "Remove cache use in setNewtalk, as nothing reads from that"

9 years agoMerge "Removed "empty" cache key from JobQueueDB for simplicity"
jenkins-bot [Tue, 28 Apr 2015 07:39:53 +0000 (07:39 +0000)]
Merge "Removed "empty" cache key from JobQueueDB for simplicity"

9 years agoMerge "ContentHandler: remove last wfRunHooks() call in includes"
jenkins-bot [Tue, 28 Apr 2015 04:55:41 +0000 (04:55 +0000)]
Merge "ContentHandler: remove last wfRunHooks() call in includes"

9 years agoMerge "wfRunHooks() -> Hooks::run() in maintenance scripts"
jenkins-bot [Tue, 28 Apr 2015 04:51:17 +0000 (04:51 +0000)]
Merge "wfRunHooks() -> Hooks::run() in maintenance scripts"

9 years agoContentHandler: remove last wfRunHooks() call in includes
Chad Horohoe [Tue, 28 Apr 2015 04:43:11 +0000 (21:43 -0700)]
ContentHandler: remove last wfRunHooks() call in includes

Change-Id: I074d886e7021a965a9dc32e74974e9882e77930e