lhc/web/wiklou.git
8 years agoAPI: Use message-per-value for apihelp-query+revisions+base-param-prop
umherirrender [Thu, 2 Jul 2015 18:29:32 +0000 (20:29 +0200)]
API: Use message-per-value for apihelp-query+revisions+base-param-prop

Use message-per-value for message
apihelp-query+revisions+base-param-prop to allow smaller strings
for translation and to add a parameter for the contentmodel for
prop=parsetree, as already done for action=parse&prop=parsetree.
Each prop in a message also will show up a new parameter on the help
page without the adjust of the translation (but than in english instead
of fully skip it).

Change-Id: I8aaa061cb59ec788f8f8e09e8088ba1064e3aa1e

8 years agoMerge "Correct mw-ui-icon size"
jenkins-bot [Thu, 2 Jul 2015 10:27:08 +0000 (10:27 +0000)]
Merge "Correct mw-ui-icon size"

8 years agoMerge "Made SqlBagOStuff set() wrap setMulti()"
jenkins-bot [Thu, 2 Jul 2015 08:14:36 +0000 (08:14 +0000)]
Merge "Made SqlBagOStuff set() wrap setMulti()"

8 years agoMerge "Declare and document $wgStatsdServer and $wgStatsdMetricPrefix"
jenkins-bot [Thu, 2 Jul 2015 08:12:47 +0000 (08:12 +0000)]
Merge "Declare and document $wgStatsdServer and $wgStatsdMetricPrefix"

8 years agoMerge "Add class to items in changeslist legend"
jenkins-bot [Thu, 2 Jul 2015 08:10:29 +0000 (08:10 +0000)]
Merge "Add class to items in changeslist legend"

8 years agoMerge "Make an apihelp message less repetitive"
jenkins-bot [Thu, 2 Jul 2015 08:09:14 +0000 (08:09 +0000)]
Merge "Make an apihelp message less repetitive"

8 years agoMerge "SpecialDoubleRedirects: Remove redirect=no for action=edit"
jenkins-bot [Thu, 2 Jul 2015 08:07:48 +0000 (08:07 +0000)]
Merge "SpecialDoubleRedirects: Remove redirect=no for action=edit"

8 years agoMerge "Fix reference to nonexistent ApiBase::getModulePathString in inline docs"
jenkins-bot [Thu, 2 Jul 2015 08:03:28 +0000 (08:03 +0000)]
Merge "Fix reference to nonexistent ApiBase::getModulePathString in inline docs"

8 years agoDeclare and document $wgStatsdServer and $wgStatsdMetricPrefix
Timo Tijhof [Fri, 26 Jun 2015 03:01:49 +0000 (04:01 +0100)]
Declare and document $wgStatsdServer and $wgStatsdMetricPrefix

Follows-up 87dfc20.

Change-Id: Ie1b799a8f2a73b974ba8c930cfabc00e377d6eee

8 years agoMade WANObjectCache::getCheckKey() automatically init the key
Aaron Schulz [Fri, 22 May 2015 05:46:25 +0000 (22:46 -0700)]
Made WANObjectCache::getCheckKey() automatically init the key

* This still allows If-Modified-Since logic but does not
  need to broadcast initialization values just because a
  key fell out of cache. The value can differ between DCs
  anyway via skew, this just lets them drift more. Actual
  purge events are still broadcasted, which is what matters.
* The User class has now been simplified given this change.
* Added more general comments to getCheckKeyTime().

Change-Id: Ic1f4bbb1947e0d1dd47499c9e9dc86991c30580c

8 years agoMerge "Improved job pickup time stats for delayed jobs"
jenkins-bot [Thu, 2 Jul 2015 03:09:08 +0000 (03:09 +0000)]
Merge "Improved job pickup time stats for delayed jobs"

8 years agoChange "? :" to "?:"
Kunal Mehta [Thu, 2 Jul 2015 02:15:07 +0000 (19:15 -0700)]
Change "? :" to "?:"

Anomie pointed out that I am the only person who writes it as "? :", and
that all other instances in core use no space.

Change-Id: I01b68eed5f866fa7582fb4257f795c4c2d1244d1

8 years agoFix reference to nonexistent ApiBase::getModulePathString in inline docs
Ori Livneh [Thu, 2 Jul 2015 01:48:34 +0000 (18:48 -0700)]
Fix reference to nonexistent ApiBase::getModulePathString in inline docs

Change-Id: Iad6420ea88c4cf94c234be7f01a2ed2854e02919

8 years agoEnsure DerivativeContext has a $stats property
Ori Livneh [Thu, 2 Jul 2015 00:38:25 +0000 (17:38 -0700)]
Ensure DerivativeContext has a $stats property

Should have been a part of Ie10db1c15 but wasn't.

Change-Id: I4552390e1476766ae2d0946df3836a8a14182b34

8 years agoMerge "Account for unset visiting watchers"
jenkins-bot [Wed, 1 Jul 2015 23:57:51 +0000 (23:57 +0000)]
Merge "Account for unset visiting watchers"

8 years agoCorrect mw-ui-icon size
jdlrobson [Wed, 1 Jul 2015 23:16:54 +0000 (16:16 -0700)]
Correct mw-ui-icon size

Icons should be 24px by 24px
1em = 16px,
1.5em = 24px

Change-Id: I98564ad2b02668efa616a6f3c536c78440edcac9

8 years agoDon't try looking for phpunit if it is already loaded
Kunal Mehta [Wed, 1 Jul 2015 20:40:53 +0000 (13:40 -0700)]
Don't try looking for phpunit if it is already loaded

If phpunit is installed via composer, it will already be present in the
autoloader, so including other paths won't do anything.

Also add some output to make it easier to figure out where phpunit is
being loaded from.

Change-Id: Id6d23626b158779f6ff56e6d0f20d519f2f4ad18

8 years agoImproved job pickup time stats for delayed jobs
Aaron Schulz [Wed, 1 Jul 2015 19:30:06 +0000 (12:30 -0700)]
Improved job pickup time stats for delayed jobs

* The delay time should not count

Bug: T102743
Change-Id: I9e8b1f33b65681fd9f4f667233bce280bf6f227d

8 years agoAdd explicit GENDER to logentry-contentmodel-change
Amir E. Aharoni [Wed, 1 Jul 2015 20:32:08 +0000 (23:32 +0300)]
Add explicit GENDER to logentry-contentmodel-change

Change-Id: Iad544e1b61661acd3e54777859e72a59349fabb5

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 1 Jul 2015 19:51:45 +0000 (19:51 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 1 Jul 2015 19:49:03 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I730d53aaf52bb6000ff33d06f325e5ec30280f87

8 years agoMerge "Update OOjs UI to v0.11.7"
jenkins-bot [Wed, 1 Jul 2015 19:38:31 +0000 (19:38 +0000)]
Merge "Update OOjs UI to v0.11.7"

8 years agoMerge "mw.Title: Handle empty this.title"
jenkins-bot [Wed, 1 Jul 2015 19:24:21 +0000 (19:24 +0000)]
Merge "mw.Title: Handle empty this.title"

8 years agomw.Title: Handle empty this.title
Alex Monk [Wed, 1 Jul 2015 15:40:22 +0000 (16:40 +0100)]
mw.Title: Handle empty this.title

Otherwise we break code like this:
mw.Title.newFromText( '.foo' ).getPrefixedText()
because this.title[0] won't be set and you can't uppercase it

Bug: T104377
Change-Id: I1dae1e63e474757da725f76bced442ebd5b76c25

8 years agoUpdate OOjs UI to v0.11.7
James D. Forrester [Wed, 1 Jul 2015 19:11:28 +0000 (12:11 -0700)]
Update OOjs UI to v0.11.7

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

Change-Id: I0b78334f118ff351277652a5af0d240ef262769c

8 years agoMerge "API: Remove WDDX and dump formats"
jenkins-bot [Wed, 1 Jul 2015 16:09:14 +0000 (16:09 +0000)]
Merge "API: Remove WDDX and dump formats"

8 years agoMerge "API: Deprecate generatexml of modules revisions/deletedrevisions/parse"
jenkins-bot [Wed, 1 Jul 2015 15:43:39 +0000 (15:43 +0000)]
Merge "API: Deprecate generatexml of modules revisions/deletedrevisions/parse"

8 years agoAPI: Remove WDDX and dump formats
Max Semenik [Fri, 10 Apr 2015 16:34:11 +0000 (19:34 +0300)]
API: Remove WDDX and dump formats

Per RFC: https://www.mediawiki.org/wiki/Requests_for_comment/Ditch_crappy_API_formats

Change-Id: I4c9e64875be509906021255d70b90688f2e5ddf3

8 years agoMerge "Pass user to WikiPage::doDeleteArticleReal"
jenkins-bot [Wed, 1 Jul 2015 15:13:22 +0000 (15:13 +0000)]
Merge "Pass user to WikiPage::doDeleteArticleReal"

8 years agoMerge "Better error message via api when content model does not allow editing"
jenkins-bot [Wed, 1 Jul 2015 13:56:38 +0000 (13:56 +0000)]
Merge "Better error message via api when content model does not allow editing"

8 years agoAccount for unset visiting watchers
Federico Leva [Wed, 1 Jul 2015 12:27:55 +0000 (14:27 +0200)]
Account for unset visiting watchers

Followup to 09a21c4af8dd53644edd31fe731638b60f91594a
Now with `|| $user->isAllowed( 'unwatchedpages' )` we can enter
line 337 without having any count to show.

Change-Id: I6826e1c59899d2c8cbbc6d079874d0d583f8783a

8 years agoAttempt to count actual watchers in the info action
Federico Leva [Mon, 2 Mar 2015 16:16:58 +0000 (17:16 +0100)]
Attempt to count actual watchers in the info action

Proposed threshold to be considered an "active" watcher:
two times $wgRCMaxAge, configurable with the new
configuration setting $wgWatchersMaxAge.

The information is not displayed when the number given would
be 1 or 0, so that the number (or absence thereof) doesn't
"disclose" that the page is (potentially) unpatrolled or
completely unwatched and hence easier to vandalise.
Configurable with $wgUnwatchedPageSecret too.
Also, we don't display this row at all when the user doesn't
have the right to see the count of total watchers.

Bug: T51506
Change-Id: I10d294a339b131eee94839ed7088ab20d746d881

8 years agoBetter error message via api when content model does not allow editing
Erik Bernhardson [Fri, 19 Jun 2015 22:39:48 +0000 (15:39 -0700)]
Better error message via api when content model does not allow editing

Change-Id: I699b4f5fd2eac8dfc4c54922474f939262bc803d

8 years agoMerge "Replace some MWException usage in User"
jenkins-bot [Wed, 1 Jul 2015 04:19:14 +0000 (04:19 +0000)]
Merge "Replace some MWException usage in User"

8 years agoReplace some MWException usage in User
Aaron Schulz [Thu, 25 Jun 2015 20:02:18 +0000 (13:02 -0700)]
Replace some MWException usage in User

Change-Id: I61dbd6223354530311c497ad0f45ed49a573d0cb

8 years agoresourceloader: Make minify cache keys globally shared instead of local
Timo Tijhof [Wed, 1 Jul 2015 03:33:13 +0000 (04:33 +0100)]
resourceloader: Make minify cache keys globally shared instead of local

The keys already contain a hash of the contents and the version of
the filter system. No need for these to be fragmented by wiki.

Previously wiki farms would minify the same module build for
every wiki. For e.g. Wikimedia this should bring down minification
runs for a new module version from ~800x to something lower.
It won't be 1 since modules may still vary by language, or config.

This should speed up load.php responses when a new module version
is deployed.

It will also reduce response time for page views of logged-in
users due to improved minification cache of embedded modules.

Change-Id: Iee884208c5c4ba40b46abd332271df698c6afb6f

8 years agoMerge "Automatically infuse any infusable OOUI widgets present on the page"
jenkins-bot [Tue, 30 Jun 2015 22:14:35 +0000 (22:14 +0000)]
Merge "Automatically infuse any infusable OOUI widgets present on the page"

8 years agoMerge "tooltip-ca-edit: Simplify wording to align with others"
jenkins-bot [Tue, 30 Jun 2015 20:37:33 +0000 (20:37 +0000)]
Merge "tooltip-ca-edit: Simplify wording to align with others"

8 years agoMerge "Add maintenance script to populate page,revision,archive.*_content_* fields"
jenkins-bot [Tue, 30 Jun 2015 20:30:11 +0000 (20:30 +0000)]
Merge "Add maintenance script to populate page,revision,archive.*_content_* fields"

8 years agoMerge "Add Special:ChangeContentModel"
jenkins-bot [Tue, 30 Jun 2015 20:30:06 +0000 (20:30 +0000)]
Merge "Add Special:ChangeContentModel"

8 years agoMerge "MediaWiki.php: Redirect non-standard title urls to canonical"
jenkins-bot [Tue, 30 Jun 2015 20:22:54 +0000 (20:22 +0000)]
Merge "MediaWiki.php: Redirect non-standard title urls to canonical"

8 years agoAdd maintenance script to populate page,revision,archive.*_content_* fields
Kunal Mehta [Mon, 29 Jun 2015 20:51:39 +0000 (13:51 -0700)]
Add maintenance script to populate page,revision,archive.*_content_* fields

Bug: T103388
Co-Authored-By: Roan Kattouw <roan.kattouw@gmail.com>
Change-Id: I65ab629d25c394751c05ce6b5c1a27464893896d

8 years agoMerge "OOUIHTMLForm: Make setting 'readonly' on a text field actually work"
jenkins-bot [Tue, 30 Jun 2015 20:19:01 +0000 (20:19 +0000)]
Merge "OOUIHTMLForm: Make setting 'readonly' on a text field actually work"

8 years agoAdd Special:ChangeContentModel
Kunal Mehta [Sun, 29 Mar 2015 03:36:01 +0000 (20:36 -0700)]
Add Special:ChangeContentModel

Special:ChangeContentModel allows for users with the 'editcontentmodel'
right to change the content model of a page.

Visiting Special:ChangeContentModel will contain an input field for a
page title. The user will then be sent to
Special:ChangeContentModel?pagetitle=<input> where the page title is
read only, with a content model selector and optional reason field.

The special page only allows converting between content models that
extend TextContent for simplicity. Advanced conversions should be done
via the API.

All content model changes via the special page or API generate a null
revision in the page history and a log entry at
Special:Log/contentmodel. The log entry has a revert link for
convenience (like the move log).

Bug: T72592
Co-Authored-By: Lewis Cawte <lewis@lewiscawte.me>
Change-Id: I296a67c09fcbc880c8c3a648eb5086580725ea46

8 years agoOOUIHTMLForm: Make setting 'readonly' on a text field actually work
Kunal Mehta [Tue, 30 Jun 2015 20:03:58 +0000 (13:03 -0700)]
OOUIHTMLForm: Make setting 'readonly' on a text field actually work

Previously 'readOnly' was set to an empty string, which casts to boolean
false.

Change-Id: I7d1e7f02731c7235da2ae1e0a5e3d0be2b44d978

8 years agoParser: Correct setHook() documentation
Bartosz Dziewoński [Mon, 29 Jun 2015 19:05:50 +0000 (21:05 +0200)]
Parser: Correct setHook() documentation

Change-Id: Iaeaac9ea79b696dfa39adb6608ed68edd3754516

8 years agoAPI: Deprecate generatexml of modules revisions/deletedrevisions/parse
umherirrender [Fri, 5 Jun 2015 09:22:17 +0000 (11:22 +0200)]
API: Deprecate generatexml of modules revisions/deletedrevisions/parse

Deprecate 'generatexml=' by adding 'prop=parsetree' to revisions,
deletedrevisions and action=parse.
'generatexml' of action=expandtemplates is already deprecated and
replaced by 'prop=parsetree'.

Reason: Api parameter to control the output of a module usually gets
added as type to prop=, not added as new parameter. New parameter
usually used as input parameter for the module.

For revisions and deletedrevisions this allows to get the parsetree
without getting the whole content (makes the result smaller, when just
one is needed)

Change-Id: I7403110d7bd07e9eb2a10e1b398d97f0f40298be

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 30 Jun 2015 18:41:31 +0000 (20:41 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I553f3c84db5ceb3b5bffb03c024671a74f6d20ef

8 years agoAutomatically infuse any infusable OOUI widgets present on the page
Roan Kattouw [Mon, 25 May 2015 09:58:36 +0000 (11:58 +0200)]
Automatically infuse any infusable OOUI widgets present on the page

Change-Id: I931df032c3d8dc5807c7590a763b8d9060c5ee87

8 years agoMake an apihelp message less repetitive
Amir E. Aharoni [Tue, 30 Jun 2015 08:21:22 +0000 (11:21 +0300)]
Make an apihelp message less repetitive

Avoid saying "format" twice.

Change-Id: I4c389944cf8777fffac9234852ce7eb29a82a777

8 years agoSpecialDoubleRedirects: Remove redirect=no for action=edit
Fomafix [Tue, 30 Jun 2015 07:39:25 +0000 (07:39 +0000)]
SpecialDoubleRedirects: Remove redirect=no for action=edit

action=edit does not resolve redirects. The URL parameter redirect=no is not necessary.

Change-Id: I5a287f3dcb0ee03f51bb8924a68b0d9698dcfe79

8 years agoresourceloader: Move applyFilter() stats back to filter()
Timo Tijhof [Tue, 30 Jun 2015 01:12:40 +0000 (02:12 +0100)]
resourceloader: Move applyFilter() stats back to filter()

Follow-up b88e88b, which converted the count stats to include
timing information but incidentally moved the gathering point
inside the method, which meant it now also applied to uncached
minifications from logged-in user html views (called from one
branch higher in the filter method).

This should reset the 'resourceloader_cache.minify-js.miss.count'
back to normal levels.

Change-Id: I7761242f016e9026f5012352ec2f7297c1753f25

8 years agoAdd a PHP implementation of TitleInputWidget
Roan Kattouw [Mon, 25 May 2015 09:54:29 +0000 (11:54 +0200)]
Add a PHP implementation of TitleInputWidget

From the PHP side it's really just an infusable TextInputWidget.

Change-Id: I607339c2e967e502f85164c9b1ea79dc0a17c9cc

8 years agoresourceloader: Add timing metrics for key operations
Timo Tijhof [Fri, 26 Jun 2015 05:57:17 +0000 (06:57 +0100)]
resourceloader: Add timing metrics for key operations

* Minification of css and js.

* Total generation of module content.
  Includes:
  - Fetching/generating of content (files, wikipage, dynamic).
  - Pre/post processing (concat, less>css, cssjanus, ..)

Change-Id: Id60e665dfb6280aa254116f0867b909afc6f878a

8 years agotooltip-ca-edit: Simplify wording to align with others
James D. Forrester [Mon, 29 Jun 2015 19:21:38 +0000 (12:21 -0700)]
tooltip-ca-edit: Simplify wording to align with others

Previous text:
    "You can edit this page. Please use the preview button before saving"

Faults:
* Too wordy
* Mentions part of the interface on the next screen unnecessarily
* Unlike every other tooltip, isn't an verb to match the tab

New text:
    "Edit this page"

Advantages
* Shorter and simpler
* Aligns with other tooltips in matching the tab
* Doesn't mention an interface artefact from the next page

Change-Id: I03b45f8516094f990e5823f6dacb3d1fd651f383

8 years agoCreate a subdirectory for compatibility stubs
Ori Livneh [Sat, 27 Jun 2015 19:54:40 +0000 (12:54 -0700)]
Create a subdirectory for compatibility stubs

Instead of littering includes/ with stub back-compat aliases, house such
classes in includes/compat/.

Change-Id: I4c1b83e35c8d6c18777a4a3e17d81023915cfb7f

8 years agoMerge "Remove use of deprecated utf8ToCodepoint in ApiFormatXml."
addshore [Mon, 29 Jun 2015 18:44:15 +0000 (18:44 +0000)]
Merge "Remove use of deprecated utf8ToCodepoint in ApiFormatXml."

8 years agoRemove use of deprecated utf8ToCodepoint in ApiFormatXml.
addshore [Mon, 29 Jun 2015 18:21:44 +0000 (20:21 +0200)]
Remove use of deprecated utf8ToCodepoint in ApiFormatXml.

This usage, in ApiFormatXml, is the final usage
in core.

Change-Id: Ibd926863d323e6d6d1b2cc5fd5f5f0e1aef8529d

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 29 Jun 2015 18:21:48 +0000 (20:21 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1dca47863d72f6a14e0d87762368423c7e718556

8 years agoPass user to WikiPage::doDeleteArticleReal
umherirrender [Sun, 28 Jun 2015 19:50:01 +0000 (21:50 +0200)]
Pass user to WikiPage::doDeleteArticleReal

This avoids use of $wgUser in WikiPage::doDeleteArticleReal

Change-Id: Iacbcd998a4470c583d839824baf8b8f8e37a0d4b

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 28 Jun 2015 19:17:21 +0000 (21:17 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ied494f43403178b8614cd986e523e2278059f213

8 years agoMerge "Don't cast SpecialPageFactory::$aliases to an object"
jenkins-bot [Sun, 28 Jun 2015 01:16:19 +0000 (01:16 +0000)]
Merge "Don't cast SpecialPageFactory::$aliases to an object"

8 years agoRemove a few more PHP4-isms from update.php
Reedy [Sun, 28 Jun 2015 01:03:48 +0000 (02:03 +0100)]
Remove a few more PHP4-isms from update.php

Change-Id: I98f12f3b4ff11341839202311f492f1a8cca2882

8 years agoDon't cast SpecialPageFactory::$aliases to an object
Reedy [Wed, 10 Sep 2014 19:07:18 +0000 (20:07 +0100)]
Don't cast SpecialPageFactory::$aliases to an object

Change-Id: I4793c5916cfa227681f3e8d95d03a5ce25cbe356

8 years agoMerge "Made SqlBagOStuff unset DB handles on connection errors"
jenkins-bot [Sun, 28 Jun 2015 00:28:30 +0000 (00:28 +0000)]
Merge "Made SqlBagOStuff unset DB handles on connection errors"

8 years agoMerge "database: Small DB class cleanups"
jenkins-bot [Sun, 28 Jun 2015 00:26:07 +0000 (00:26 +0000)]
Merge "database: Small DB class cleanups"

8 years agodatabase: Small DB class cleanups
Aaron Schulz [Thu, 25 Jun 2015 00:24:00 +0000 (17:24 -0700)]
database: Small DB class cleanups

* Moved some duplicated logic to assertOpen() method
* Override doc type for mConn for the mysqli subclass
* Fixed a few code comments

Change-Id: I78d595554ed51f64ca7cf7bd7ce369a492a59145

8 years agoAdd class to items in changeslist legend
umherirrender [Fri, 19 Jun 2015 15:36:18 +0000 (17:36 +0200)]
Add class to items in changeslist legend

The text part of the legend on Special:RecentChanges and
Special:Watchlist does not have a own class for styling.

Added a 'mw-changeslist-legend-*' class to the items similar to the
already existing class 'mw-changeslist-legend-plusminus' for the last
item.

Change-Id: Ib249d4d7a78a5e3deaace27ceee1abc955b96160

8 years agoSet 644 file permissions on some *.php files
Alex Monk [Sat, 27 Jun 2015 20:20:27 +0000 (21:20 +0100)]
Set 644 file permissions on some *.php files

Bug: T103754
Change-Id: I2f5bae84463ea849ceae027c17b924779adf8c19

8 years agoMerge "Switch some HTMLForms in special pages to OOUI"
jenkins-bot [Sat, 27 Jun 2015 19:17:56 +0000 (19:17 +0000)]
Merge "Switch some HTMLForms in special pages to OOUI"

8 years agoMerge "Remove unused message 'passwordreset-legend'"
jenkins-bot [Sat, 27 Jun 2015 19:07:37 +0000 (19:07 +0000)]
Merge "Remove unused message 'passwordreset-legend'"

8 years agoMerge "SpecialResetTokens: Switch to OOUI form"
jenkins-bot [Sat, 27 Jun 2015 19:07:34 +0000 (19:07 +0000)]
Merge "SpecialResetTokens: Switch to OOUI form"

8 years agoSwitch some HTMLForms in special pages to OOUI
Bartosz Dziewoński [Fri, 1 May 2015 00:23:50 +0000 (02:23 +0200)]
Switch some HTMLForms in special pages to OOUI

Bug: T101473
Bug: T101474
Bug: T101475
Change-Id: I2c3d6486e09b3e4d5537b95194e178fd73ac9792

8 years agoRemove unused message 'passwordreset-legend'
Bartosz Dziewoński [Sat, 27 Jun 2015 18:55:02 +0000 (20:55 +0200)]
Remove unused message 'passwordreset-legend'

Special:PasswordReset does not have a legend box where this could be used.

Change-Id: I975cea045a6b60d2967b9c7009086a017ae60958

8 years agoSpecialResetTokens: Switch to OOUI form
Bartosz Dziewoński [Sun, 14 Jun 2015 22:43:53 +0000 (00:43 +0200)]
SpecialResetTokens: Switch to OOUI form

Pretty!

Change-Id: I30d401cc7c827b21eb2fb116558d0d9e764ec1f3

8 years agoMerge "OOUIHTMLForm: Implement HTMLRadioField"
jenkins-bot [Sat, 27 Jun 2015 18:52:16 +0000 (18:52 +0000)]
Merge "OOUIHTMLForm: Implement HTMLRadioField"

8 years agoMerge "OOUIHTMLForm: Implement HTMLMultiSelectField"
jenkins-bot [Sat, 27 Jun 2015 18:50:05 +0000 (18:50 +0000)]
Merge "OOUIHTMLForm: Implement HTMLMultiSelectField"

8 years agoMerge "OOUIHTMLForm: Correctly handle submit modifier flags"
jenkins-bot [Sat, 27 Jun 2015 18:43:40 +0000 (18:43 +0000)]
Merge "OOUIHTMLForm: Correctly handle submit modifier flags"

8 years agoUserrightsPage: Avoid passing null target
Alex Monk [Fri, 26 Jun 2015 18:03:15 +0000 (19:03 +0100)]
UserrightsPage: Avoid passing null target

Bug: T103945
Change-Id: I80598ce6d12a73a7a3c399fbacc2a253999177b2

8 years agoOOUIHTMLForm: Implement HTMLRadioField
Bartosz Dziewoński [Sun, 14 Jun 2015 18:17:09 +0000 (20:17 +0200)]
OOUIHTMLForm: Implement HTMLRadioField

Example usage in I2c3d6486e09b3e4d5537b95194e178fd73ac9792
(Special:PageLanguage). Trivial now that we have RadioSelectInputWidget
in OOUI (added in fd2815e372f6a4beb4f4e5f2a7d9cbf785d40851).

Depends on If68f04a2fa20e7c03763898ab80cf39b5e6cb182 in OOUI.

Bug: T98855
Change-Id: I224e591e58534c07af62eebb9ae4b185225edc33

8 years agoMerge "Fix Button label in OOUI HTML Form and enable flags"
jenkins-bot [Sat, 27 Jun 2015 13:20:50 +0000 (13:20 +0000)]
Merge "Fix Button label in OOUI HTML Form and enable flags"

8 years agoOOUIHTMLForm: Implement HTMLMultiSelectField
Bartosz Dziewoński [Sun, 14 Jun 2015 18:14:31 +0000 (20:14 +0200)]
OOUIHTMLForm: Implement HTMLMultiSelectField

Example usage in I30d401cc7c827b21eb2fb116558d0d9e764ec1f3.
Following the template set by HTMLCheckMatrix, which for some reason
was implemented first. Also removed unfulfillable @todo comment.

Also corrected HTMLCheckMatrix code not to wrap OOUI widgets in
MediaWiki UI wrappers even when 'UseMediaWikiUIEverywhere' is set to
true, and to set the correct 'value' for checkboxes.

Bug: T100955
Change-Id: Ib5d000ca9a08abc8086ee05b5122116b086242ad

8 years agoOOUIHTMLForm: Correctly handle submit modifier flags
Bartosz Dziewoński [Sun, 14 Jun 2015 18:09:52 +0000 (20:09 +0200)]
OOUIHTMLForm: Correctly handle submit modifier flags

Rejigger some HTMLForm internals to remove the hardcoded assumption of
using 'mw-ui' classes.

Bug: T98903
Change-Id: Icc20453c999c761b87e19a71ccd43d93b9c1bfa7

8 years agoMerge "OOUIHTMLForm: Make the submit button infusable"
jenkins-bot [Sat, 27 Jun 2015 12:55:13 +0000 (12:55 +0000)]
Merge "OOUIHTMLForm: Make the submit button infusable"

8 years agoMerge "mediawiki.log: Remove call to console.trace() for each warning"
jenkins-bot [Sat, 27 Jun 2015 12:49:25 +0000 (12:49 +0000)]
Merge "mediawiki.log: Remove call to console.trace() for each warning"

8 years agomediawiki.log: Remove call to console.trace() for each warning
Timo Tijhof [Fri, 26 Jun 2015 08:45:32 +0000 (09:45 +0100)]
mediawiki.log: Remove call to console.trace() for each warning

When code that accesses a deprecated property is called multiple times,
every time a deprecation message is logged and a stack trace produced.

And all synchronously as well. This creates a duplicative mess in the
console.

Per T103891, T103610, and reports on IRC, this appears to have a
tendency to crash Firebug.

While less convenient, there are other ways to get the calling
function from a warning (e.g. debugger, breakpoints, pause/step
execution). We don't call it for mw.log.error, either.

This should help reduce noise, speed up execution path, and hopefully
prevent such crashes in the future.

Change-Id: I80428a5e80dbb84b93be2f10340fe29d9bef12d3

8 years agoMerge "Chinese Conversion Table Update 2015-5"
jenkins-bot [Sat, 27 Jun 2015 08:39:06 +0000 (08:39 +0000)]
Merge "Chinese Conversion Table Update 2015-5"

8 years agoOOUIHTMLForm: Make the submit button infusable
Kunal Mehta [Sat, 27 Jun 2015 07:55:24 +0000 (00:55 -0700)]
OOUIHTMLForm: Make the submit button infusable

So people can do things to it like adding click handlers.

Change-Id: Ia51d3aca055709d5205eea1922a2985d1623ed8d

8 years agoMerge "RELEASE-NOTES-1.26: Bugzilla is dead, long live Phabricator!"
jenkins-bot [Sat, 27 Jun 2015 07:51:37 +0000 (07:51 +0000)]
Merge "RELEASE-NOTES-1.26: Bugzilla is dead, long live Phabricator!"

8 years agoChinese Conversion Table Update 2015-5
Chiefwei [Fri, 26 Jun 2015 06:36:07 +0000 (14:36 +0800)]
Chinese Conversion Table Update 2015-5

Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82.

It is only data changes and only works for Chinese WikiProjects.

Change-Id: I0933141b0f06c5b7d7f1fb8153f6433276dc872f

8 years agoMerge "build: Updating development dependencies"
jenkins-bot [Sat, 27 Jun 2015 04:17:16 +0000 (04:17 +0000)]
Merge "build: Updating development dependencies"

8 years agobuild: Updating development dependencies
paladox [Fri, 19 Jun 2015 20:04:25 +0000 (22:04 +0200)]
build: Updating development dependencies

* mediawiki/mediawiki-codesniffer 0.2.0 → 0.3.0
* jakub-onderka/php-parallel-lint 0.8 → 0.9

Change-Id: I77da850809f926d624bfffbaa8fd81a981f10798

8 years agoAllow extensions to set $wgDisableCounters.
Mark A. Hershberger [Tue, 21 Apr 2015 00:31:48 +0000 (20:31 -0400)]
Allow extensions to set $wgDisableCounters.

Alternatively, removing this completely might surface the issue for users
more quickly.  Without this change, resolving {T74420} becomes more of an issue.

Bug: T74420
Change-Id: Ib2dc9ed56a945acb06b64f3b85ff07ac2a6b7600
(cherry picked from commit 6b4d6662b5b5005bb84f4c5e6315288611bf57f1)

8 years agoRemove deprecated $wgSpecialPageGroups
umherirrender [Thu, 25 Jun 2015 16:40:18 +0000 (18:40 +0200)]
Remove deprecated $wgSpecialPageGroups

$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead

Remove also SpecialPageFactory::setGroup because it no long can set $wgSpecialPageGroups.
Also remove SpecialPageFactory::getGroup along with its setter.

All replaces in extensions can be found under:
https://gerrit.wikimedia.org/r/#/q/status:open+branch:master+topic:wgSpecialPageGroups,n,z
https://gerrit.wikimedia.org/r/#/q/status:merged+branch:master+topic:wgSpecialPageGroups,n,z

Change-Id: I1aa8f98bf326b2e54d7403efbb9f002a106cefc5

8 years agoAdd a scary, all-caps warning to the docs for RejectParserCacheValue
Ori Livneh [Sat, 27 Jun 2015 00:44:46 +0000 (17:44 -0700)]
Add a scary, all-caps warning to the docs for RejectParserCacheValue

Follows I660679a4.

Change-Id: I65bde4f0f6939c9a1e3e06dcbdbf9856e4416df9

8 years agoUse APC for caching slave lag times
Aaron Schulz [Mon, 8 Jun 2015 19:08:01 +0000 (12:08 -0700)]
Use APC for caching slave lag times

Bug: T101433
Change-Id: Ia37ce5a7aca8217ec57cd8d8c5e43472b3d8845b

8 years agoImprove appearance of libraries on Special:Version
Kunal Mehta [Fri, 26 Jun 2015 01:30:40 +0000 (18:30 -0700)]
Improve appearance of libraries on Special:Version

* Added licenses
* Added description (will always be in English)
* Added authors
* Bold library name, like we do with extensions and skins

Change-Id: I880756b489fb5a3f81d398d32162a186a1b919d8

8 years agoMerge "Bump wikimedia/composer-merge-plugin to 1.2.0"
jenkins-bot [Fri, 26 Jun 2015 21:11:01 +0000 (21:11 +0000)]
Merge "Bump wikimedia/composer-merge-plugin to 1.2.0"

8 years agoRELEASE-NOTES-1.26: Bugzilla is dead, long live Phabricator!
Ricordisamoa [Fri, 26 Jun 2015 20:40:07 +0000 (22:40 +0200)]
RELEASE-NOTES-1.26: Bugzilla is dead, long live Phabricator!

Change-Id: I64921cfc5fe3fd9a58710110559035bb0a73364a

8 years agoBump wikimedia/composer-merge-plugin to 1.2.0
Bryan Davis [Fri, 26 Jun 2015 20:37:54 +0000 (14:37 -0600)]
Bump wikimedia/composer-merge-plugin to 1.2.0

* Mark as compatible with composer-plugin-api >=1.0, <2.0
* Hook post-install/post-update so the plugin can take effect on initial
  install
* Fix crash when root package includes a branch-alias (#26)

Change-Id: I2e0d141f6e6a80d9667e60a16bec00d52a5eedea