lhc/web/wiklou.git
9 years agoDeprecated $wgProfilePerHost
Chad Horohoe [Wed, 3 Dec 2014 19:21:03 +0000 (11:21 -0800)]
Deprecated $wgProfilePerHost

Change-Id: I2af28cd3083228136789cff5feadd7b16c509e5b

9 years agoDeprecated $wgUDPProfilerHost, $wgUDPProfilerPort and $wgUDPProfilerFormatString
Chad Horohoe [Wed, 3 Dec 2014 18:49:48 +0000 (10:49 -0800)]
Deprecated $wgUDPProfilerHost, $wgUDPProfilerPort and $wgUDPProfilerFormatString

All can be passed as options to $wgProfiler now.

Change-Id: I49c0a83e0d386be0f66d6703fc358089e4b1f59f

9 years agoMerge "content: Deprecate TitleIsCssOrJsPage and TitleIsWikitextPage hooks"
jenkins-bot [Wed, 3 Dec 2014 08:12:21 +0000 (08:12 +0000)]
Merge "content: Deprecate TitleIsCssOrJsPage and TitleIsWikitextPage hooks"

9 years agocontent: Deprecate TitleIsCssOrJsPage and TitleIsWikitextPage hooks
Timo Tijhof [Wed, 3 Dec 2014 04:11:33 +0000 (04:11 +0000)]
content: Deprecate TitleIsCssOrJsPage and TitleIsWikitextPage hooks

They're currently documented as a 'compatibility hook'
in docs/contenthandler.txt. No longer used in any Wikimedia-hosted
git repository.

Superseded by the ContentHandlerDefaultModelFor hook.

Change-Id: I212230da7d6080cf500f930d4aa5a9024959d5f9

9 years agocontent: Re-arange tests to declare data provider first
Timo Tijhof [Wed, 3 Dec 2014 01:52:00 +0000 (01:52 +0000)]
content: Re-arange tests to declare data provider first

For consistency with other test suites.

Change-Id: Ic4b4d8e228a9ce82a42a07d88d690a9c932960c3

9 years agoMerge "Update OOjs UI to v0.2.4"
jenkins-bot [Wed, 3 Dec 2014 00:12:23 +0000 (00:12 +0000)]
Merge "Update OOjs UI to v0.2.4"

9 years agoMerge "API: Add Access-Control-Allow-Headers in CORS preflight response"
jenkins-bot [Wed, 3 Dec 2014 00:06:22 +0000 (00:06 +0000)]
Merge "API: Add Access-Control-Allow-Headers in CORS preflight response"

9 years agoMerge "Adding check for lessphp compiler to getLessCompiler()"
jenkins-bot [Tue, 2 Dec 2014 21:09:22 +0000 (21:09 +0000)]
Merge "Adding check for lessphp compiler to getLessCompiler()"

9 years agoMerge "Add jquery.fn.serializeObject"
jenkins-bot [Tue, 2 Dec 2014 21:08:05 +0000 (21:08 +0000)]
Merge "Add jquery.fn.serializeObject"

9 years agoMerge "Document external libraries changes in release notes"
jenkins-bot [Tue, 2 Dec 2014 21:04:46 +0000 (21:04 +0000)]
Merge "Document external libraries changes in release notes"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 2 Dec 2014 20:40:32 +0000 (21:40 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I06194421786553b0ee867ccd722a0f32a15ba594

9 years agoAdd jquery.fn.serializeObject
Ori Livneh [Tue, 2 Dec 2014 19:44:38 +0000 (11:44 -0800)]
Add jquery.fn.serializeObject

Teeny-tiny jQuery plugin to get form data as an object mapping each form
control's name to its value. I needed this for something and I saw this
pattern already in use in mediawiki.searchSuggest.js, so that's two use-cases.
I thought about calling this 'jquery.formData', but since it's a close analog of
jquery.serializeArray, I think this name is appropriate.

Change-Id: I00b6a7fb75a4d5132e7d6715c8867091a161dbb6

9 years agoSupport offsets in prefix searching
Chad Horohoe [Wed, 26 Nov 2014 18:29:15 +0000 (10:29 -0800)]
Support offsets in prefix searching

Fixes T75522
Change-Id: I7a27a64e295a1efcb1d9728d95cf254bb8bfbe92

9 years agoUpdate OOjs UI to v0.2.4
James D. Forrester [Tue, 2 Dec 2014 19:04:30 +0000 (11:04 -0800)]
Update OOjs UI to v0.2.4

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

Change-Id: Ic1afd83022ad8e6eee0ca89d94f6df23ba938684

9 years agoConsistently use "T1234" format for release note bug refs
Chad Horohoe [Tue, 2 Dec 2014 18:28:52 +0000 (10:28 -0800)]
Consistently use "T1234" format for release note bug refs

This will be the format for 1.25 and beyond as we've now moved
to Phabricator.

Change-Id: Ib555a2cbe72928b697dcbfc10f8168294691f4cb

9 years agoSet optimize-autoloader: true and prepend-autoloader: false in composer.json
Kunal Mehta [Tue, 2 Dec 2014 17:19:18 +0000 (09:19 -0800)]
Set optimize-autoloader: true and prepend-autoloader: false in composer.json

Quoting Tim from 240fd31cfa6b in mediawiki/vendor (prepend-autoloader):
 Composer's autoloader is slow, taking about 63µs per class, whereas
 MediaWiki's is fast, taking about 7µs per class. This adds up to an
 overhead of about 13% of CPU time on short requests such as API calls.
 On those same short requests, MediaWiki's autoloader finds most of the
 classes. So it makes sense to run it first, before the two Composer
 autoloaders. So change the config so that composer passes
 $prepend=false to spl_autoload_register().

optimize-autoloader is also just a good idea in general.

Change-Id: I383c72a85eda415da92e8a9253e83b4ed591768b

9 years agoMerge "InstallDocFormatter: Hyperlink Phabricator task numbers"
jenkins-bot [Tue, 2 Dec 2014 17:23:29 +0000 (17:23 +0000)]
Merge "InstallDocFormatter: Hyperlink Phabricator task numbers"

9 years agoMerge "Handle redirects during prefix search exact match"
jenkins-bot [Tue, 2 Dec 2014 17:20:45 +0000 (17:20 +0000)]
Merge "Handle redirects during prefix search exact match"

9 years agoresourceloader: Clear module storage if disabled by configuration
Tim Starling [Mon, 1 Dec 2014 06:08:23 +0000 (17:08 +1100)]
resourceloader: Clear module storage if disabled by configuration

To free up space for other things that might want to use localStorage
for users where it was previously enabled.

Bug: T66721
Change-Id: Idd62a5eab72ef79c47cfe54fcd5c240d1cbb0e44

9 years agoMerge "Avoid FOUC on API help and pretty-printed output"
jenkins-bot [Tue, 2 Dec 2014 03:10:09 +0000 (03:10 +0000)]
Merge "Avoid FOUC on API help and pretty-printed output"

9 years agocontent: Minor clean up to make JsonContent match other classes
Timo Tijhof [Tue, 2 Dec 2014 00:38:01 +0000 (00:38 +0000)]
content: Minor clean up to make JsonContent match other classes

Compared to JavaScriptContentHandler:

* Add missing license header.
* Add @ingroup.
* Move class description to @class.

Change-Id: I88c6e231756ce9f6d0d3aa2cb2bb80848c8bc5b9

9 years agoWikiPage: Remove premature Content::isValid check
Timo Tijhof [Tue, 2 Dec 2014 00:35:47 +0000 (00:35 +0000)]
WikiPage: Remove premature Content::isValid check

Content classes that implement the isValid method are causing
an "Internal error" to appear when saving from EditPage because
WikiPage throws an exception that isn't handled anywhere.

Turns out that ContentHandler already has infrastructure for
this in place in Content::prepareSave (which returns a Status
object with a relevant message informing the user), and WikiPage
is actually calling this already right after this.

Content::prepareSave defaults to using Content::isValid, so this
code is simply obsolete and premature as it calls an internal
method directly without handling it accordingly.

Change-Id: I69f18d9e101c2261b0ff7bd1b0459ea7fdd7ae9f

9 years agoMerge "Fix group separator in installer's sidebar"
jenkins-bot [Mon, 1 Dec 2014 23:30:22 +0000 (23:30 +0000)]
Merge "Fix group separator in installer's sidebar"

9 years agoAdding check for lessphp compiler to getLessCompiler()
kaldari [Mon, 1 Dec 2014 22:12:50 +0000 (14:12 -0800)]
Adding check for lessphp compiler to getLessCompiler()

Otherwise, PHP fatal errors will be thrown for anyone who installs
without it.

Change-Id: Ia027b7a829bbdae88b750c8119c546c846f3ae54

9 years agoMerge "Hide 'redirectedfrom' notice when printing articles"
jenkins-bot [Mon, 1 Dec 2014 21:40:13 +0000 (21:40 +0000)]
Merge "Hide 'redirectedfrom' notice when printing articles"

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Mon, 1 Dec 2014 21:00:09 +0000 (21:00 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 1 Dec 2014 20:56:04 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2039215565965839327236df77eccfd226fe08c8

9 years agoPopulate revision data when expanding templates
Arlo Breault [Thu, 27 Nov 2014 22:43:12 +0000 (14:43 -0800)]
Populate revision data when expanding templates

 * Add a $revid parameter to the expandtemplates api action so that,
   when passed, the correct revision information is set for {{REVISIONID}}
   and similar variables.

Bug: T73306
Change-Id: I93ef39fdabbaa5f394efce9b5c5e080666ff6119

9 years agoFix group separator in installer's sidebar
m4tx [Mon, 1 Dec 2014 19:23:43 +0000 (20:23 +0100)]
Fix group separator in installer's sidebar

Uses explode() to split the sections and puts correct separators between them.

Bug: T39362
Change-Id: I9a287b6ac206debb9bd93dbfad0703a8fad0931f

9 years agoMerge "build: Upgrade grunt-jscs and remove legacy jshint camelcase/nomen"
jenkins-bot [Mon, 1 Dec 2014 19:00:14 +0000 (19:00 +0000)]
Merge "build: Upgrade grunt-jscs and remove legacy jshint camelcase/nomen"

9 years agoRemoved bogus argument in frame profiling method
Aaron Schulz [Mon, 1 Dec 2014 18:36:48 +0000 (10:36 -0800)]
Removed bogus argument in frame profiling method

* Caused "Warning: xhprof_frame_end() expects exactly 0 parameters, 1 given in includes/libs/ScopedCallback.php on line 70"

Change-Id: I1ab5a973a185738cae97de4cfdc3cca78598d35e

9 years agoAvoid FOUC on API help and pretty-printed output
Brad Jorsch [Mon, 1 Dec 2014 17:33:25 +0000 (12:33 -0500)]
Avoid FOUC on API help and pretty-printed output

Bug: T76268
Change-Id: Ie1e087cad764cd7c8f84e2a7b3fb2dc5083cabaf

9 years agoAPI: Add Access-Control-Allow-Headers in CORS preflight response
Brad Jorsch [Mon, 1 Dec 2014 14:42:36 +0000 (09:42 -0500)]
API: Add Access-Control-Allow-Headers in CORS preflight response

Otherwise a CORS request won't be able to properly make use of the new
header.

Bug: T76340
Change-Id: I1dbccdf928b85a4b194174d38f505787dd18f745

9 years agoHide 'redirectedfrom' notice when printing articles
glaisher [Sat, 22 Nov 2014 09:35:58 +0000 (14:35 +0500)]
Hide 'redirectedfrom' notice when printing articles

Wrap the 'redirectedfrom' message in "mw-redirectedfrom" id
and then add it to commonPrint.css to hide it when printing.

Bug: 16296
Change-Id: I077bda9596c37b122a1f6964470d9d85108d834e

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 30 Nov 2014 20:42:23 +0000 (21:42 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib0e7163ff33af2d163b55db583b71195d07571c0

9 years agobuild: Upgrade grunt-jscs and remove legacy jshint camelcase/nomen
Timo Tijhof [Tue, 18 Nov 2014 20:44:44 +0000 (20:44 +0000)]
build: Upgrade grunt-jscs and remove legacy jshint camelcase/nomen

Follows-up 4ec6b0cce.

grunt-jscs v0.7.0 upgraded node-jscs to v0.6.0 which introduced
the ability to disable rules via inline comments.

This means we can finally remove the deprecated jshint rules for
coding style rules and restrict jshint to code quality only.

Unsuppress the equivalent rules from jscs.

Change-Id: Idacf7e552d656ee139863d927e5bfc1f86af8283

9 years agoMerge "Remove RELEASE-NOTES-1.24 and merge into HISTORY"
jenkins-bot [Sun, 30 Nov 2014 18:15:19 +0000 (18:15 +0000)]
Merge "Remove RELEASE-NOTES-1.24 and merge into HISTORY"

9 years agoMerge "Add missing visibility keywords to all LoadBalancer methods"
jenkins-bot [Sun, 30 Nov 2014 05:28:15 +0000 (05:28 +0000)]
Merge "Add missing visibility keywords to all LoadBalancer methods"

9 years agoRemove RELEASE-NOTES-1.24 and merge into HISTORY
Kunal Mehta [Sat, 29 Nov 2014 21:28:45 +0000 (13:28 -0800)]
Remove RELEASE-NOTES-1.24 and merge into HISTORY

1.24 has been released, so any changes that need release notes
should be targeting 1.25

Change-Id: Ie55c554131d750e22e6da1bf137279623325e67d

9 years agoDocument external libraries changes in release notes
Kunal Mehta [Sat, 29 Nov 2014 21:47:04 +0000 (13:47 -0800)]
Document external libraries changes in release notes

Bug: T1355
Change-Id: If3432d513e053742ef09f1330604e57918ab90b2

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 29 Nov 2014 10:39:07 +0000 (11:39 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2765755ba154f1666a75da5d3ad7a95ba73d2d1c

9 years agoMerge "Link to mediawiki.org's SkinDistributor from the fallback skin"
jenkins-bot [Fri, 28 Nov 2014 23:25:47 +0000 (23:25 +0000)]
Merge "Link to mediawiki.org's SkinDistributor from the fallback skin"

9 years agoMerge "Style visited links correctly"
jenkins-bot [Fri, 28 Nov 2014 18:52:53 +0000 (18:52 +0000)]
Merge "Style visited links correctly"

9 years agoStyle visited links correctly
Florianschmidtwelzow [Fri, 28 Nov 2014 17:04:40 +0000 (18:04 +0100)]
Style visited links correctly

If a link is styled as a neutral button, the text color will change
if the link is already visited. Style the text like a real button (same
color for visited and not visited links)

Bug: T76240
Change-Id: I18d985c1ada10becee15888b7f31d56976c7a2eb

9 years agoAdd IP::isInRanges()
Reedy [Tue, 11 Nov 2014 16:16:06 +0000 (16:16 +0000)]
Add IP::isInRanges()

cf https://github.com/wikimedia/operations-mediawiki-config/blob/master/wmf-config/throttle.php#L43-L58

Change-Id: I8ae145035de9d349710971f17551da637e4d2242

9 years agoMerge "Inject cache as constructor param of SiteSQLStore"
jenkins-bot [Fri, 28 Nov 2014 16:23:43 +0000 (16:23 +0000)]
Merge "Inject cache as constructor param of SiteSQLStore"

9 years agoInclude anchor in group page wiki link
Alex Monk [Thu, 27 Nov 2014 20:29:06 +0000 (20:29 +0000)]
Include anchor in group page wiki link

We effectively did this when outputting an HTML link in the function above, but
not for the wiki text version.

Just use getFullText instead of getPrefixedText, which handles adding anchors
where necessary and nothing else.

Bug: T75959
Change-Id: I1a4aa46d26e738c2a97e41463231da632e4ca8e5

9 years agoAPI: Rewrite ApiQueryTags to fix continuation
Brad Jorsch [Wed, 26 Nov 2014 18:11:38 +0000 (13:11 -0500)]
API: Rewrite ApiQueryTags to fix continuation

And while we're at it, may as well include an indicator of whether the
tag is defined.

Bug: T76051
Bug: T76052
Change-Id: If2569ba1414b5f38d49c5f3ce9b6ca9c1a58f1c2

9 years agoMerge "Use HHVM+EZC internal tidy"
jenkins-bot [Fri, 28 Nov 2014 08:25:30 +0000 (08:25 +0000)]
Merge "Use HHVM+EZC internal tidy"

9 years agoMerge "mediawiki.ui: Reorder styleguide sections"
jenkins-bot [Fri, 28 Nov 2014 02:44:47 +0000 (02:44 +0000)]
Merge "mediawiki.ui: Reorder styleguide sections"

9 years agoMerge "mediawiki.ui: Synchronise checkbox and radio code"
Prtksxna [Fri, 28 Nov 2014 01:52:01 +0000 (01:52 +0000)]
Merge "mediawiki.ui: Synchronise checkbox and radio code"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 27 Nov 2014 23:54:16 +0000 (00:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8f4c4c866a8968e1b7f8d2dc94368a222d6aa3b4

9 years agomediawiki.ui: Reorder styleguide sections
Bartosz Dziewoński [Fri, 21 Nov 2014 20:38:20 +0000 (21:38 +0100)]
mediawiki.ui: Reorder styleguide sections

Mostly to have checkboxes and radio buttons in neighboring sections.

Before:
  1. Inputs
  2. Buttons
  3. Forms
  4. Icons
  5. Checkbox
  6. Text & anchors
  7. Radio

After:
  1. Text inputs
  2. Buttons
  3. Checkbox
  4. Radio
  5. Forms
  6. Icons
  7. Text & anchors

Change-Id: I6b067eb90f5f05d7773c4879b87317436554701e

9 years agomediawiki.ui: Synchronise checkbox and radio code
Bartosz Dziewoński [Wed, 26 Nov 2014 23:30:19 +0000 (00:30 +0100)]
mediawiki.ui: Synchronise checkbox and radio code

Get rid of tiny meaningless differences.

Change-Id: I78b3bf378bae1fce11b6ef4f85f7449421211721

9 years agoMerge "Set wgMetaNamespace on TitleTest.php"
jenkins-bot [Thu, 27 Nov 2014 23:14:38 +0000 (23:14 +0000)]
Merge "Set wgMetaNamespace on TitleTest.php"

9 years agoUse HHVM+EZC internal tidy
Tim Starling [Wed, 26 Nov 2014 03:01:13 +0000 (14:01 +1100)]
Use HHVM+EZC internal tidy

EZC doesn't currently support direct access to object properties via the
obj->std.properties hashtable, but tidy uses this extensively. But it
turns out that for production use cases, tidy_repair_string() should be
sufficient. $wgDebugTidy and $wgValidateAllHtml are not used, and
no deployed extension calls MWTidy::checkErrors().

The only difference I know of is that errors from tidy (status==2) lead
to the tidy output being used, rather than discarded. But
TY_(ReportFatal) has very few callers in tidylib -- probably none that
are reachable from stripped parser output.

So, throw an exception if MWTidy::checkErrors() is requested on an HHVM
instance with the tidy extension. For MWTidy::tidy(), use
tidy_repair_string(). Refactor some relevant code.

Bug: T758
Change-Id: I8d5b1c2c9f9ddce46d8ad099a671a2e297d256e0

9 years agoImplement SiteListFileCache and rebuild script
aude [Fri, 21 Nov 2014 00:24:39 +0000 (19:24 -0500)]
Implement SiteListFileCache and rebuild script

Provides file-based cache of the SitesStore data,
using a static json file dump of the data from the
SiteSQLStore.

Includes a maintenance script to rebuild the sites cache.

Bug: 56602
Bug: 45532
Change-Id: Iaee4c1f9fb5d54efe01975f733ebd5c339ac106f

9 years agoMerge "PostgreSQL: Port update-keys.sql to PostgreSQL"
jenkins-bot [Thu, 27 Nov 2014 16:49:11 +0000 (16:49 +0000)]
Merge "PostgreSQL: Port update-keys.sql to PostgreSQL"

9 years agoMerge "SkinFallbackTemplate: Remove outdated @todo"
jenkins-bot [Thu, 27 Nov 2014 06:26:20 +0000 (06:26 +0000)]
Merge "SkinFallbackTemplate: Remove outdated @todo"

9 years agoMerge "Use Parser::SFH_NO_HASH/SFH_OBJECT_ARGS class const"
jenkins-bot [Thu, 27 Nov 2014 05:55:07 +0000 (05:55 +0000)]
Merge "Use Parser::SFH_NO_HASH/SFH_OBJECT_ARGS class const"

9 years agoMerge "Add hint to OT_* defines"
jenkins-bot [Thu, 27 Nov 2014 05:51:11 +0000 (05:51 +0000)]
Merge "Add hint to OT_* defines"

9 years agoMerge "Simplify Special:Undelete link from navigation"
jenkins-bot [Thu, 27 Nov 2014 05:36:49 +0000 (05:36 +0000)]
Merge "Simplify Special:Undelete link from navigation"

9 years agoMerge "Use mergeMwGlobalArrayValue in GenderCacheTest"
jenkins-bot [Thu, 27 Nov 2014 05:35:20 +0000 (05:35 +0000)]
Merge "Use mergeMwGlobalArrayValue in GenderCacheTest"

9 years agoMerge "Add mediawiki.userSuggest to Special:Block/Unblock/BlockList"
jenkins-bot [Thu, 27 Nov 2014 05:20:18 +0000 (05:20 +0000)]
Merge "Add mediawiki.userSuggest to Special:Block/Unblock/BlockList"

9 years agoMerge "Always return a value on SpecialRandomInCategory::onSubmit"
jenkins-bot [Thu, 27 Nov 2014 05:20:14 +0000 (05:20 +0000)]
Merge "Always return a value on SpecialRandomInCategory::onSubmit"

9 years agoMerge "phpcs: The final declaration must precede the visibility declaration"
jenkins-bot [Thu, 27 Nov 2014 05:17:09 +0000 (05:17 +0000)]
Merge "phpcs: The final declaration must precede the visibility declaration"

9 years agoMerge OpenSearchXml extension into core
Brad Jorsch [Wed, 5 Nov 2014 22:16:43 +0000 (17:16 -0500)]
Merge OpenSearchXml extension into core

There's really no reason for the extension to exist separately from
core, and merging it reduces the risks of bitrot in both the extension
(lots of deprecated functions there) and core (missing integration with
PageImages and TextExtracts, for example).

Change-Id: Ie0ab90902ede9499879402290006466efba479e9

9 years agoSkinFallbackTemplate: Remove outdated @todo
Kunal Mehta [Thu, 27 Nov 2014 04:56:44 +0000 (20:56 -0800)]
SkinFallbackTemplate: Remove outdated @todo

It was already implemented

Change-Id: I74d326b60c19bbee67e83980fa47ecbb26250359

9 years agoLink to mediawiki.org's SkinDistributor from the fallback skin
Kunal Mehta [Thu, 27 Nov 2014 04:27:49 +0000 (20:27 -0800)]
Link to mediawiki.org's SkinDistributor from the fallback skin

Change-Id: I2502f804bef479c2009408db4e429bd0981a8bbc

9 years agoMerge "SECURITY: Do not show log action if revdeleted"
Mglaser [Thu, 27 Nov 2014 01:26:10 +0000 (01:26 +0000)]
Merge "SECURITY: Do not show log action if revdeleted"

9 years agoMerge "mediawiki.ui: Optimize image files"
jenkins-bot [Thu, 27 Nov 2014 01:24:46 +0000 (01:24 +0000)]
Merge "mediawiki.ui: Optimize image files"

9 years agoSECURITY: Do not show log action if revdeleted
csteipp [Wed, 29 Oct 2014 15:41:20 +0000 (08:41 -0700)]
SECURITY: Do not show log action if revdeleted

Also do not include revdeleted entries in search results when
filtering by action if user cannot view that info.

Bug: 72222

Change-Id: I359ce3c67b1a7c24b76a8bade62ce0c77ff5efb0

9 years agomediawiki.ui: Optimize image files
Bartosz Dziewoński [Wed, 26 Nov 2014 23:58:58 +0000 (00:58 +0100)]
mediawiki.ui: Optimize image files

Ran svgo 0.5 on all SVG files, tweaked things by hand.

Ran pngcrush on all PNG files.

Change-Id: I1b80ed3a9f4112521f94e32986f24b4a29c2a5a7

9 years agoUpdate OOjs UI to v0.2.3
James D. Forrester [Wed, 26 Nov 2014 23:41:43 +0000 (15:41 -0800)]
Update OOjs UI to v0.2.3

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

Change-Id: Ia3d8a5a9df0efffd2b5cb1466e600cc0b77d7ef2

9 years agoMerge "SECURITY: Add edit token to Special:ExpandTemplates"
Mglaser [Wed, 26 Nov 2014 23:38:11 +0000 (23:38 +0000)]
Merge "SECURITY: Add edit token to Special:ExpandTemplates"

9 years agoMerge "mediawiki.ui: Add radio buttons"
jenkins-bot [Wed, 26 Nov 2014 23:33:48 +0000 (23:33 +0000)]
Merge "mediawiki.ui: Add radio buttons"

9 years agoSECURITY: Add edit token to Special:ExpandTemplates
Kevin Israel [Fri, 26 Sep 2014 04:38:07 +0000 (00:38 -0400)]
SECURITY: Add edit token to Special:ExpandTemplates

On wikis that allow raw HTML, it is not safe to preview wikitext coming from
an untrusted source such as a cross-site request. Thus add an edit token to
the form, and when raw HTML is allowed, ensure the token is provided before
showing the preview.

Unfortunately, MediaWiki does not currently provide logged-out users with
CSRF protection; in that case, do not show the preview unless anonymous
editing is allowed (such wikis have been, and are still, vulnerable).

Change-Id: I2f1caa57e8fc705ef52fc4b6f351a174b72b33cb

9 years agoSECURITY: Require new right to change content model
csteipp [Tue, 18 Nov 2014 23:37:14 +0000 (15:37 -0800)]
SECURITY: Require new right to change content model

Add the user right 'editcontentmodel', which is required to change the
content model while editing a Page.

Bug: 70901
Change-Id: I54f59539f1045092ec0de76c31cb47ca19c56874

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 26 Nov 2014 20:55:30 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I36abeb0c43781a383f026eefc7b14aeae0544c08

9 years agoMerge "Add release notes entry for wgRelevantArticleId"
jenkins-bot [Wed, 26 Nov 2014 20:15:38 +0000 (20:15 +0000)]
Merge "Add release notes entry for wgRelevantArticleId"

9 years agoAPI: Check suppressredirect right in ApiMove
Brad Jorsch [Wed, 26 Nov 2014 19:43:58 +0000 (14:43 -0500)]
API: Check suppressredirect right in ApiMove

Change Ic5026384 accidentally lost the check when changing from
Title::moveTo (which does the check itself) to MovePage::move (which
doesn't).

Bug: T75985
Change-Id: Ia64a233936c639a6748488e4d25816e87658ffe1

9 years agoAdd release notes entry for wgRelevantArticleId
Alex Monk [Wed, 26 Nov 2014 18:31:55 +0000 (18:31 +0000)]
Add release notes entry for wgRelevantArticleId

Added in I06cd0378

Change-Id: Ic1b73dfba31e4b0ac7c6d25cfab532d14a3f6e2e

9 years agoMerge "API: Allow generators to return data"
jenkins-bot [Wed, 26 Nov 2014 18:17:18 +0000 (18:17 +0000)]
Merge "API: Allow generators to return data"

9 years agoMerge "Added updated version history from 1.19.2 to 1.22.13"
Mglaser [Wed, 26 Nov 2014 17:56:30 +0000 (17:56 +0000)]
Merge "Added updated version history from 1.19.2 to 1.22.13"

9 years agoSet wgMetaNamespace on TitleTest.php
umherirrender [Thu, 13 Nov 2014 18:15:40 +0000 (19:15 +0100)]
Set wgMetaNamespace on TitleTest.php

Also added it to the MediaWikiTitleCodecTest.php (which seems not exists
at time of bug creation)

Bug: T67879
Change-Id: I8411d46320201b594ebaa56953dc355d863d0500

9 years agoAPI: Allow generators to return data
Brad Jorsch [Mon, 24 Nov 2014 21:21:49 +0000 (16:21 -0500)]
API: Allow generators to return data

It has long been requested that list=search and list=prefixsearch be
able to indicate the search result ordering when used as generators.
This change introduces a generic mechanism to allow for generators to
specify additional page data.

Bug: T16859
Bug: T75623
Change-Id: I115338d2bd890ccc109a79c65f92099c0d41fc2d

9 years agoUpdate the autonym for aeb in Names.php
Amir E. Aharoni [Wed, 26 Nov 2014 10:36:57 +0000 (12:36 +0200)]
Update the autonym for aeb in Names.php

The new name was suggested by Wikimedia's Language committee,
and as far as I know Arabic, it looks correct to me as well.

A Latin script autonym is being discussed separately and will be
added if and when there will be a decision about it.

The Arabic script autonym should be changed already now
because the current one is definitely wrong.

See also https://github.com/wikimedia/jquery.uls/pull/167 .

Change-Id: Ib07d2b49a47fb7f349a2cd70b7acfd88f9bf66ca

9 years agoMerge "Remove '@section LICENSE'"
jenkins-bot [Wed, 26 Nov 2014 08:26:28 +0000 (08:26 +0000)]
Merge "Remove '@section LICENSE'"

9 years agomediawiki.util: Remove test for jsMessage
Timo Tijhof [Wed, 26 Nov 2014 06:15:30 +0000 (06:15 +0000)]
mediawiki.util: Remove test for jsMessage

jsMessage uses mw.notify, which involves an animation.

mw.notify yields an mw.Notification object which has a reference
to the relevant elements.

However the deprecated jsMessage wrapper only returns boolean, so
we have no link to the element and no way to wait for the
animation to finish.

We could set up a mock clock in the test to skip the animation.
However, in this case the test was already useless as method
isn't testable (hardcoded booolean return).

This test was causing the QUnit test suite to fail occasionally
as the mw.notify animation was unfinished and would leak into
other tests.

Change-Id: Iffa91a3969bf69264b585e27ca44f85883ae2892

9 years agoqunit/testrunner: Log relevant node in unfinished animations and reset
Timo Tijhof [Thu, 20 Nov 2014 17:54:05 +0000 (17:54 +0000)]
qunit/testrunner: Log relevant node in unfinished animations and reset

Having unfinished animations affect other test can be a problem,
but when it does happen, having just a number isn't helpful in
trying to pinpoint the cause.

Logging a description of the element should make this relatively
straight forward.

Also reset the animations after the test so that the next test has a
clean start (instead of the current situation where every subsequent
test, until the animation finishes, also reports it as a failure).

Example:

 Unfinished animation #0 in fx queue on <div class="mw-notification
  mw-notification-tag-legacy" style="opacity: 0; "/>

Change-Id: I41058c4cba3383e3ad1456990ccf8dae4ca64951

9 years agoMerge "Add specialpages-group-developer i18n string"
jenkins-bot [Wed, 26 Nov 2014 05:13:37 +0000 (05:13 +0000)]
Merge "Add specialpages-group-developer i18n string"

9 years agoMerge "Special:EditWatchlist/clear: use destructive button"
jenkins-bot [Wed, 26 Nov 2014 05:13:28 +0000 (05:13 +0000)]
Merge "Special:EditWatchlist/clear: use destructive button"

9 years agomediawiki.ui: Add radio buttons
Prateek Saxena [Wed, 5 Nov 2014 10:33:57 +0000 (16:03 +0530)]
mediawiki.ui: Add radio buttons

Design specification on Trello-
https://trello.com/c/df2N2KJx/8-radio-buttons

Change-Id: Idb3d5177b6b2e9374de02416447fee9286e10a65

9 years agoAdd specialpages-group-developer i18n string
wctaiwan [Wed, 26 Nov 2014 04:42:07 +0000 (23:42 -0500)]
Add specialpages-group-developer i18n string

Per discussion at I0db24fcbc7c

Change-Id: I56f92ac8f6918a196b0c146f314eaf9a0508aceb

9 years agoRemove '@section LICENSE'
Timo Tijhof [Wed, 26 Nov 2014 02:19:43 +0000 (02:19 +0000)]
Remove '@section LICENSE'

This was used in 2 special classes, the logger classes and spread
to a few other random classes.

Afaik this has no meaning. Is for something we don't use, and
goes against the meaning of '@section' in Doxygen, which we do
use.

In Doxygen output, all LICENSE references became links to
ProfilerXhprof (the one Doxygen encoutered first).

Bug: T72328
Change-Id: Icc7c443245c70bc0f549bee7d105eef5691c864d

9 years agoMerge "Add autocomplete for Special:Redirect subpages"
jenkins-bot [Wed, 26 Nov 2014 02:02:17 +0000 (02:02 +0000)]
Merge "Add autocomplete for Special:Redirect subpages"

9 years agoAdded custom frame support to Profiler
Aaron Schulz [Sat, 22 Nov 2014 01:13:27 +0000 (17:13 -0800)]
Added custom frame support to Profiler

* Made use of it in the DatabaseBase classes
* For the xhprof class, this only works in HHVM for now

Change-Id: I95d7cc128d4a770328fbdd2b546972d3fc2e2e8a

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 25 Nov 2014 20:17:01 +0000 (21:17 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifb2e3068a552a251e374b3d10a5063c95a6d850f

9 years agoMerge "Remove stash handling when other errors are the problem"
jenkins-bot [Tue, 25 Nov 2014 17:50:03 +0000 (17:50 +0000)]
Merge "Remove stash handling when other errors are the problem"

9 years agoMerge "Revert "mediawiki.api: Use action=query&meta=tokens instead of action=tokens""
jenkins-bot [Tue, 25 Nov 2014 16:23:14 +0000 (16:23 +0000)]
Merge "Revert "mediawiki.api: Use action=query&meta=tokens instead of action=tokens""