lhc/web/wiklou.git
8 years agoFix doxygen return class with namespace
Florianschmidtwelzow [Thu, 23 Jul 2015 05:42:41 +0000 (07:42 +0200)]
Fix doxygen return class with namespace

Doxygen uses a single "\" as a start sign for a command.
Anything after "OOUI" will be interpreted as a command
(and throws a warning "Unknown command" or something else) when
you create the doc. The doc itself will show the following
as the return values of the function:
Returns
    OOUI|OOUI

See: https://phabricator.wikimedia.org/F214499

As a workaround you can escape the backslash with a second
backslash (OOUI\\FieldLayout) or this notation should work, too:
OOUI::Fieldlayout

Follow up: I9050c4a09cbb841ad26ca01a25f706227e35e3be

Change-Id: I0c9300e72e00e1d827c63074cbaa51a935828695

8 years agoMerge "HTMLForm: Handle HTMLFormFieldWithButton subclasses in OOUI forms"
jenkins-bot [Thu, 23 Jul 2015 02:18:59 +0000 (02:18 +0000)]
Merge "HTMLForm: Handle HTMLFormFieldWithButton subclasses in OOUI forms"

8 years agoHTMLForm: Handle HTMLFormFieldWithButton subclasses in OOUI forms
Florian [Thu, 16 Jul 2015 17:59:59 +0000 (19:59 +0200)]
HTMLForm: Handle HTMLFormFieldWithButton subclasses in OOUI forms

Example usages in:
* I47a8649208279a4090623a3088112fcff9abc4d3 (Special:Watchlist)
* I2b3524e61efc618aa2b7484134bba562d5f9011c (Special:Export)

Change-Id: I9050c4a09cbb841ad26ca01a25f706227e35e3be
Co-Authored-By: Florian <florian.schmidt.welzow@t-online.de>
Co-Authored-By: Bartosz Dziewoński <matma.rex@gmail.com>
8 years agoDon't double-serialize values for APC
Ori Livneh [Wed, 22 Jul 2015 22:26:02 +0000 (15:26 -0700)]
Don't double-serialize values for APC

The last time we had encountered APC errors related to serialization /
unserialization was 2011. PHP's implementation has had many bugfixes since
then, and HHVM's implementation is a complete rewrite. So let's stop working
around alleged bugs.

To prevent errors resulting from HHVM code receiving serialize()d values when
it isn't expecting them, add a key suffix.

Change-Id: I4b2cf1715538aa3d9163787f43eb31984a380d35

8 years agoMerge "Add Southern Luri (luz)"
jenkins-bot [Wed, 22 Jul 2015 21:32:38 +0000 (21:32 +0000)]
Merge "Add Southern Luri (luz)"

8 years agoMerge "Disallow qqq as interface language"
jenkins-bot [Wed, 22 Jul 2015 21:21:13 +0000 (21:21 +0000)]
Merge "Disallow qqq as interface language"

8 years agoAdd Southern Luri (luz)
mjbmr [Sat, 27 Jun 2015 17:13:33 +0000 (17:13 +0000)]
Add Southern Luri (luz)

Also add ordered list style type for Southern Luri (luz)

Change-Id: I1099cb846f029df850126e59306849b0eec88e7b

8 years agoDisallow qqq as interface language
Niklas Laxström [Tue, 7 Jul 2015 12:44:49 +0000 (14:44 +0200)]
Disallow qqq as interface language

Any page on translatewiki with param setlang=qqq times out. All messages
get parsed recursively until parser-template-loop-warning is reached.
uselang=qqq is already ignored, see RequestContext::sanitizeLangCode.

There is a counterpart to this patch in ULS, where it is changed
to use Language::isSupportedLanguage.

Bug: T104987
Change-Id: Ie77fe18681dfd5f9089fbaa8090dd9cc1c206da4

8 years agoFix name of Western and Southern Balochi
mjbmr [Fri, 17 Jul 2015 23:03:27 +0000 (23:03 +0000)]
Fix name of Western and Southern Balochi

Current names are Persian and not equal to Western and Southern.
Changed to native values equal to Southern and Western.

Change-Id: Ie30acda8535042ece4c11c246c3c18fd7156fc54

8 years agoMerge "Use feature test rather than version check"
Aaron Schulz [Wed, 22 Jul 2015 20:10:10 +0000 (20:10 +0000)]
Merge "Use feature test rather than version check"

8 years agoMerge "Update OOjs UI to v0.12.1"
jenkins-bot [Wed, 22 Jul 2015 19:58:35 +0000 (19:58 +0000)]
Merge "Update OOjs UI to v0.12.1"

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

8 years agoMerge "Add linktrail for Latvian"
jenkins-bot [Wed, 22 Jul 2015 19:48:45 +0000 (19:48 +0000)]
Merge "Add linktrail for Latvian"

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

Change-Id: I0927e6088a726e7fcc50480e97632639bd7555aa

8 years agoUse feature test rather than version check
Niklas Laxström [Wed, 22 Jul 2015 19:43:17 +0000 (21:43 +0200)]
Use feature test rather than version check

Not sure why I didn't do this in the first place.

Bug: T106579
Change-Id: I238aedacd4f960ad4ca7549c232fd3a7eec3f02f

8 years agoUpdate OOjs UI to v0.12.1
James D. Forrester [Wed, 22 Jul 2015 19:41:02 +0000 (12:41 -0700)]
Update OOjs UI to v0.12.1

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

Change-Id: I2c1629c3f8a7f91003e0848de8bc78025a51bb8b

8 years agoAdd id to Parser tags/hooks headings
S Page [Tue, 21 Jul 2015 00:34:27 +0000 (17:34 -0700)]
Add id to Parser tags/hooks headings

All h2 headings in Special:Version had an id attribute except for
Parser extension tags and Parser function hooks.

Change-Id: I7d1d290862861b229791ba3973b502b44d9274f8

8 years agoMerge "mw.widgets.TitleInputWidget: Don't bypass namespace choice with redirects"
jenkins-bot [Wed, 22 Jul 2015 15:16:55 +0000 (15:16 +0000)]
Merge "mw.widgets.TitleInputWidget: Don't bypass namespace choice with redirects"

8 years agoMerge "mw.widgets.TitleInputWidget: Allow limiting to main namespace, too"
jenkins-bot [Wed, 22 Jul 2015 15:15:53 +0000 (15:15 +0000)]
Merge "mw.widgets.TitleInputWidget: Allow limiting to main namespace, too"

8 years agoAdd linktrail for Latvian
Amir E. Aharoni [Wed, 22 Jul 2015 14:18:27 +0000 (09:18 -0500)]
Add linktrail for Latvian

With special characters from the Latvian alphabet.

Bug: T106515
Change-Id: Ieb2a5607037457b0c4574b89b1cdb88b3885cb35

8 years agoMerge "Implement OOUI version of tag filter in ChangeTags"
jenkins-bot [Wed, 22 Jul 2015 13:44:41 +0000 (13:44 +0000)]
Merge "Implement OOUI version of tag filter in ChangeTags"

8 years agoMerge "Correct documentation of ChangeTags::buildTagFilterSelector"
jenkins-bot [Wed, 22 Jul 2015 13:43:26 +0000 (13:43 +0000)]
Merge "Correct documentation of ChangeTags::buildTagFilterSelector"

8 years agoMerge "Add LICENSE for mustache.js library"
jenkins-bot [Wed, 22 Jul 2015 12:20:34 +0000 (12:20 +0000)]
Merge "Add LICENSE for mustache.js library"

8 years agoMerge "widgets: Code quality and cleanup pass"
jenkins-bot [Wed, 22 Jul 2015 08:20:16 +0000 (08:20 +0000)]
Merge "widgets: Code quality and cleanup pass"

8 years agoAdd LICENSE for mustache.js library
Kunal Mehta [Wed, 22 Jul 2015 06:52:12 +0000 (23:52 -0700)]
Add LICENSE for mustache.js library

The mustache.js file does not contain any licensing information, so include
upstream's LICENSE file. Taken from
 <https://github.com/janl/mustache.js/blob/0.8.2/LICENSE>.

Change-Id: I57a21da20121222c39ce22bf998d508a8293dca2

8 years agomw.widgets.TitleInputWidget: Don't bypass namespace choice with redirects
Bartosz Dziewoński [Wed, 22 Jul 2015 00:16:20 +0000 (02:16 +0200)]
mw.widgets.TitleInputWidget: Don't bypass namespace choice with redirects

If 'namespace' was not null, and 'showRedirectTargets' was true (the default),
pages from namespaces other than the chosen one could appear in the
suggestions when a cross-namespace redirect from chosen to other namespace
was encountered. Prevent this.

Change-Id: Id863d002d598dc2429919e88dd2dde9e9836bb3d

8 years agomw.widgets.TitleInputWidget: Allow limiting to main namespace, too
Bartosz Dziewoński [Wed, 22 Jul 2015 00:14:04 +0000 (02:14 +0200)]
mw.widgets.TitleInputWidget: Allow limiting to main namespace, too

Not sure if it was intentional or a bug, but the widget would treat
`namespace: 0` (assume main namespace) in config the same as
`namespace: null` (allow all namespaces). This has been changed.

Change-Id: Iab2a76771de0debe9111d4ccce3477b022000e51

8 years agowidgets: Code quality and cleanup pass
Bartosz Dziewoński [Wed, 22 Jul 2015 00:01:16 +0000 (02:01 +0200)]
widgets: Code quality and cleanup pass

Fixing typos, enforcing coding conventions from OOUI,
renaming parameters, formatting code.

Change-Id: I92dc28c8ac3d6c00e40ad48d76730deb29edefec

8 years agoMade DB ignoreErrors() method protected
Aaron Schulz [Sun, 8 Mar 2015 15:06:29 +0000 (08:06 -0700)]
Made DB ignoreErrors() method protected

* This should *only* ever be used internal for error suppression,
  such as in the exception reporting methods. Having it public
  means callers have to worry (in theory) about whether the
  DB handles errors one way or a totally different way even
  though there is really only meant to be one.

Change-Id: I5916830d1bd53ee948308f394e55c17dd515ad33

8 years agoMerge "Allow numeric statsd key name components"
jenkins-bot [Tue, 21 Jul 2015 19:54:00 +0000 (19:54 +0000)]
Merge "Allow numeric statsd key name components"

8 years agoAllow numeric statsd key name components
Ori Livneh [Tue, 21 Jul 2015 19:40:20 +0000 (12:40 -0700)]
Allow numeric statsd key name components

Make sure BufferingStatsdDataFactory::normalizeMetricKey() doesn't delete
digits in key names.

Change-Id: I22baa81a88a3e0bc0d5b8b58bd6bb922c58a3255

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

Change-Id: If7e824aeef7bcacbc7f55b94ecef7e37ccf9e19a

8 years agoMerge "Support for storing files under SHA-1 names"
Gilles [Tue, 21 Jul 2015 17:55:14 +0000 (17:55 +0000)]
Merge "Support for storing files under SHA-1 names"

8 years agoMerge "Update button focus and hover state according to spec"
jenkins-bot [Tue, 21 Jul 2015 16:29:52 +0000 (16:29 +0000)]
Merge "Update button focus and hover state according to spec"

8 years agoSupport for storing files under SHA-1 names
Aaron Schulz [Tue, 10 Mar 2015 13:26:14 +0000 (14:26 +0100)]
Support for storing files under SHA-1 names

* Added a "storageLayout" flag to LocalRepo config (supports "sha1")
* Added a simple migration script to copy files the SHA1 paths
* Currently works with img_auth.php + thumb_handler.php for URLs
* Added visibility to some LocalFile methods
* Simple tests for the wrapper class.

Co-Authored-By: Gilles Dubuc <gdubuc@wikimedia.org>
Change-Id: Iad46ad669c8ae3c02d10da10c3f7a16fe161663f
Bug: T1210

8 years agoUpdate button focus and hover state according to spec
Prateek Saxena [Tue, 21 Jul 2015 11:07:53 +0000 (16:37 +0530)]
Update button focus and hover state according to spec

Design spec at https://phabricator.wikimedia.org/M31

Change-Id: I270e2fcf863265a51ed62f790dff1ee9cf31a8b6

8 years agoMerge "tiny optimization Title::isValidRedirectTarget()"
jenkins-bot [Tue, 21 Jul 2015 11:11:26 +0000 (11:11 +0000)]
Merge "tiny optimization Title::isValidRedirectTarget()"

8 years agotiny optimization Title::isValidRedirectTarget()
Pavel Astakhov [Tue, 21 Jul 2015 10:47:05 +0000 (16:47 +0600)]
tiny optimization Title::isValidRedirectTarget()

Not special page cannot be invalid redirect target

Change-Id: Ie8cc0c9717963472bdaf5b9d143938bd05bef6ba

8 years agoMerge "Switched upload chunk status store to the main object stash"
jenkins-bot [Tue, 21 Jul 2015 08:58:18 +0000 (08:58 +0000)]
Merge "Switched upload chunk status store to the main object stash"

8 years agoMerge "Avoid logging query in wasDeletedSinceLastEdit() if the page still exists"
jenkins-bot [Tue, 21 Jul 2015 06:24:53 +0000 (06:24 +0000)]
Merge "Avoid logging query in wasDeletedSinceLastEdit() if the page still exists"

8 years agoMerge "Make the User Timing API safe to use in MediaWiki"
jenkins-bot [Tue, 21 Jul 2015 06:23:49 +0000 (06:23 +0000)]
Merge "Make the User Timing API safe to use in MediaWiki"

8 years agoClean up UserMailer::send() parameters
Kunal Mehta [Sun, 12 Jul 2015 05:07:18 +0000 (22:07 -0700)]
Clean up UserMailer::send() parameters

$replyto and $contentType should now be passed as an array of $options.
This will make it easier to add more options in the future without
having a long list of optional parameters.

Change-Id: I2c38bb438bd01e0ed2552024a40311f3e8e2dc08

8 years agoMerge "mw.loader: Fix late loading of CSS in certain cases"
jenkins-bot [Tue, 21 Jul 2015 01:32:50 +0000 (01:32 +0000)]
Merge "mw.loader: Fix late loading of CSS in certain cases"

8 years agomw.loader: Fix late loading of CSS in certain cases
Roan Kattouw [Mon, 20 Jul 2015 22:22:56 +0000 (17:22 -0500)]
mw.loader: Fix late loading of CSS in certain cases

By protecting the CSS callbacks array against being
polluted by the callbacks themselves. This fixes
a bug where if A depends on B and both A and B have
styles, both A and B are executed once B's styles
have loaded (but before A's styles have loaded).
This breaks mw.loader's contract to only execute
A once its styles have loaded.

Bug: T105973
Change-Id: Ifa8fc7b3d275faa1f9a136a8c4a0e0a7cc358083

8 years agoMerge "Allow constructing a Message from a MessageSpecifier"
jenkins-bot [Mon, 20 Jul 2015 23:05:26 +0000 (23:05 +0000)]
Merge "Allow constructing a Message from a MessageSpecifier"

8 years agoMerge "PostgreSQL: Fix text search on moved pages"
jenkins-bot [Mon, 20 Jul 2015 23:03:58 +0000 (23:03 +0000)]
Merge "PostgreSQL: Fix text search on moved pages"

8 years agoAvoid logging query in wasDeletedSinceLastEdit() if the page still exists
Aaron Schulz [Mon, 20 Jul 2015 22:15:53 +0000 (15:15 -0700)]
Avoid logging query in wasDeletedSinceLastEdit() if the page still exists

* This avoids hitting a long tail of logging table queries that
  cannot easily use the buffer pool all the time.

Change-Id: Id2ad6b9699f1a8c579ebb1c3c0319183772af1bd

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 agoImplement OOUI version of tag filter in ChangeTags
Florian [Thu, 16 Jul 2015 20:21:58 +0000 (22:21 +0200)]
Implement OOUI version of tag filter in ChangeTags

Change-Id: I51a40eb091cfe28f67168c17ff92fbb72270a893

8 years agoCorrect documentation of ChangeTags::buildTagFilterSelector
Bartosz Dziewoński [Mon, 20 Jul 2015 13:54:06 +0000 (15:54 +0200)]
Correct documentation of ChangeTags::buildTagFilterSelector

Less duplication, more facts.

Change-Id: I4d97d0be25d0cb271ca07fa63f16a5e2abfe8762

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 agoMake the User Timing API safe to use in MediaWiki
Ori Livneh [Fri, 17 Jul 2015 21:46:03 +0000 (16:46 -0500)]
Make the User Timing API safe to use in MediaWiki

Allow JavaScript code to be annotated via the User Timing API without having to
repeatedly ensure that the API exists by declaring a no-op stub for browsers
that don't implement it. Do it in the startup module so we can use
performance.mark() early. Add an initial performance.mark() call as a use-case.

Task: T105389
Change-Id: Id686073da5baf3fcae36f296e6e50d648a543249

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"