lhc/web/wiklou.git
8 years agoMerge "WatchAction: Require POST for index.php action=watch"
jenkins-bot [Mon, 28 Sep 2015 23:46:56 +0000 (23:46 +0000)]
Merge "WatchAction: Require POST for index.php action=watch"

8 years agoMerge "build: Bump various devDependencies to latest"
jenkins-bot [Mon, 28 Sep 2015 23:38:36 +0000 (23:38 +0000)]
Merge "build: Bump various devDependencies to latest"

8 years agoAdded $opts to WANObjectCache::set() to detect snapshot lag
Aaron Schulz [Thu, 24 Sep 2015 21:47:30 +0000 (14:47 -0700)]
Added $opts to WANObjectCache::set() to detect snapshot lag

* This can avoid some stale write race conditions
* Made use of this option in a few key places
* HOLDOFF_TTL was also bumped

Change-Id: I83505a59cce0119e456191c3100f7d97bc86bdbf

8 years agoMerge "Include additional analytics in Special:Search"
jenkins-bot [Mon, 28 Sep 2015 22:31:01 +0000 (22:31 +0000)]
Merge "Include additional analytics in Special:Search"

8 years agoMerge "Fixed sanity cache clear in User::saveSettings()"
jenkins-bot [Mon, 28 Sep 2015 22:21:16 +0000 (22:21 +0000)]
Merge "Fixed sanity cache clear in User::saveSettings()"

8 years agoWatchAction: Require POST for index.php action=watch
Timo Tijhof [Mon, 28 Sep 2015 21:32:45 +0000 (14:32 -0700)]
WatchAction: Require POST for index.php action=watch

The GET variant was already rarely used because our frontend enchances these links
with a click handler that uses AJAX to make a POST request to the API.
The index.php url, nor its token, were used for the majority of users.

Simplify this by stripping the 'token' query from these urls and requiring a POST
request for index.php?action=watch and unwatch.

* FormAction: Actually set a proper '<form action>' instead of letting HTMLForm
  default to a confusing title path (e.g. /wiki/Pagename). Article path should
  not be used for POST requests.

* WatchAction: Group all FormAction-related methods together.

* WatchAction: Make token consistent with other actions now that it is POST-only
  (no "stronger" salt containing the page title).

* Remove ununsed mediawiki.page.startup dependency from mediawiki.page.watch.ajax.

* WatchAction: If accessed over GET directly (e.g. for users without javascript)
  display a confirmation form that submits the token. Similar to PurgeAction.

Change-Id: I504f457e68a133bcfc418cff13b838080fec1008

8 years agoInclude additional analytics in Special:Search
Erik Bernhardson [Thu, 24 Sep 2015 20:35:25 +0000 (13:35 -0700)]
Include additional analytics in Special:Search

* Adds query performed to javascript config, to be picked up by
  the TestSearchSatisfaction schema.

* Adds data-serp-pos attribute to serach result anchors.
  This is picked up by the TestSearchSatisfaction schema
  and appended to urls (when participating in the test)
  as the `wprov` query parameter.

Bug: T113291
Change-Id: Ia0e8a955806e225e2f5a500e9290145895737274

8 years agoFixed sanity cache clear in User::saveSettings()
Aaron Schulz [Mon, 28 Sep 2015 21:07:01 +0000 (14:07 -0700)]
Fixed sanity cache clear in User::saveSettings()

* This works by adding a refresh mode to clearSharedCache()
  when we want to purge the cache in case it might stale to
  avoid further CAS errors. Because an exception will be
  thrown, the usual DB callback will not get fired, so avoid
  using commit hooks when doing these cache purges.
* Also lowered the tombstone TTL for such purges, since no
  data actually changed.

Bug: T114023
Change-Id: Iaad87b4ed24733dac40bc9607d3c97c940710087

8 years agoMerge "Made HTMLCacheUpdateJob flush the trx between jobs"
jenkins-bot [Mon, 28 Sep 2015 21:00:54 +0000 (21:00 +0000)]
Merge "Made HTMLCacheUpdateJob flush the trx between jobs"

8 years agoMerge "Made convertNamespace() use APC"
jenkins-bot [Mon, 28 Sep 2015 20:44:38 +0000 (20:44 +0000)]
Merge "Made convertNamespace() use APC"

8 years agoMerge "Fixed IDE errors due to SquidUpdate::newFromTitles"
jenkins-bot [Mon, 28 Sep 2015 20:30:17 +0000 (20:30 +0000)]
Merge "Fixed IDE errors due to SquidUpdate::newFromTitles"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 Sep 2015 20:22:33 +0000 (22:22 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibae1e9fa24a63f2465f17ca0e253957f084ddc5f

8 years agoMerge "Avoid CAS errors on double post to ApiOptions"
jenkins-bot [Mon, 28 Sep 2015 20:17:22 +0000 (20:17 +0000)]
Merge "Avoid CAS errors on double post to ApiOptions"

8 years agoMerge "Begin 1.27 development cycle"
jenkins-bot [Mon, 28 Sep 2015 20:17:05 +0000 (20:17 +0000)]
Merge "Begin 1.27 development cycle"

8 years agoMerge "Add release notes for protect log changes"
jenkins-bot [Mon, 28 Sep 2015 19:52:28 +0000 (19:52 +0000)]
Merge "Add release notes for protect log changes"

8 years agoAdd release notes for protect log changes
umherirrender [Mon, 28 Sep 2015 19:36:48 +0000 (21:36 +0200)]
Add release notes for protect log changes

Follows I57b3bd8a7dc823acdbb56520d2364f5542283373 and
I3bb85c61b857972e66c99c499d7d785c88cafb25

Change-Id: If6fe021ad73b8ab74848feb6eeb3c1d21b4187c7

8 years agoMerge "resourceloader: Cleaned up makeModuleResponse() param docs"
jenkins-bot [Mon, 28 Sep 2015 19:32:26 +0000 (19:32 +0000)]
Merge "resourceloader: Cleaned up makeModuleResponse() param docs"

8 years agoMerge "resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule"
jenkins-bot [Mon, 28 Sep 2015 19:29:01 +0000 (19:29 +0000)]
Merge "resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule"

8 years agoresourceloader: Cleaned up makeModuleResponse() param docs
Aaron Schulz [Mon, 28 Sep 2015 19:18:46 +0000 (12:18 -0700)]
resourceloader: Cleaned up makeModuleResponse() param docs

Change-Id: Iabf53452598e13a98241793c317ceffb746aa46e

8 years agoresourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule
Ori Livneh [Fri, 25 Sep 2015 17:57:35 +0000 (10:57 -0700)]
resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule

* Remove ResourceLoaderFileModule::getLessCompiler(). There is no reason for a
  module to need to get a compiler in a different manner than
  ResourceLoader::getLessCompiler().
* Add ResourceLoaderModule::getLessVars(). This method provides a means for
  subclasses to easily inject custom LESS variables. The default implementation
  simply returns an empty array.
* Make the $context parameter for ResourceLoaderFileModule::readStyleFiles()
  non-optional (via graceful deprecation). The only callers I found were either
  already calling it with a ResourceLoader context, or had a perfectly usable
  ResourceLoaderContext in local scope.
* Make ResourceLoaderFileModule::{readStyleFile,getLessCompiler} require a
  context. These methods are protected, so I didn't bother with a deprecation.
* Call ksort() on the LESS variables array in the only place it matters -- when
  hashing its serialized representation to construct a cache lookup key. This
  relieves getLessVars() subclasses from having to remember to re-sort the
  variables array if they modify it.
* These changes make it possible to substantially simplify
  ResourceLoaderEditToolbarModule, because the only thing it needs to do now is
  implement its own getLessVars() method.
* This also allows it to be versioned like any other ResourceLoaderFileModule,
  rather than having to use enableModuleContentVersion().

Change-Id: Ic3eab71691e502bfe19bdf4eb6f82cc679a7782f

8 years agoMerge "Code cleanups and simplifications to SpecialMergeHistory"
jenkins-bot [Mon, 28 Sep 2015 19:12:42 +0000 (19:12 +0000)]
Merge "Code cleanups and simplifications to SpecialMergeHistory"

8 years agoMerge "build: Set private flag in package.json (for now)"
jenkins-bot [Mon, 28 Sep 2015 19:02:53 +0000 (19:02 +0000)]
Merge "build: Set private flag in package.json (for now)"

8 years agobuild: Set private flag in package.json (for now)
James D. Forrester [Sat, 26 Sep 2015 13:32:06 +0000 (14:32 +0100)]
build: Set private flag in package.json (for now)

This fixes the warning about missing package description and license.
This matches what we do elsewhere for dev-only npm pipelines.

Change-Id: I29ee43482b90ea8875a5376409d656648e3c4b27

8 years agoRemove border radii from CalendarWidget
Ed Sanders [Fri, 25 Sep 2015 17:22:11 +0000 (18:22 +0100)]
Remove border radii from CalendarWidget

Also remove rule removing border from 'today' on hover.

Bug: T113740
Change-Id: I9d71064b847433ed98ebaa8a1dce36af2cca7d27

8 years agoPut InfoAction distinct user counts behind miser mode
Aaron Schulz [Fri, 25 Sep 2015 06:55:16 +0000 (23:55 -0700)]
Put InfoAction distinct user counts behind miser mode

* The random I/O due to secondary lookups causes timeouts on
  larges pages that keep showing up in the logs.

Change-Id: I9bddcd3ba9ad5ff2f26ccec4553906ecc4a8129b

8 years agoMerge "In parserTests.php, fix upload directory handling"
jenkins-bot [Mon, 28 Sep 2015 17:23:56 +0000 (17:23 +0000)]
Merge "In parserTests.php, fix upload directory handling"

8 years agoCode cleanups and simplifications to SpecialMergeHistory
Aaron Schulz [Mon, 28 Sep 2015 17:13:31 +0000 (10:13 -0700)]
Code cleanups and simplifications to SpecialMergeHistory

* Fixed all IDEA errors for this file

Change-Id: I5cbb660c1a138ce7a8bf023929d97f1c75f0a80a

8 years agoDon't overwrite all available object caches
Florian [Sat, 26 Sep 2015 23:41:24 +0000 (01:41 +0200)]
Don't overwrite all available object caches

Just because some defined object caches are problematic in the installer, it
doesn't mean, that all others are problematic, too. Disable only the object
caches, which are known problematic ones by preserving the others.

Follow up: I1c1938b3fac395d

Bug: T113843
Change-Id: I951ef22d97b4c66d3b781a9bc4a30e7e2fca1395

8 years agoMerge "mediawiki.widgets: Add temporary workaround for upstream oojs-ui bug"
jenkins-bot [Mon, 28 Sep 2015 15:46:00 +0000 (15:46 +0000)]
Merge "mediawiki.widgets: Add temporary workaround for upstream oojs-ui bug"

8 years agomediawiki.widgets: Add temporary workaround for upstream oojs-ui bug
Ed Sanders [Mon, 28 Sep 2015 15:28:09 +0000 (16:28 +0100)]
mediawiki.widgets: Add temporary workaround for upstream oojs-ui bug

'choose' sometimes emits with null. Fixed upstream in I03f0b6d88f.

Change-Id: I4f5ab119555f9e3c439e3d91054b8b99d0dd89a5

8 years agoConvert Russian grammar cases from PHP to JSON
Amir E. Aharoni [Mon, 21 Sep 2015 19:57:08 +0000 (22:57 +0300)]
Convert Russian grammar cases from PHP to JSON

This is a follow-up to
Ib6a0afa5c3736f8b9b2e121cd752c53ee50fad75

The PHP logic for grammatical cases in Russian was growing.
It was too long and not reusable is JavaScript.

This patch moves all the logic to a JSON file,
indexed by the grammatical case name and then
by regular expressions that match the different
word classes, with the values being the replacements
that should be compatible with common regular expression
replacement functions in modern programming languages.

This patch doesn't introduce any functional changes
and doesn't change any tests.

The next steps, not necessarily in this order, are:
* Make it work also with JavaScript.
* Make JSON grammar data files loadable with ResourceLoader.
* Convert most or all grammar rules for all the languages to JSON.
* Make the data processing loop generic for all languages.
* Convert it also in jquery.i18n (Milkshake).
* Convert the test cases data from code to generic data.
* Move the JSON data to a separate reusable repository.

Change-Id: I0e8e1bfb9d3ec9f841f733356af32dad7d130e94

8 years agoMerge "Remove duplicate entry"
jenkins-bot [Mon, 28 Sep 2015 13:50:46 +0000 (13:50 +0000)]
Merge "Remove duplicate entry"

8 years agoMerge "Fix a PHPCS warning in SearchMySQL.php"
jenkins-bot [Mon, 28 Sep 2015 13:49:56 +0000 (13:49 +0000)]
Merge "Fix a PHPCS warning in SearchMySQL.php"

8 years agoMerge "Add new grammar forms for language names in Russian"
jenkins-bot [Mon, 28 Sep 2015 13:41:33 +0000 (13:41 +0000)]
Merge "Add new grammar forms for language names in Russian"

8 years agoRemove duplicate entry
Siebrand Mazeland [Mon, 28 Sep 2015 13:38:57 +0000 (15:38 +0200)]
Remove duplicate entry

First occurrence is 5 lines above. Shouldn't the banana check have found
this?

Change-Id: I7b193d4131e440e5d6ce67c62b5406b977de020c

8 years agoMerge "Remove superfluous rules from print CSS"
jenkins-bot [Mon, 28 Sep 2015 13:23:11 +0000 (13:23 +0000)]
Merge "Remove superfluous rules from print CSS"

8 years agoMerge "Fix most PHP CodeSniffer warnings in includes/api"
jenkins-bot [Mon, 28 Sep 2015 13:05:24 +0000 (13:05 +0000)]
Merge "Fix most PHP CodeSniffer warnings in includes/api"

8 years agoMerge "Fix two PHPCS warnings in NaiveForeignTitleFactory.php"
jenkins-bot [Mon, 28 Sep 2015 13:04:25 +0000 (13:04 +0000)]
Merge "Fix two PHPCS warnings in NaiveForeignTitleFactory.php"

8 years agoMerge "Fix PHPCS warnings in includes/specials/"
jenkins-bot [Mon, 28 Sep 2015 13:02:31 +0000 (13:02 +0000)]
Merge "Fix PHPCS warnings in includes/specials/"

8 years agoMerge "Fix 4 PHPCS warnings in Searchupdate.php"
jenkins-bot [Mon, 28 Sep 2015 12:54:50 +0000 (12:54 +0000)]
Merge "Fix 4 PHPCS warnings in Searchupdate.php"

8 years agoMerge "Fix 3 PHPCS warnings in MessageCache.php"
jenkins-bot [Mon, 28 Sep 2015 12:53:21 +0000 (12:53 +0000)]
Merge "Fix 3 PHPCS warnings in MessageCache.php"

8 years agoMerge "Fix 3 PHPCS warnings in includes/filerepo/"
jenkins-bot [Mon, 28 Sep 2015 12:53:17 +0000 (12:53 +0000)]
Merge "Fix 3 PHPCS warnings in includes/filerepo/"

8 years agoAdd new grammar forms for language names in Russian
Amir E. Aharoni [Tue, 11 Nov 2014 07:04:48 +0000 (09:04 +0200)]
Add new grammar forms for language names in Russian

CLDR provides translated language names. They are useful for showing
names by themselves in menus and lists, but it's often problematic to add them
to Russian sentences, because they need to be declined, so a message like
"This page is not available in the $1 language" is hard to localize.

This patch adds new cases for Russian -
"languagegen", "languageprep" and "languageadverb".
(The last one, as its name says, it's not actually a grammatical case,
but a transformation to an adverbial expression.)
This covers most of the needs for language names that MediaWiki supports.

Change-Id: Ib6a0afa5c3736f8b9b2e121cd752c53ee50fad75

8 years agoMerge "Fix PHP CS warning in LogPager.php"
jenkins-bot [Mon, 28 Sep 2015 12:46:15 +0000 (12:46 +0000)]
Merge "Fix PHP CS warning in LogPager.php"

8 years agoMerge "Fix 2 PHPCS warnings in ThumbnailRenderJob.php"
jenkins-bot [Mon, 28 Sep 2015 12:45:06 +0000 (12:45 +0000)]
Merge "Fix 2 PHPCS warnings in ThumbnailRenderJob.php"

8 years agoMerge "Fix PHPCS warnings in /includes/mail/"
jenkins-bot [Mon, 28 Sep 2015 12:44:04 +0000 (12:44 +0000)]
Merge "Fix PHPCS warnings in /includes/mail/"

8 years agoMerge "Fix a PHPCS warning in SkinTemplate.php"
jenkins-bot [Mon, 28 Sep 2015 12:36:26 +0000 (12:36 +0000)]
Merge "Fix a PHPCS warning in SkinTemplate.php"

8 years agoMerge "Fix 5 PHPCS warnings in WikiPage.php"
jenkins-bot [Mon, 28 Sep 2015 12:34:22 +0000 (12:34 +0000)]
Merge "Fix 5 PHPCS warnings in WikiPage.php"

8 years agoMerge "Fix 3 PHPCS warnings in ResourceLoaderImage.php"
jenkins-bot [Mon, 28 Sep 2015 12:26:35 +0000 (12:26 +0000)]
Merge "Fix 3 PHPCS warnings in ResourceLoaderImage.php"

8 years agoMerge "Fix PHPCS warnings in /includes/media/"
jenkins-bot [Mon, 28 Sep 2015 12:26:23 +0000 (12:26 +0000)]
Merge "Fix PHPCS warnings in /includes/media/"

8 years agoFix most PHP CodeSniffer warnings in includes/api
Siebrand Mazeland [Mon, 28 Sep 2015 11:15:17 +0000 (13:15 +0200)]
Fix most PHP CodeSniffer warnings in includes/api

Change-Id: I01bb3e4c96d6034a5b6c18728bb0574c710ea9db

8 years agoMerge "Fix PHPCS warnings in includes/installer"
jenkins-bot [Mon, 28 Sep 2015 12:24:36 +0000 (12:24 +0000)]
Merge "Fix PHPCS warnings in includes/installer"

8 years agoFix two PHPCS warnings in NaiveForeignTitleFactory.php
Siebrand Mazeland [Mon, 28 Sep 2015 12:19:29 +0000 (14:19 +0200)]
Fix two PHPCS warnings in NaiveForeignTitleFactory.php

Change-Id: I61f1e1beab7e6fdd6e817b728a837d4ea57f435f

8 years agoMerge "Fix PHPCS warnings in includes/htmlform/"
jenkins-bot [Mon, 28 Sep 2015 12:17:46 +0000 (12:17 +0000)]
Merge "Fix PHPCS warnings in includes/htmlform/"

8 years agoMerge "Make lines short to pass phpcs in testHelpers.inc"
jenkins-bot [Mon, 28 Sep 2015 12:17:42 +0000 (12:17 +0000)]
Merge "Make lines short to pass phpcs in testHelpers.inc"

8 years agoMerge "Cleanup LanguageTyv.php"
jenkins-bot [Mon, 28 Sep 2015 12:16:47 +0000 (12:16 +0000)]
Merge "Cleanup LanguageTyv.php"

8 years agoMerge "Rewrite comments on member variables of ParserOutput as proper variables docum...
jenkins-bot [Mon, 28 Sep 2015 12:16:11 +0000 (12:16 +0000)]
Merge "Rewrite comments on member variables of ParserOutput as proper variables documentation"

8 years agoFix PHPCS warnings in includes/specials/
Siebrand Mazeland [Mon, 28 Sep 2015 12:15:09 +0000 (14:15 +0200)]
Fix PHPCS warnings in includes/specials/

Change-Id: I37424a84d67aee8532a0224cd7a8147424778e53

8 years agoFix a PHPCS warning in SkinTemplate.php
Siebrand Mazeland [Mon, 28 Sep 2015 12:07:18 +0000 (14:07 +0200)]
Fix a PHPCS warning in SkinTemplate.php

Change-Id: Ic12cfce697875fa9459824672e10f4eaaf7b2499

8 years agoFix a PHPCS warning in SearchMySQL.php
Siebrand Mazeland [Mon, 28 Sep 2015 12:06:01 +0000 (14:06 +0200)]
Fix a PHPCS warning in SearchMySQL.php

Change-Id: I2a9d91e24421bd4c514a97e00abc1a7d6f7b3cf1

8 years agoMerge "mediawiki.toolbar: temporary workaround for T113868"
jenkins-bot [Mon, 28 Sep 2015 12:05:50 +0000 (12:05 +0000)]
Merge "mediawiki.toolbar: temporary workaround for T113868"

8 years agoFix 3 PHPCS warnings in ResourceLoaderImage.php
Siebrand Mazeland [Mon, 28 Sep 2015 12:04:45 +0000 (14:04 +0200)]
Fix 3 PHPCS warnings in ResourceLoaderImage.php

Change-Id: I2cadf8441ac28473e3c4d0bb122e74e3f6c031ed

8 years agoFix 5 PHPCS warnings in WikiPage.php
Siebrand Mazeland [Mon, 28 Sep 2015 11:53:41 +0000 (13:53 +0200)]
Fix 5 PHPCS warnings in WikiPage.php

Change-Id: Ib7e4c3ef2b2dbc0807c3823992d2164d2c68c8cb

8 years agoFix PHPCS warnings in /includes/media/
Siebrand Mazeland [Mon, 28 Sep 2015 11:50:29 +0000 (13:50 +0200)]
Fix PHPCS warnings in /includes/media/

Change-Id: I9b551dd7b9f4e8a11f86a1acf2c7241f02d85515

8 years agoCleanup LanguageTyv.php
Amir E. Aharoni [Sat, 26 Sep 2015 15:31:39 +0000 (18:31 +0300)]
Cleanup LanguageTyv.php

* Remove Latin letters - they are used inconsistently in this file
  and they aren't used anywhere in the code, because we only use
  Cyrillic Tuvan in MediaWiki UI.
* Remove commented-out variables.

Change-Id: I723ba331f27d313647b67c3af11c2e53ccc72961

8 years agoFix PHPCS warnings in /includes/mail/
Siebrand Mazeland [Mon, 28 Sep 2015 11:47:16 +0000 (13:47 +0200)]
Fix PHPCS warnings in /includes/mail/

Change-Id: Iea420ddecac86ef9a6f34b420b0cd151ba604e91

8 years agoFix PHP CS warning in LogPager.php
Siebrand Mazeland [Mon, 28 Sep 2015 11:44:39 +0000 (13:44 +0200)]
Fix PHP CS warning in LogPager.php

Change-Id: I31f074ad77309bf02163810eb6689dc0bb56460e

8 years agoFix 2 PHPCS warnings in ThumbnailRenderJob.php
Siebrand Mazeland [Mon, 28 Sep 2015 11:42:48 +0000 (13:42 +0200)]
Fix 2 PHPCS warnings in ThumbnailRenderJob.php

Change-Id: Id0a2d8342cec864ad9c5f9373495f2ca3ebdd1ab

8 years agoMake lines short to pass phpcs in testHelpers.inc
Amir E. Aharoni [Mon, 28 Sep 2015 11:41:44 +0000 (14:41 +0300)]
Make lines short to pass phpcs in testHelpers.inc

Bug: T102614
Change-Id: I317889b94213b626576ebcd4e15a4f95ee250d69

8 years agoFix PHPCS warnings in includes/installer
Siebrand Mazeland [Mon, 28 Sep 2015 11:40:27 +0000 (13:40 +0200)]
Fix PHPCS warnings in includes/installer

8 uses of $IP remain, which trigger the global naming convention
check.

Change-Id: I1040782323ec7512fb7badd6052742ecd13d9dff

8 years agoFix PHPCS warnings in includes/htmlform/
Siebrand Mazeland [Mon, 28 Sep 2015 11:35:28 +0000 (13:35 +0200)]
Fix PHPCS warnings in includes/htmlform/

Change-Id: Ifbf050c92a84d6af59709632965f48f3d567c0da

8 years agoFix 3 PHPCS warnings in includes/filerepo/
Siebrand Mazeland [Mon, 28 Sep 2015 11:29:33 +0000 (13:29 +0200)]
Fix 3 PHPCS warnings in includes/filerepo/

Change-Id: I00ea32f3a0666d225096d6c45710d0de67e2fe14

8 years agoFix 4 PHPCS warnings in Searchupdate.php
Siebrand Mazeland [Mon, 28 Sep 2015 11:25:15 +0000 (13:25 +0200)]
Fix 4 PHPCS warnings in Searchupdate.php

Change-Id: Ifdb3efd7317a68daac2e509c534e887cb6267562

8 years agoRewrite comments on member variables of ParserOutput as proper variables documentation
Amir E. Aharoni [Sun, 27 Sep 2015 13:12:36 +0000 (16:12 +0300)]
Rewrite comments on member variables of ParserOutput as proper variables documentation

This also makes lines short enough to pass phpcs.

Bug: T102614
Change-Id: I11597bc052e8a8c2eaf4d60f7913e4186d0eb8e2

8 years agoFix 3 PHPCS warnings in MessageCache.php
Siebrand Mazeland [Mon, 28 Sep 2015 11:18:54 +0000 (13:18 +0200)]
Fix 3 PHPCS warnings in MessageCache.php

Change-Id: I0970b8844fa89d3bdc4fec200d912ecf80a52176

8 years agoSet fallback to Spanish (es) for Extremaduran (ext)
maurelio [Mon, 28 Sep 2015 07:31:28 +0000 (09:31 +0200)]
Set fallback to Spanish (es) for Extremaduran (ext)

Extremaduran projects do fallback to English. It's more appropriate to
fallback to Spanish since ext is an Spanish dialect.

Bug: T113925
Change-Id: Idedc16104ddd14ce7fcee709aa847c4c53301563

8 years agoMerge "Add talk link to excontentauthor"
jenkins-bot [Mon, 28 Sep 2015 09:08:41 +0000 (09:08 +0000)]
Merge "Add talk link to excontentauthor"

8 years agoMerge "Make the comment in the beginning of LanguageFi.php shorter"
jenkins-bot [Mon, 28 Sep 2015 09:07:49 +0000 (09:07 +0000)]
Merge "Make the comment in the beginning of LanguageFi.php shorter"

8 years agoMerge "Remove an unnecessary condition from Ukrainian grammar rules"
jenkins-bot [Mon, 28 Sep 2015 08:58:46 +0000 (08:58 +0000)]
Merge "Remove an unnecessary condition from Ukrainian grammar rules"

8 years agoMerge "Update Ukrainian grammar rules and tests"
jenkins-bot [Mon, 28 Sep 2015 08:58:42 +0000 (08:58 +0000)]
Merge "Update Ukrainian grammar rules and tests"

8 years agoMerge "Setting $namespaceGenderAliases for Aragonese (an)"
jenkins-bot [Mon, 28 Sep 2015 07:38:45 +0000 (07:38 +0000)]
Merge "Setting $namespaceGenderAliases for Aragonese (an)"

8 years agoMerge "API: Fix some unclosed tags in en.json"
jenkins-bot [Mon, 28 Sep 2015 07:23:38 +0000 (07:23 +0000)]
Merge "API: Fix some unclosed tags in en.json"

8 years agoSetting $namespaceGenderAliases for Aragonese (an)
maurelio [Mon, 28 Sep 2015 07:15:29 +0000 (09:15 +0200)]
Setting $namespaceGenderAliases for Aragonese (an)

Bug: T113890
Change-Id: I977d365561949f5543b6ffc7c29885734bcf6ac2

8 years agoMerge "Move italic redirect link styles to modules"
jenkins-bot [Mon, 28 Sep 2015 06:42:46 +0000 (06:42 +0000)]
Merge "Move italic redirect link styles to modules"

8 years agoMerge "Update grammar rules and test for Ukrainian"
jenkins-bot [Mon, 28 Sep 2015 05:54:09 +0000 (05:54 +0000)]
Merge "Update grammar rules and test for Ukrainian"

8 years agoMerge "Add $namespaceGenderAliases for catalan language"
jenkins-bot [Mon, 28 Sep 2015 05:54:05 +0000 (05:54 +0000)]
Merge "Add $namespaceGenderAliases for catalan language"

8 years agoIn parserTests.php, fix upload directory handling
Tim Starling [Mon, 7 Sep 2015 06:10:12 +0000 (16:10 +1000)]
In parserTests.php, fix upload directory handling

Instead of having two conflicting filerepo configurations, one at
/tmp/test-repo and another at a randomized path, and populating the one
that isn't used with files, let's just have a single upload directory,
populate it with files, and then actually use those files.

This fixes a set of confusing system-dependent parser test failures. In
the failure scenario, the file upload would be recorded, but then
invalid JPEG metadata would trigger LocalFile::loadFromFile(), which
would look for the file in the wrong place and mark it missing. Then
parser tests would fail due to image links being broken (red).

This is probably not as nice as the fake in-memory repo used by
NewParserTest, but this approach does provide a richer integration test.
This is a conservative fix that just fixes the things that are terribly
broken rather than making new things.

Also:

* Clear the RepoGroup singleton, for completeness, since it doesn't
  make sense to set $wgLocalRepo without clearing it. Since we now set up
  a similar repo at initialisation to the one set up with each test, it
  probably doesn't have any effect.

* Warn if gd is not present since this causes 49 test failures.

* Use glob patterns in teardownUploadDir() instead of requiring every
  file to be individually listed. This fixes an error due to failure to
  delete a 240px file.

Change-Id: I56a0e0d1cb363b40cf19c735e00cbb8929c1401a

8 years agoMerge "Normalizing namespaces for Spanish language"
jenkins-bot [Mon, 28 Sep 2015 05:46:34 +0000 (05:46 +0000)]
Merge "Normalizing namespaces for Spanish language"

8 years agoMerge "Web installer: Fix collapsing of field help text"
jenkins-bot [Sun, 27 Sep 2015 22:50:53 +0000 (22:50 +0000)]
Merge "Web installer: Fix collapsing of field help text"

8 years agomediawiki.toolbar: temporary workaround for T113868
Ori Livneh [Sun, 27 Sep 2015 22:24:49 +0000 (15:24 -0700)]
mediawiki.toolbar: temporary workaround for T113868

ResourceLoader does not expect the set of files a module depends on to vary by
language, but since I39d8ed4, mediawiki.toolbar does. To fix this, we need to
replace the module_deps table with something less insane. In the interim, we
can avoid needless recurrent cache invalidation by referencing the superset of
all possible image files as the background-image for a dummy selector.

Bug: T113868
Change-Id: I94ced0617814d83beee35d30ff1158709e884a98

8 years agoAPI: Fix some unclosed tags in en.json
Brad Jorsch [Sun, 27 Sep 2015 20:08:10 +0000 (16:08 -0400)]
API: Fix some unclosed tags in en.json

Change-Id: Iaf97f17761b57ed2c202acd5f963e5be60e07730

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 27 Sep 2015 18:36:58 +0000 (20:36 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I07e7e7b3747d99f9b8e35a66c67962a944436f64

8 years agoMerge "Revert "composer.json: Bump Monolog to 1.17.1""
jenkins-bot [Sun, 27 Sep 2015 18:00:49 +0000 (18:00 +0000)]
Merge "Revert "composer.json: Bump Monolog to 1.17.1""

8 years agoMove italic redirect link styles to modules
umherirrender [Tue, 8 Sep 2015 16:03:11 +0000 (18:03 +0200)]
Move italic redirect link styles to modules

Move some italic styles from shared.css to the corresponding modules of
the needed pages

Change-Id: I8223ab41aaf2bc13942560c23c54a5d5a37b9df0

8 years agoMake lines short to pass phpcs in profileinfo.php
Amir E. Aharoni [Sun, 27 Sep 2015 07:51:29 +0000 (10:51 +0300)]
Make lines short to pass phpcs in profileinfo.php

Bug: T102614
Change-Id: I3ed44bab923f90e9ff4575e7ad5553225244effc

8 years agoRevert "composer.json: Bump Monolog to 1.17.1"
Reedy [Sun, 27 Sep 2015 16:53:22 +0000 (16:53 +0000)]
Revert "composer.json: Bump Monolog to 1.17.1"

Syntax error (older version of PHP?)

This reverts commit 4d23803d928b85125b0c81c851d6fb9bbeab5351.

Change-Id: I5167f97909d4d7ad4264a247f959ae984f932a7e

8 years agoMerge "composer.json: Bump Monolog to 1.17.1"
jenkins-bot [Sun, 27 Sep 2015 16:43:47 +0000 (16:43 +0000)]
Merge "composer.json: Bump Monolog to 1.17.1"

8 years agocomposer.json: Bump Monolog to 1.17.1
Bryan Davis [Sun, 27 Sep 2015 05:30:41 +0000 (23:30 -0600)]
composer.json: Bump Monolog to 1.17.1

Requires: Idc5010bfa54a0150e983e2f343feb08404a79aa5
Change-Id: I0a54bdf835092d0369d3041d85e04a54abea7d4f

8 years agoMake lines short to pass phpcs in files under includes/resourceloader
Amir E. Aharoni [Sun, 27 Sep 2015 08:06:49 +0000 (11:06 +0300)]
Make lines short to pass phpcs in files under includes/resourceloader

Bug: T102614
Change-Id: I2202438591e74a35570bb621f5aad3ac241fbc29

8 years agoMake lines short to pass phpcs in files under includes/
Amir E. Aharoni [Sun, 27 Sep 2015 08:10:34 +0000 (11:10 +0300)]
Make lines short to pass phpcs in files under includes/

Bug: T102614
Change-Id: I33ac3f4bb8116020ccda5d64fdd2924e78810546