lhc/web/wiklou.git
8 years agoRework PHP and vendor check
paladox [Sun, 5 Jul 2015 12:42:28 +0000 (12:42 +0000)]
Rework PHP and vendor check

* separate warnings for PHP version and vendor

* new wfGenericError() function

* minimum PHP version in a single place

Bug: T102094
Change-Id: I7ae0369e4bab279d5e1bc754fe1a0bc8543bb2ed

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

Change-Id: I08af6f41650b994a6922bb0f78be7c52329df105

8 years agoMerge "Log thumbnail access"
jenkins-bot [Mon, 20 Jul 2015 18:55:07 +0000 (18:55 +0000)]
Merge "Log thumbnail access"

8 years agoLog thumbnail access
Gilles Dubuc [Mon, 20 Jul 2015 17:59:36 +0000 (19:59 +0200)]
Log thumbnail access

Bug: T106323
Change-Id: Iddd4201b13a31f441c6d25bcde6564b643cefdb4

8 years agoMerge "Removed redundant signatures from DatabaseBase"
jenkins-bot [Mon, 20 Jul 2015 18:34:12 +0000 (18:34 +0000)]
Merge "Removed redundant signatures from DatabaseBase"

8 years agoMerge "Fix doc-blocks for some HTMLForm elements"
jenkins-bot [Mon, 20 Jul 2015 17:12:25 +0000 (17:12 +0000)]
Merge "Fix doc-blocks for some HTMLForm elements"

8 years agoFix doc-blocks for some HTMLForm elements
Florian [Mon, 20 Jul 2015 16:27:36 +0000 (18:27 +0200)]
Fix doc-blocks for some HTMLForm elements

The @return doxygen parameter can take a class with a namespace, but
the \ needs to be escaped with an additional \. "\value" is usually interpreted
as a special command.

Actually with "@return OOUI\Widget", e.g., you'll get this output in your docs:
return OOUI

and an error message in the doxygen generation with something like "unknown command \Widget".

With "@return OOUI\\Widget" you'll get the expected output:
return OOUI\Widget

without any error message.

Change-Id: I14c4d7521f81ddd8c7b56facc1f0ae34f86b2299

8 years agoSupport redirects in JavaScriptContent
Kunal Mehta [Tue, 23 Sep 2014 22:41:03 +0000 (15:41 -0700)]
Support redirects in JavaScriptContent

When a JavaScript page is moved, a "redirect" in the form of
mw.loader.load(...) will be left behind, so any other
JavaScript loading the page that way will still work, albeit
with an extra HTTP request.

This also implements Content::getRedirectTarget(), so redirects
are marked properly in the database, and users viewing them
are redirected properly. A magic "/* #REDIRECT */" comment
must be in front of the mw.loader.load call. This is done so
that pages which currently are just one mw.loader.load call
aren't turned into redirects.

Bug: 71200
Bug: 33973
Change-Id: I10fdff087a901da56fad64531f0e382f90ebcf37

8 years agoMerge "Add edit link to each row on Special:WhatLinksHere"
jenkins-bot [Mon, 20 Jul 2015 14:53:04 +0000 (14:53 +0000)]
Merge "Add edit link to each row on Special:WhatLinksHere"

8 years agoMerge "Don't ignore autofocus in HTMLForm"
jenkins-bot [Mon, 20 Jul 2015 14:42:36 +0000 (14:42 +0000)]
Merge "Don't ignore autofocus in HTMLForm"

8 years agoMerge "Implement UserInputWidget in OOUI/MW Widgets"
jenkins-bot [Mon, 20 Jul 2015 14:42:32 +0000 (14:42 +0000)]
Merge "Implement UserInputWidget in OOUI/MW Widgets"

8 years agoMerge "jquery.makeCollapsible: Make it possible to clone a collapsible"
jenkins-bot [Mon, 20 Jul 2015 12:12:48 +0000 (12:12 +0000)]
Merge "jquery.makeCollapsible: Make it possible to clone a collapsible"

8 years agoDon't ignore autofocus in HTMLForm
Florian [Mon, 20 Jul 2015 04:26:39 +0000 (06:26 +0200)]
Don't ignore autofocus in HTMLForm

Autofocus needs to be boolean true to work in OOUI (empty string is interpreted
as false), and it's working in div layout, too, so there is no need to transform
it into a string.

Change-Id: I8cb57e0b701c7bc07e75ae60ecd98911ac37d30f

8 years agoImplement UserInputWidget in OOUI/MW Widgets
Florian [Fri, 17 Jul 2015 22:04:02 +0000 (00:04 +0200)]
Implement UserInputWidget in OOUI/MW Widgets

To use OOUI for forms with user name autocomplete, the new widget
UserInputWidget interacts like the jQuery pendant (working with css
class "mw-autocomplete-user").

It is also available in HTMLForm as "user".

Example usage: Iaeff912e6437d6ebef0d5b1919ce8cf53a7fd5f1

Change-Id: I9501c85f4288c255bbe3a5284e99b57b6169916f

8 years agoMerge "Fix notice on Special:UserLogin"
jenkins-bot [Sun, 19 Jul 2015 23:30:28 +0000 (23:30 +0000)]
Merge "Fix notice on Special:UserLogin"

8 years agoMerge "Do not suggest alternate svg sizes bigger than $wgMaxSVGSize on img pg"
jenkins-bot [Sun, 19 Jul 2015 22:57:14 +0000 (22:57 +0000)]
Merge "Do not suggest alternate svg sizes bigger than $wgMaxSVGSize on img pg"

8 years agoFix notice on Special:UserLogin
Florian [Sun, 19 Jul 2015 22:13:40 +0000 (00:13 +0200)]
Fix notice on Special:UserLogin

Follow up: Ia81f7c52f08e8dcc73ac751432560c4077d4bd39

Change-Id: Iee6cdb0f29348badad6fe629c82b1ed36c36e3f2

8 years agoDo not suggest alternate svg sizes bigger than $wgMaxSVGSize on img pg
Brian Wolff [Sun, 19 Jul 2015 11:26:58 +0000 (05:26 -0600)]
Do not suggest alternate svg sizes bigger than $wgMaxSVGSize on img pg

Suggesting a size bigger than the max svg size, will simply result
in a smaller rendering than the user has been lead to believe they
would recieve.

Additionally fix wrong argument order to $this->getThumbSizes
which was causing the nominal size for an SVG to not be suggested
as an alternate size on the image page.

See some of the comments T106263 (However, that bug is not about
this issue).

Change-Id: Ia63ddd6e89725f8e7979687310c3b6819da0cbbc

8 years agoRemoved redundant signatures from DatabaseBase
Aaron Schulz [Sun, 19 Jul 2015 20:50:32 +0000 (13:50 -0700)]
Removed redundant signatures from DatabaseBase

Change-Id: I35816c752cd1b782796989a2d5ac4fe5eff78e55

8 years agoMerge "Allow extensions to add a banner to UserLogin and CreateAccount special pages"
jenkins-bot [Sun, 19 Jul 2015 20:50:08 +0000 (20:50 +0000)]
Merge "Allow extensions to add a banner to UserLogin and CreateAccount special pages"

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

Change-Id: I9a052788ec4728d10751bfb9a920d63c6a1e9077

8 years agoUse CACHE_ACCEL for SiteLists if on HHVM
Marius Hoch [Sun, 19 Jul 2015 17:29:58 +0000 (12:29 -0500)]
Use CACHE_ACCEL for SiteLists if on HHVM

Bug: T58602
Change-Id: I3eeedddeb79cfbee734cfe49fe86d32bf826040a

8 years agoFix fatal when non-ascii message key is normalized
Brian Wolff [Sun, 19 Jul 2015 08:54:35 +0000 (02:54 -0600)]
Fix fatal when non-ascii message key is normalized

Missing global declaration when using $wgContLang in
MessageCache::normalizeKey

Change-Id: Ia1c1f41244fd5629527b99a5f2038f607cff42c4
Follow-up: 47e0f0c3

8 years agoAdd tests for 47e0f0c3 (MessageCache::normalizeKey())
Brian Wolff [Sun, 19 Jul 2015 09:02:57 +0000 (03:02 -0600)]
Add tests for 47e0f0c3 (MessageCache::normalizeKey())

Change-Id: If8c88383ccfcfcf08d3d85e5648eb338f0d14268

8 years agofindHooks: Exit with a status code of 1 if issues are found
Kunal Mehta [Mon, 25 Aug 2014 05:15:05 +0000 (22:15 -0700)]
findHooks: Exit with a status code of 1 if issues are found

This will make it easier to have something automated run
the script since it can check the exit code of the script
so see if any issues were found.

Also fixed the printing of "Looks good!", which wasn't happening
if a hook was being ignored. The check for ignoring was moved up
and out of the print logic.

Change-Id: I683a131a804d4fac9a21f386b2756e050219d392

8 years agoMerge "maintenance: Add --query option in sql.php"
jenkins-bot [Sat, 18 Jul 2015 21:29:51 +0000 (21:29 +0000)]
Merge "maintenance: Add --query option in sql.php"

8 years agoMerge "Add public keywords to the QueryPage base class"
jenkins-bot [Sat, 18 Jul 2015 21:28:03 +0000 (21:28 +0000)]
Merge "Add public keywords to the QueryPage base class"

8 years agomaintenance: Add --query option in sql.php
Timo Tijhof [Sat, 18 Jul 2015 20:21:00 +0000 (15:21 -0500)]
maintenance: Add --query option in sql.php

This makes it easier to run a query in a scripted fashion,
e.g. with Wikimedia's foreachwiki.

Change-Id: I5562be2fb0871817ee55f1395b686537069f78dc

8 years agoAllow whitespace between indent and table start tag
Arlo Breault [Wed, 8 Jul 2015 21:17:59 +0000 (14:17 -0700)]
Allow whitespace between indent and table start tag

 * \s matches the trim on the line.

 * Since leading space is ok for table start tags, and you can use them
   in ":" context, you should be able to compose the two together.

Bug: T105238
Change-Id: Id08e24e5dd2bb8ca09453adec87b21225df4a840

8 years agoAdd public keywords to the QueryPage base class
Thiemo Mättig [Sat, 18 Jul 2015 19:51:07 +0000 (14:51 -0500)]
Add public keywords to the QueryPage base class

A lot more methods do not have visibility keywords. Some probably
should be private, a lot need to be protected, but all this will be
a breaking change. In this patch I'm focusing on methods that are
already used as public methods. The added public keyword is not a
breaking change because it's the default anyway.

Change-Id: I52e34209557b00f97a4e68250afbeb7647b64146

8 years agoMerge "Removed squid purge in generateAndSaveThumb()"
jenkins-bot [Sat, 18 Jul 2015 19:45:33 +0000 (19:45 +0000)]
Merge "Removed squid purge in generateAndSaveThumb()"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 18 Jul 2015 19:43:41 +0000 (19:43 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoMerge "Added FIXME to default Database replace() implementation"
jenkins-bot [Sat, 18 Jul 2015 19:37:56 +0000 (19:37 +0000)]
Merge "Added FIXME to default Database replace() implementation"

8 years agoMerge "Set $wgPasswordResetRoutes['email'] = true by default"
jenkins-bot [Sat, 18 Jul 2015 19:36:42 +0000 (19:36 +0000)]
Merge "Set $wgPasswordResetRoutes['email'] = true by default"

8 years agoMerge "Add missing paths to maintenance/findHooks.php"
jenkins-bot [Sat, 18 Jul 2015 19:36:39 +0000 (19:36 +0000)]
Merge "Add missing paths to maintenance/findHooks.php"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 18 Jul 2015 19:35:14 +0000 (21:35 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie3feb95b7b7f4fdc020db18c99f7d361c8837afc

8 years agoSet $wgPasswordResetRoutes['email'] = true by default
Nemo bis [Sat, 18 Jul 2015 16:19:19 +0000 (18:19 +0200)]
Set $wgPasswordResetRoutes['email'] = true by default

It was not only for worries about large wikis, see 3ef8a83c0.
Wikipedia has been using it for a long while.

Change-Id: Ibab7fa860ba3ab56366c63626516e69984cd1934

8 years agoFix name of the 'PageViewUpdates' hook in docs
Ricordisamoa [Sat, 18 Jul 2015 07:57:13 +0000 (09:57 +0200)]
Fix name of the 'PageViewUpdates' hook in docs

Added with commit 12c370c68b8bb2388be1829968e48d73f3b8d2e9

Change-Id: I53e90c2185841da1b4e2245f96748a1830003967

8 years agoAdd missing paths to maintenance/findHooks.php
Ricordisamoa [Sat, 18 Jul 2015 08:06:17 +0000 (10:06 +0200)]
Add missing paths to maintenance/findHooks.php

* includes/changetags/
  created with commit 5c4681012e78a8d5004eea917eba90d448d7e0f3

* includes/exception/
  created with commit 557af130868dacfb981e916baa4dcbcb866e16a1

* includes/password/
  created with commit 95a8974c6bda2c6353612c40b01b9c78527b8956

Change-Id: Ie9047a1849969a078465d1e81ada16a7b47bc0ec

8 years agoMerge "Defer user_newtalk updates in clearNotification() to post-send"
Aaron Schulz [Sat, 18 Jul 2015 03:17:06 +0000 (03:17 +0000)]
Merge "Defer user_newtalk updates in clearNotification() to post-send"

8 years agoMerge "Use Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers"
jenkins-bot [Fri, 17 Jul 2015 23:55:17 +0000 (23:55 +0000)]
Merge "Use Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers"

8 years agoMerge "Check for any content of MediaWiki namespace titles before passing it through...
jenkins-bot [Fri, 17 Jul 2015 23:54:47 +0000 (23:54 +0000)]
Merge "Check for any content of MediaWiki namespace titles before passing it through ContentHandler"

8 years agoCheck for any content of MediaWiki namespace titles before passing it through Content...
Alex Monk [Fri, 17 Jul 2015 23:25:24 +0000 (18:25 -0500)]
Check for any content of MediaWiki namespace titles before passing it through ContentHandler

Follows up I302d7915

Change-Id: I484bc45681d2a916aaa1e174e9235515aea62930

8 years agoAdded FIXME to default Database replace() implementation
Aaron Schulz [Fri, 17 Jul 2015 22:22:54 +0000 (15:22 -0700)]
Added FIXME to default Database replace() implementation

Change-Id: I3ec0ec066248ee733b41f9c70d40382d96898613

8 years agoDefer user_newtalk updates in clearNotification() to post-send
Aaron Schulz [Thu, 16 Jul 2015 23:06:13 +0000 (16:06 -0700)]
Defer user_newtalk updates in clearNotification() to post-send

* Also only issue DELETE if notifications exist. Previously,
  this would issue a DELETE for all self talk page views.

Bug: T92007
Change-Id: Ifef11c9e5175d68d9615e59e2ed7de2f2c57bde1

8 years agoAvoid using trigger_error() in addMissingMetadata()
Aaron Schulz [Fri, 17 Jul 2015 20:28:48 +0000 (13:28 -0700)]
Avoid using trigger_error() in addMissingMetadata()

* Just use the normal swift log instead

Bug: T105810
Change-Id: Ifa463e6298a1b57ab6a8d92f9defc744619d9fb6

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 17 Jul 2015 19:52:34 +0000 (21:52 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia434298289d67f6bdb3147d4dd0cc24d6576fa8a

8 years agoMerge "Special:JavaScriptTest: Redirect to /qunit/plain by default"
jenkins-bot [Fri, 17 Jul 2015 19:35:19 +0000 (19:35 +0000)]
Merge "Special:JavaScriptTest: Redirect to /qunit/plain by default"

8 years agoRemoved squid purge in generateAndSaveThumb()
Aaron Schulz [Fri, 17 Jul 2015 19:27:17 +0000 (12:27 -0700)]
Removed squid purge in generateAndSaveThumb()

* This is only useful for fixing thumbnails by manually making
  a thumb.php (non cache-handled) URL. This is what ?action=purge
  is for. The only edge case is when the thumb listings are out
  of sync with CDN, in which case ?action=purge does not work.

Change-Id: I755532f08aa23e651f118b1efff937e3314805eb

8 years agoMerge "Update Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani...
jenkins-bot [Fri, 17 Jul 2015 19:11:01 +0000 (19:11 +0000)]
Merge "Update Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani (azb)"

8 years agoMerge "Refine thumbnailing metrics"
jenkins-bot [Fri, 17 Jul 2015 19:03:52 +0000 (19:03 +0000)]
Merge "Refine thumbnailing metrics"

8 years agoSpecial:JavaScriptTest: Redirect to /qunit/plain by default
Kunal Mehta [Fri, 10 Jul 2015 03:40:27 +0000 (20:40 -0700)]
Special:JavaScriptTest: Redirect to /qunit/plain by default

Currently there's only one framework, so having an error landing page
when visiting Special:JavaScriptTest isn't helpful. DWIM and send the
user to Special:JavaScriptTest/qunit/plain if that is the only framework
that is configured.

Also add the testing help link to the "/plain" view.

Change-Id: Ifc473d080ecf6f0a9add0510480ba9dad76050e9

8 years agoMerge "Don't break installation when the local db root user has no password"
jenkins-bot [Fri, 17 Jul 2015 16:02:03 +0000 (16:02 +0000)]
Merge "Don't break installation when the local db root user has no password"

8 years agoDon't break installation when the local db root user has no password
Brion Vibber [Fri, 17 Jul 2015 13:42:37 +0000 (08:42 -0500)]
Don't break installation when the local db root user has no password

Reverts broken patch 0cf4e92d; it seems to have been intended to
validate the *to be created* db username/pass, but instead it
validates the *installation username/pass*. This made it impossible
to install if your db user had no password, as on many default dev
installations.

Bug: T85281
Change-Id: I0caaf8b9a244d6f4dad0cba32c566ea557f77fcc

8 years agoImplement NamespaceInputWidget
Bartosz Dziewoński [Tue, 14 Jul 2015 20:30:06 +0000 (22:30 +0200)]
Implement NamespaceInputWidget

* Add PHP version of NamespaceInputWidget, co-authored by Florian,
  which consists of a DropdownInputWidget offering a choice of
  namespaces and two CheckboxInputWidgets allowing to also match
  associated namespace (talk/content) or to invert the choice.
* Add an incomplete JS version of NamespaceInputWidget, which is only
  really functional when infused from the PHP version (it can't
  generate the dropdown by itself, for example). Implement some JS to
  improve the experience of selecting the "all namespaces" option in
  the dropdown (by disabling the checkboxes when this happens).
* Split off a 'mediawiki.widgets.styles' module, which has the basic
  styles for PHP widgets which are to be loaded in the head. Make
  OutputPage::enableOOUI() also add this module (which should stay
  reasonably small).
* Use the new widget in HTMLForm's HTMLSelectNamespace field. It can
  be seen in action on Special:LinkSearch, for example.

Co-Authored-By: Florian <florian.schmidt.welzow@t-online.de>
Co-Authored-By: Bartosz Dziewoński <matma.rex@gmail.com>
Change-Id: I5cbfa9d0f6a8641148ce476b7dbe65e9096b4485

8 years agoRefine thumbnailing metrics
Gilles Dubuc [Fri, 17 Jul 2015 11:48:56 +0000 (13:48 +0200)]
Refine thumbnailing metrics

Bug: T105681
Change-Id: Icf576a1718eb2e588af4c48c05362bbef3bb7942

8 years agoMerge "Namespace names for Western Punjabi (pnb)"
jenkins-bot [Fri, 17 Jul 2015 03:36:25 +0000 (03:36 +0000)]
Merge "Namespace names for Western Punjabi (pnb)"

8 years agoNamespace names for Western Punjabi (pnb)
Amir E. Aharoni [Thu, 16 Jul 2015 21:39:31 +0000 (16:39 -0500)]
Namespace names for Western Punjabi (pnb)

Written at the Wikimania Hackathon 2015 with Khalid Mahmood.

Change-Id: I8d349cc2aaf9e469afda5203b4c4bcbc7387af05

8 years agoMerge "Ignore some ScopedCallback IDE warnings"
jenkins-bot [Thu, 16 Jul 2015 23:32:22 +0000 (23:32 +0000)]
Merge "Ignore some ScopedCallback IDE warnings"

8 years agoMerge "Tweaked User::READ_LOCKING to use LOCK IN SHARE MODE"
jenkins-bot [Thu, 16 Jul 2015 22:26:32 +0000 (22:26 +0000)]
Merge "Tweaked User::READ_LOCKING to use LOCK IN SHARE MODE"

8 years agoMerge "TitleInputWidget: Correct links when 'relative' option used"
jenkins-bot [Thu, 16 Jul 2015 22:10:32 +0000 (22:10 +0000)]
Merge "TitleInputWidget: Correct links when 'relative' option used"

8 years agoMerge "This should fix T105373"
jenkins-bot [Thu, 16 Jul 2015 21:55:03 +0000 (21:55 +0000)]
Merge "This should fix T105373"

8 years agoMerge "InfoAction: Use watchlist query group for watchlist queries"
jenkins-bot [Thu, 16 Jul 2015 21:40:41 +0000 (21:40 +0000)]
Merge "InfoAction: Use watchlist query group for watchlist queries"

8 years agoInfoAction: Use watchlist query group for watchlist queries
Alex Monk [Thu, 16 Jul 2015 20:42:53 +0000 (15:42 -0500)]
InfoAction: Use watchlist query group for watchlist queries

Bug: T105852
Change-Id: I8fd38caf04e60f34f76077cd66e447f09fa2f487

8 years agoMerge "Use deferred updates in place of $wgActivityUpdatesUseJobQueue"
jenkins-bot [Thu, 16 Jul 2015 20:29:50 +0000 (20:29 +0000)]
Merge "Use deferred updates in place of $wgActivityUpdatesUseJobQueue"

8 years agoUpdate Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani (azb)
mjbmr [Thu, 16 Jul 2015 20:05:53 +0000 (20:05 +0000)]
Update Namespaces, SpecialPageAliases and MagicWords for South Azerbaijani (azb)

* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-Namespaces/azb
* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-SpecialPageAliases/azb
* https://translatewiki.net/wiki/MediaWiki:Sp-translate-data-MagicWords/azb

Change-Id: Ibffd0e7a2d0d8e70b3433876641c0b562c2114e9

8 years agoMerge "Improve serialization of Message, Title"
jenkins-bot [Thu, 16 Jul 2015 19:52:16 +0000 (19:52 +0000)]
Merge "Improve serialization of Message, Title"

8 years agoMerge "mediawiki.page.ready: When infusing, infuse by id, not by element"
jenkins-bot [Thu, 16 Jul 2015 19:38:27 +0000 (19:38 +0000)]
Merge "mediawiki.page.ready: When infusing, infuse by id, not by element"

8 years agoTitleInputWidget: Correct links when 'relative' option used
Bartosz Dziewoński [Thu, 16 Jul 2015 18:37:16 +0000 (20:37 +0200)]
TitleInputWidget: Correct links when 'relative' option used

Previously, the links in the suggestions dropdown also pointed to
the relative version, e.g. "/wiki/Foo" instead of "/wiki/Template:Foo".

This also corrects missing dependency for mediawiki.util, which
is no longer used directly (although mediawiki.Title depends on it,
so the code worked correctly in spite of missing dependency).

Follow-up to ddca1c657e21bd49c01ead2e5e0fbcdb9ee26255.

Change-Id: I8f9293636c597cd617e68b4c238d7424915cf351

8 years agoOOUIHTMLForm: Make sure arguments to OOUI\HtmlSnippet are really strings
Bartosz Dziewoński [Thu, 16 Jul 2015 18:59:11 +0000 (20:59 +0200)]
OOUIHTMLForm: Make sure arguments to OOUI\HtmlSnippet are really strings

    Catchable fatal error: Method OOUI\HtmlSnippet::__toString()
    must return a string value in
    /var/www/html/w/vendor/oojs/oojs-ui/php/Element.php on line 245

$this->getHelpText() can return null.

Maybe OOUI\HtmlSnippet should be doing the casting instead, but it
currently doesn't.

Follow-up to 3ec3f08ca5c7bfae820bbc8085eff0809abd688b.

Change-Id: I0bb2a1594ea5ffd86bf8abd41c13f9451df256d5

8 years agoThis should fix T105373
Mukunda Modell [Thu, 16 Jul 2015 19:01:55 +0000 (14:01 -0500)]
This should fix T105373

See also Ia481d8a4cd9ed347874d351fa58b2712f3077a47
which is the same change on 1.26wmf14, but in a different file
because this class moved since the branch cut for wmf14.

Bug: T105373
Change-Id: Ib46e82a8c14f1f1955da268ef0ade2ab9cb39ab7

8 years agomediawiki.page.ready: When infusing, infuse by id, not by element
Bartosz Dziewoński [Tue, 14 Jul 2015 20:06:07 +0000 (22:06 +0200)]
mediawiki.page.ready: When infusing, infuse by id, not by element

Workaround for T105828 in OOUI.

Change-Id: I0cf5c9bc527d20c22d4238624985c8c54a20b4d4

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 16 Jul 2015 18:41:23 +0000 (18:41 +0000)]
Merge "Localisation updates from https://translatewiki.net."

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

Change-Id: I09b03449679e9389e167c25d80cef52ba206dd3e

8 years agoMerge "HTMLForm: Add 'title' type"
jenkins-bot [Thu, 16 Jul 2015 18:33:13 +0000 (18:33 +0000)]
Merge "HTMLForm: Add 'title' type"

8 years agoMerge "Change "included" to "transcluded" in messages about cascading"
jenkins-bot [Thu, 16 Jul 2015 18:31:48 +0000 (18:31 +0000)]
Merge "Change "included" to "transcluded" in messages about cascading"

8 years agoMerge "OOUIHTMLForm: Wrap help text in OOUI\HtmlSnippet"
jenkins-bot [Thu, 16 Jul 2015 18:14:44 +0000 (18:14 +0000)]
Merge "OOUIHTMLForm: Wrap help text in OOUI\HtmlSnippet"

8 years agoUse Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers
Bartosz Dziewoński [Mon, 13 Jul 2015 18:02:49 +0000 (20:02 +0200)]
Use Node.ELEMENT_NODE and Node.TEXT_NODE constants instead of magic numbers

Updating all non-third-party scripts to depend on 'dom-level2-shim'
and use the constants.

* jquery.highlightText
* jquery.tablesorter
* mediawiki.api.upload
* test.mediawiki.qunit.testrunner

Change-Id: Ib07dded9fa18c749b3c064ab90326852146567b2

8 years agoAllow extensions to add a banner to UserLogin and CreateAccount special pages
Florian [Tue, 7 Jul 2015 16:51:27 +0000 (18:51 +0200)]
Allow extensions to add a banner to UserLogin and CreateAccount special pages

Some extensions, e.g. MobileFrontend, customize the UserLogin and UserCreate
special pages. This change adds the possibility to add some HTML after the warning
and/or error messages are printed to the output. This will be used in
MobileFrontend to get rid of the own userlogin template.

Bug: T87261
Change-Id: Ia81f7c52f08e8dcc73ac751432560c4077d4bd39

8 years agomediawiki.api.upload: Correct response handling of #uploadWithFormData
Bartosz Dziewoński [Mon, 13 Jul 2015 18:14:21 +0000 (20:14 +0200)]
mediawiki.api.upload: Correct response handling of #uploadWithFormData

* Reject instead of resolving when API reports errors, like #uploadWithIframe
* Purge bad tokens correctly, like #uploadWithIframe

Change-Id: I42fe6f6e921fe29dd96ce5b75ad61014a7346fc9

8 years agoFix issue with needToken patch to Api.upload
Mark Holmquist [Thu, 16 Jul 2015 14:15:52 +0000 (09:15 -0500)]
Fix issue with needToken patch to Api.upload

Fails currently for formData-enabled browsers where a token is not needed.

Change-Id: If5f1e9257fae770ea63a50ba8454e6617c77a455

8 years agoMerge "Normalize message name in Allmessages"
jenkins-bot [Thu, 16 Jul 2015 13:58:07 +0000 (13:58 +0000)]
Merge "Normalize message name in Allmessages"

8 years agoChinese Conversion Table Update 2015-6
Chiefwei [Thu, 16 Jul 2015 03:51:39 +0000 (11:51 +0800)]
Chinese Conversion Table Update 2015-6

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: Ibf6d776d07a611a2afcb2c6c984074c39c8c0d70

8 years agoMerge "API: Fixed documentation for hasmg parameter"
jenkins-bot [Thu, 16 Jul 2015 03:38:06 +0000 (03:38 +0000)]
Merge "API: Fixed documentation for hasmg parameter"

8 years agoAPI: Fixed documentation for hasmg parameter
quiddity [Thu, 16 Jul 2015 02:58:58 +0000 (21:58 -0500)]
API: Fixed documentation for hasmg parameter

The API returns a plural "messages" key.

Bug: T105120
Change-Id: I385609b6b24ca767a0b0d26cfaec30ed423c3460

8 years agoConvert MWExceptionHandler to use structured logging
Bryan Davis [Sun, 24 May 2015 20:02:13 +0000 (22:02 +0200)]
Convert MWExceptionHandler to use structured logging

Replace wfDebugLog() calls in MWExceptionHandler with direct use of
LoggerFactory and LoggerInterface. Logged exceptions are added to the
log message context.

LegacyLogger is also updated to append stack traces to any log event
when $wgLogExceptionBacktrace is true and the PSR-3 recommendation of
passing the exception as an 'exception' context item.

Handling of context data in LegacyLogger is expanded to support arrays,
exceptions and common object types.

Bug: T88649
Change-Id: I71499d895582bdea033a2516c902e23e38084080

8 years agoUse deferred updates in place of $wgActivityUpdatesUseJobQueue
Aaron Schulz [Wed, 15 Jul 2015 23:47:46 +0000 (16:47 -0700)]
Use deferred updates in place of $wgActivityUpdatesUseJobQueue

* This is simpler and does not require custom queue loops

Bug: T91284
Change-Id: Icb8b6aaeb496a4ff3cd3a7e20cdbea0c7dabd677

8 years agoMerge "MonologSpi: Add method to provide additional configuration"
jenkins-bot [Wed, 15 Jul 2015 23:17:59 +0000 (23:17 +0000)]
Merge "MonologSpi: Add method to provide additional configuration"

8 years agoMerge "Add a bailout method for getEditToken"
jenkins-bot [Wed, 15 Jul 2015 21:18:56 +0000 (21:18 +0000)]
Merge "Add a bailout method for getEditToken"

8 years agoIgnore some ScopedCallback IDE warnings
Aaron Schulz [Wed, 15 Jul 2015 01:01:11 +0000 (18:01 -0700)]
Ignore some ScopedCallback IDE warnings

Change-Id: Iefe24ee5dae90d70c2acaaae9dc5d44c1758d53a

8 years agoAdd a bailout method for getEditToken
Mark Holmquist [Wed, 15 Jul 2015 20:41:36 +0000 (15:41 -0500)]
Add a bailout method for getEditToken

getEditToken is right handy for doing requests on the local wiki, but
CentralAuth yells at you if you leave a token= parameter in the request,
so we need to be able to turn this off.

Change-Id: I6212c6aa2f52671f22e227950a37dde6b65d5316

8 years agoMerge "Moved LoadMonitorMySQL to a separate file"
jenkins-bot [Wed, 15 Jul 2015 20:54:41 +0000 (20:54 +0000)]
Merge "Moved LoadMonitorMySQL to a separate file"

8 years agoNormalize message name in Allmessages
Geoffrey Mon [Mon, 13 Jul 2015 16:35:11 +0000 (12:35 -0400)]
Normalize message name in Allmessages

* Normalize the message name returned by allmessages
* Separate message key normalization into
  MessageCache::normalizeKey()

Bug: T63894
Change-Id: I1d89fc73fea705243d390bab91255a635d8f9eee

8 years agoMerge "Revert Count API module instantiations and Hook runs"
jenkins-bot [Wed, 15 Jul 2015 20:35:28 +0000 (20:35 +0000)]
Merge "Revert Count API module instantiations and Hook runs"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 15 Jul 2015 18:50:58 +0000 (20:50 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id26fe6fad7a66a5e500ee1c7a2e8f23afc888af3

8 years agoMerge "Support mustache partials in server-side templates"
jenkins-bot [Wed, 15 Jul 2015 15:05:03 +0000 (15:05 +0000)]
Merge "Support mustache partials in server-side templates"

8 years agoMerge "Hygiene: Use strtr() instead of str_replace() for character swapping"
jenkins-bot [Wed, 15 Jul 2015 09:39:45 +0000 (09:39 +0000)]
Merge "Hygiene: Use strtr() instead of str_replace() for character swapping"

8 years agojquery.makeCollapsible: Make it possible to clone a collapsible
Schnark [Wed, 15 Jul 2015 09:11:56 +0000 (09:11 +0000)]
jquery.makeCollapsible: Make it possible to clone a collapsible

Currently collapsible elements are no longer collapsible after you
cloned them and made them collapsible again, e.g. via

 $clone = $('#bodyContent').clone();
 mw.hook('wikipage.content').fire($clone);
 $('#bodyContent').replaceWith($clone);

This patch fixes this by ignoring the linksPassthru option on links
with href="#".

Bug: T71288
Change-Id: I954483f3e26f46172ec2374a3717f37dd309ca57

8 years agoMerge "mediawiki.jqueryMsg: Use load urls instead of file urls for debug"
jenkins-bot [Wed, 15 Jul 2015 07:40:36 +0000 (07:40 +0000)]
Merge "mediawiki.jqueryMsg: Use load urls instead of file urls for debug"

8 years agoMerge "Upgraded User::saveSettings logged errors to exceptions"
jenkins-bot [Wed, 15 Jul 2015 07:36:56 +0000 (07:36 +0000)]
Merge "Upgraded User::saveSettings logged errors to exceptions"