lhc/web/wiklou.git
8 years agoi18nize [[Special:RandomInCategory]] submit button
Douglas Gardner [Mon, 8 Jun 2015 19:17:42 +0000 (20:17 +0100)]
i18nize [[Special:RandomInCategory]] submit button

This commit fixes a regression caused by an earlier refactor of the
Special:RandomInCategory page, which introduced message reuse. This
commit splits the message again.

Bug: T101717
Change-Id: Iabfe172b2e1d8464262b244337789bca388460f8

8 years agoMerge "Use localization for server default timezone on Special:Preferences"
jenkins-bot [Sun, 5 Jul 2015 16:55:34 +0000 (16:55 +0000)]
Merge "Use localization for server default timezone on Special:Preferences"

8 years agoMerge "Removing obsolete `-moz-inline-block` property"
jenkins-bot [Sun, 5 Jul 2015 12:42:28 +0000 (12:42 +0000)]
Merge "Removing obsolete `-moz-inline-block` property"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 4 Jul 2015 17:56:59 +0000 (19:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iaf200f28c06c3dddc582581c5c69bbb260e8351e

8 years agoUse localization for server default timezone on Special:Preferences
umherirrender [Sun, 19 Apr 2015 17:39:23 +0000 (19:39 +0200)]
Use localization for server default timezone on Special:Preferences

The timezone list on Special:Preferences contains all time zones with a
localized region and also an option to use the system default value.
The message for this option gets the current server timezone as
parameter, but that parameter is not localized.
Refactor the timezone list processing into a new function and call it at
the beginning to do a lookup for the localized name and use it, if it
exists in the array.

Also changed from procedural style to object oriented style for the
DateTime processing.

Bug: T33516
Change-Id: I00e81324d0d16fbe6c9811480210ab6513461823

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 3 Jul 2015 18:16:54 +0000 (20:16 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If1a80bd1be0256e5ba3d60b15454f194515f1d47

8 years agoMerge "Add missing dependency to mediawiki.widgets"
jenkins-bot [Fri, 3 Jul 2015 12:55:08 +0000 (12:55 +0000)]
Merge "Add missing dependency to mediawiki.widgets"

8 years agoRemoving obsolete `-moz-inline-block` property
Bartosz Dziewoński [Fri, 3 Jul 2015 10:41:56 +0000 (12:41 +0200)]
Removing obsolete `-moz-inline-block` property

Bug: T103605
Change-Id: Id689cfd629d94a82999020121d4275c5daac4e58

8 years agoMerge "RawAction: Clean up max-age/s-maxage computation"
jenkins-bot [Fri, 3 Jul 2015 08:12:07 +0000 (08:12 +0000)]
Merge "RawAction: Clean up max-age/s-maxage computation"

8 years agoMerge "API: Use message-per-value for apihelp-query+revisions+base-param-prop"
jenkins-bot [Fri, 3 Jul 2015 06:19:16 +0000 (06:19 +0000)]
Merge "API: Use message-per-value for apihelp-query+revisions+base-param-prop"

8 years agoAPI: Remove some unused i18n messages
Brad Jorsch [Thu, 2 Jul 2015 18:59:00 +0000 (14:59 -0400)]
API: Remove some unused i18n messages

apihelp-query+deletedrevisions-param-limit and
apihelp-query+deletedrevisions-param-prop aren't actually used. Instead
these are documented with apihelp-query+revisions+base-param-limit and
apihelp-query+revisions+base-param-prop, respectively.

Change-Id: I4a337e21695c34ab5fe44411978fcce78dce4ac7

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 agoFauxRequest: Add @since for new setHeaders and setCookie methods
Timo Tijhof [Fri, 3 Jul 2015 01:38:50 +0000 (02:38 +0100)]
FauxRequest: Add @since for new setHeaders and setCookie methods

Follows-up 53b0df09ab69.

Change-Id: Ia854aef848062624eccc6a5b25b7d1f1f8fbc444

8 years agoRawAction: Clean up max-age/s-maxage computation
Timo Tijhof [Fri, 3 Jul 2015 01:27:05 +0000 (02:27 +0100)]
RawAction: Clean up max-age/s-maxage computation

No behavioural change, but makes the code easier to understand.
It was somewhat all scattered.

* Remove outdated comment about 24 hours.
  - ForcedRawSMaxage defaults to 5 minutes.
  - SquidMaxage defaults to 5 hours (wmf-config: 31 days).

Change-Id: I7f3b67780ba9e8c024dcbd68772495b91abb2d01

8 years agoMerge "Log http error in ForeignAPIRepo::httpGet"
jenkins-bot [Thu, 2 Jul 2015 22:39:15 +0000 (22:39 +0000)]
Merge "Log http error in ForeignAPIRepo::httpGet"

8 years agoMerge "Add cookies and improve headers in FauxRequest"
jenkins-bot [Thu, 2 Jul 2015 19:03:45 +0000 (19:03 +0000)]
Merge "Add cookies and improve headers in FauxRequest"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 2 Jul 2015 18:55:02 +0000 (20:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If712259c32498a8c9ce1242e828bebe9c04f8805

8 years agoAdd cookies and improve headers in FauxRequest
Brad Jorsch [Thu, 2 Jul 2015 16:40:35 +0000 (12:40 -0400)]
Add cookies and improve headers in FauxRequest

For testing, it can be useful for a FauxRequest to actually contain
cookies. And for convenience, it's useful to allow setting headers by
passing an array rather than by making multiple calls to ->setHeader().

Change-Id: I3b84246e954aae594490927d2b0a57336af2e3a5

8 years agoMerge "Revision: Interpret a NULL rev_content_model as the default model"
jenkins-bot [Thu, 2 Jul 2015 15:02:08 +0000 (15:02 +0000)]
Merge "Revision: Interpret a NULL rev_content_model as the default model"

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 agoRevision: Interpret a NULL rev_content_model as the default model
Kunal Mehta [Thu, 2 Jul 2015 07:40:40 +0000 (00:40 -0700)]
Revision: Interpret a NULL rev_content_model as the default model

If a revision using the default content model is saved, the
rev_content_model field will be set to NULL in order to save space.
However, Revision::getContentModel() was using Title::getContentModel()
when it found a NULL, which will return the current content model rather
than the default. So change that to use the default content model, as
returned by ContentHandler::getDefaultModelFor() rather than the current
one.

Change-Id: I7011812b6b131170b3c593917ad263bcba83898d

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 agoAdd missing dependency to mediawiki.widgets
Kunal Mehta [Wed, 1 Jul 2015 05:23:25 +0000 (22:23 -0700)]
Add missing dependency to mediawiki.widgets

mw.widgets.TitleOptionWidget.js depends upon jquery.autoEllipsis.

Change-Id: I042d0630fce576911daaa891e1ab55650d1823a0

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 agoLog http error in ForeignAPIRepo::httpGet
umherirrender [Sun, 28 Jun 2015 18:03:00 +0000 (20:03 +0200)]
Log http error in ForeignAPIRepo::httpGet

This makes at least the "SSL certificate problem: unable to get local
issuer certificate" visible.

Change-Id: Icf0658b5e9f7ac9c58f98291345442f8e405435f

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