lhc/web/wiklou.git
9 years agoMerge "Introduced User::touch() method to bump the getTouched() value using memcached"
jenkins-bot [Thu, 26 Mar 2015 22:25:19 +0000 (22:25 +0000)]
Merge "Introduced User::touch() method to bump the getTouched() value using memcached"

9 years agoMerge "Made showJobs.php include abandoned jobs in --list"
jenkins-bot [Thu, 26 Mar 2015 22:13:48 +0000 (22:13 +0000)]
Merge "Made showJobs.php include abandoned jobs in --list"

9 years agoMerge "refreshLinks.php: Limit rows scanned per query in deleteLinksFromNonexistent()"
jenkins-bot [Thu, 26 Mar 2015 22:11:34 +0000 (22:11 +0000)]
Merge "refreshLinks.php: Limit rows scanned per query in deleteLinksFromNonexistent()"

9 years agoIntroduced User::touch() method to bump the getTouched() value using memcached
Aaron Schulz [Thu, 26 Mar 2015 05:19:32 +0000 (22:19 -0700)]
Introduced User::touch() method to bump the getTouched() value using memcached

* This lets some callers avoid the heavyweight invalidateCache() method

Bug: T91279
Bug: T92357
Change-Id: I8c1c7ff9c5574f0eca23e7effde199ab13a19231

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 26 Mar 2015 20:55:24 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2c29611aa564f96e33980784eb64907598230542

9 years agorefreshLinks.php: Limit rows scanned per query in deleteLinksFromNonexistent()
Kevin Israel [Sun, 15 Mar 2015 10:58:58 +0000 (06:58 -0400)]
refreshLinks.php: Limit rows scanned per query in deleteLinksFromNonexistent()

This also makes the -e and [start] options apply to --dfn-only, making it
possible to restart the script other than at the beginning if necessary.

Bug: T38195
Change-Id: I828b522039290b5700faa89fb8ad4075e50332e7

9 years agoMade showJobs.php include abandoned jobs in --list
Aaron Schulz [Thu, 26 Mar 2015 19:17:10 +0000 (12:17 -0700)]
Made showJobs.php include abandoned jobs in --list

Change-Id: I7ae8dd2470d5e15fd66c6c06f3feb6d70527daa3

9 years agoFix inline documentation in WebResponse
Thiemo Mättig [Thu, 26 Mar 2015 15:42:14 +0000 (16:42 +0100)]
Fix inline documentation in WebResponse

Main reason to touch this file are the missing "null" types in the
documentation.

Change-Id: Ifab16c276efb3d8c4aa0a27d8d5106d4e3303794

9 years agoMerge "Update OOjs UI to v0.9.4"
jenkins-bot [Thu, 26 Mar 2015 18:22:06 +0000 (18:22 +0000)]
Merge "Update OOjs UI to v0.9.4"

9 years agoMerge "Fixed the usage of $flags in loadLastEdit()"
jenkins-bot [Thu, 26 Mar 2015 16:45:51 +0000 (16:45 +0000)]
Merge "Fixed the usage of $flags in loadLastEdit()"

9 years agoMerge "ApiParse: Forbid section=new when using page, pageid, or oldid"
jenkins-bot [Thu, 26 Mar 2015 16:16:17 +0000 (16:16 +0000)]
Merge "ApiParse: Forbid section=new when using page, pageid, or oldid"

9 years agoMerge "LivePreview: Update the correct mw-editfooter-list"
jenkins-bot [Thu, 26 Mar 2015 15:34:33 +0000 (15:34 +0000)]
Merge "LivePreview: Update the correct mw-editfooter-list"

9 years agoMerge "Fix typos in qunit tests"
jenkins-bot [Thu, 26 Mar 2015 15:09:47 +0000 (15:09 +0000)]
Merge "Fix typos in qunit tests"

9 years agoFix typos in qunit tests
aude [Thu, 26 Mar 2015 14:40:18 +0000 (15:40 +0100)]
Fix typos in qunit tests

seperator -> separator

Change-Id: I67ff04d11f0600dd528fa09894b48d1d2edd248f

9 years agoMerge "Fix misleading $class = false default in Html::infoBox"
jenkins-bot [Thu, 26 Mar 2015 14:07:54 +0000 (14:07 +0000)]
Merge "Fix misleading $class = false default in Html::infoBox"

9 years agoMerge "More specific types in doc tags in the Html class"
jenkins-bot [Thu, 26 Mar 2015 13:58:22 +0000 (13:58 +0000)]
Merge "More specific types in doc tags in the Html class"

9 years agoLivePreview: Update the correct mw-editfooter-list
Derk-Jan Hartman [Thu, 26 Mar 2015 13:06:49 +0000 (14:06 +0100)]
LivePreview: Update the correct mw-editfooter-list

mw-editfooter-list is used by both templatesUsed and hiddencats, so
make sure we replace correct one.

Bug: T78834
Change-Id: I00be75ac6d68f96fb366b9561ec1ee0e1998f656

9 years agoMake wfWarn name the caller in Http::get
Niklas Laxström [Thu, 26 Mar 2015 10:44:18 +0000 (11:44 +0100)]
Make wfWarn name the caller in Http::get

The warning is useless as of now, unless you have stracktraces.

Bug: T91764
Change-Id: I8fcae49f3943ab2f6d13519c5f8d370ed147b185

9 years agoFix misleading $class = false default in Html::infoBox
Thiemo Mättig [Thu, 26 Mar 2015 09:43:01 +0000 (10:43 +0100)]
Fix misleading $class = false default in Html::infoBox

I found this because my PHPStorm complains about the type mismatch.
I could have changed the @param tag to "string|bool", but when looking
at the code, the $class variable is casted to a string anyway and
never used as a bool.

Change-Id: I3450fa8a898923bbae26830ed3be0017685020d3

9 years agoMore specific types in doc tags in the Html class
Thiemo Mättig [Thu, 26 Mar 2015 09:38:35 +0000 (10:38 +0100)]
More specific types in doc tags in the Html class

This is a pure inline-documentation patch. It fixes a few actual
mistakes in documentation tags and makes some generic "array" types
more specific, if that's possible.

Change-Id: Id02e1e936624b845316b8ce99f8b8d2a1f829e97

9 years agoMerge "LivePreview: Let's not potentially mangle #wikiPreview"
jenkins-bot [Thu, 26 Mar 2015 08:18:37 +0000 (08:18 +0000)]
Merge "LivePreview: Let's not potentially mangle #wikiPreview"

9 years agoMade User::loadFromRow protected for sanity
Aaron Schulz [Thu, 26 Mar 2015 05:38:34 +0000 (22:38 -0700)]
Made User::loadFromRow protected for sanity

* The loading logic is complex enough without more possible
  entry points to cover
* No outside callers found

Change-Id: I7e9bace35afb0a540993423cf1da98381a516ac5

9 years agoDeprecate wfDiff()
Max Semenik [Mon, 23 Mar 2015 18:51:39 +0000 (11:51 -0700)]
Deprecate wfDiff()

This function is backwards:
* The stated purpose is to generate a list of differences for callers to parse,
  however we already have DiffEngine that returns a list of differences that you
  don't need to parse manually shooting your feet off in process.
* With improvements in PHP performance in the last 10 years, shelling out instead of using
  a pure-PHP diff has a doubtful performance benefit.
* Even in configurations where it's faster on predominant diffs (which have to be huge),
  shelling out has its own security implications.

This function is not used in core. The only extensons using it are Echo (which just parses
its output so would be better off with DiffEngine) and AbuseFilter, let's not add more users
by tolerating this function.

Also, add error checking while I'm at it.

Change-Id: Ia67debce39de8252312fd887ebfbe6fb89f9edc9

9 years agoFixed the usage of $flags in loadLastEdit()
Aaron Schulz [Thu, 26 Mar 2015 03:39:39 +0000 (20:39 -0700)]
Fixed the usage of $flags in loadLastEdit()

Bug: T93976
Change-Id: I57eb41b463116ea27c0fc8dac8fff07db593499a

9 years agoMerge "Replace mb_strtolower with strtolower"
jenkins-bot [Thu, 26 Mar 2015 02:37:02 +0000 (02:37 +0000)]
Merge "Replace mb_strtolower with strtolower"

9 years agoMerge "mediawiki.action.edit.preview: Replace only title in firstHeading"
jenkins-bot [Thu, 26 Mar 2015 00:27:44 +0000 (00:27 +0000)]
Merge "mediawiki.action.edit.preview: Replace only title in firstHeading"

9 years agoApiParse: Forbid section=new when using page, pageid, or oldid
Derk-Jan Hartman [Wed, 25 Mar 2015 23:55:16 +0000 (00:55 +0100)]
ApiParse: Forbid section=new when using page, pageid, or oldid

Change-Id: I45ce0fe2083587e429143aa3d8d832aa884e1ad7

9 years agoLivePreview: Let's not potentially mangle #wikiPreview
Derk-Jan Hartman [Wed, 25 Mar 2015 23:33:06 +0000 (00:33 +0100)]
LivePreview: Let's not potentially mangle #wikiPreview

Sometimes you look at what you have written and realize it can be better...

Bug: T90490
Change-Id: If620e5c672e4632997028ddc9f802a82a83e6924

9 years agoMerge "LivePreview: Notifiy user about errors"
jenkins-bot [Wed, 25 Mar 2015 23:22:36 +0000 (23:22 +0000)]
Merge "LivePreview: Notifiy user about errors"

9 years agoLivePreview: Notifiy user about errors
Derk-Jan Hartman [Sat, 28 Feb 2015 15:26:25 +0000 (16:26 +0100)]
LivePreview: Notifiy user about errors

Bug: T90490
Change-Id: Ic52311839c175a213065eec442e50b4de0463822

9 years agoUpdate OOjs UI to v0.9.4
James D. Forrester [Wed, 25 Mar 2015 22:26:56 +0000 (15:26 -0700)]
Update OOjs UI to v0.9.4

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

Change-Id: I0ab9ef6d67e16379785e143cb20ae8de7fe78a7e

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 25 Mar 2015 20:44:14 +0000 (21:44 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I79e13cf2d6d3bc8c447b75a49ac0bdca2ae536d9

9 years agoMerge "Remove never thrown UploadStashNotAvailableException"
jenkins-bot [Wed, 25 Mar 2015 20:13:01 +0000 (20:13 +0000)]
Merge "Remove never thrown UploadStashNotAvailableException"

9 years agoLivePreview: Support section=new for preview
Derk-Jan Hartman [Thu, 12 Mar 2015 21:28:28 +0000 (22:28 +0100)]
LivePreview: Support section=new for preview

Reproduce the new section behavior for the full submit preview.
Diffing will require a bit more additional work in Api.

Bug: T84877
Change-Id: Iec71fdc7ba09f91683214f3d65472ea2f72a06b1

9 years agoMerge "PrefixSearchTest: Move insertPage() from setUp() to addDBData()"
jenkins-bot [Wed, 25 Mar 2015 19:29:54 +0000 (19:29 +0000)]
Merge "PrefixSearchTest: Move insertPage() from setUp() to addDBData()"

9 years agoRemove never thrown UploadStashNotAvailableException
umherirrender [Sat, 14 Mar 2015 14:12:05 +0000 (15:12 +0100)]
Remove never thrown UploadStashNotAvailableException

Also move creation of UploadStash to main entry point of the special
page to avoid use of context before it is set (by called getUser).

Change-Id: Ibcb17b6ee1b853d807f91104ba428b307e9a5208

9 years agoPrefixSearchTest: Move insertPage() from setUp() to addDBData()
Timo Tijhof [Mon, 23 Mar 2015 05:29:55 +0000 (05:29 +0000)]
PrefixSearchTest: Move insertPage() from setUp() to addDBData()

Doesn't change the semantics much since run() calls addDBData()
right before setUp(), but these belong addDBData() per the
documentation of setUp().

Change-Id: I304a0aff1fc6b2f0541b3dc3c9e3527772c8f91c

9 years agoMediaWikiTestCase: Consistently use UTSysop user in setup/teardown
Timo Tijhof [Mon, 23 Mar 2015 05:36:20 +0000 (05:36 +0000)]
MediaWikiTestCase: Consistently use UTSysop user in setup/teardown

Change-Id: I42d108ca11246725d936e505508b73a9ae7553c6

9 years agoFallback to read from master in DifferenceEngine::loadRevisionData
Marius Hoch [Wed, 25 Mar 2015 15:09:21 +0000 (16:09 +0100)]
Fallback to read from master in DifferenceEngine::loadRevisionData

In DifferenceEngine we need to show a diff immediately after
an edit happened if someone did a rollback. To make that work
again, try loading a revision from master if we have more than
one database servers and we failed loading the revision from
a slave.

Change-Id: I08a16faa9e637c614c6d2fc9a10536c7b41685a8
Follows: 3c2bc32ae1775f5e875958b62d7181b4b5cfe24e
Bug: T93866

9 years agoReplace mb_strtolower with strtolower
Niklas Laxström [Wed, 25 Mar 2015 08:53:40 +0000 (09:53 +0100)]
Replace mb_strtolower with strtolower

Function mb_strtolower is not guaranteed to be present. In this case
we are dealing with language codes, which are ASCII, for which there
is no need to use multibyte version in the first place.

Bug: T55912
Change-Id: I009bab2ff03b22142d35c8be60711266ca3683c1

9 years agomediawiki.action.edit.preview: Replace only title in firstHeading
Fomafix [Wed, 25 Mar 2015 05:47:18 +0000 (05:47 +0000)]
mediawiki.action.edit.preview: Replace only title in firstHeading

Bug: T85784
Change-Id: I71098997ae4e1172381350443637e51a03260d1a

9 years agoRevert "Optimize order of styles and scripts"
Ori.livneh [Sat, 21 Mar 2015 05:14:02 +0000 (05:14 +0000)]
Revert "Optimize order of styles and scripts"

The patch did not improve performance. I'd like to think that the increased
control over when inline scripts are executed makes the patch worthwhile
regardless, but that is post hoc justification and possibly a bit of personal
ego. Krinkle agrees that we may use some of the ideas in this patch in the
future but he thinks we're better off not heading down this path before we
have a better sense of where we're going, and I trust his judgment.

This reverts commit e86e5f8460b922cadac231142a495f3259c67b43.

Change-Id: I151f74a41dd664b5a0aa5cfd99fcc95e2686a1e6

9 years agoUpdate HTML title with displaytitle on live preview
Fomafix [Tue, 17 Mar 2015 18:56:47 +0000 (18:56 +0000)]
Update HTML title with displaytitle on live preview

Set the new global JavaScript variable 'wgEditMessage' with the name of the message.

Document this global JavaScript variable in
https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#mw.config
after merge.

Bug: T88117
Change-Id: Ida5c1d470908cefd16925bd5455758d25db02113

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 24 Mar 2015 20:51:17 +0000 (21:51 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id37e5c4448f3e9b003626009b9c6b821aad4d6cc

9 years agoMerge "Allow callers to load user objects from slaves if desired"
jenkins-bot [Tue, 24 Mar 2015 19:12:23 +0000 (19:12 +0000)]
Merge "Allow callers to load user objects from slaves if desired"

9 years agoResourceLoaderImageModule: Synchronize CSS with .background-image-svg LESS mixin
Bartosz Dziewoński [Mon, 23 Mar 2015 20:55:12 +0000 (21:55 +0100)]
ResourceLoaderImageModule: Synchronize CSS with .background-image-svg LESS mixin

Bug: T87504
Change-Id: I790bd953fabbd4ff03f15c94fe101e2f65891520

9 years agoAllow callers to load user objects from slaves if desired
Aaron Schulz [Tue, 24 Mar 2015 00:39:48 +0000 (17:39 -0700)]
Allow callers to load user objects from slaves if desired

Bug: T92357
Change-Id: Ib9d21b8ee988c84e7b3d1676ad6cbbbf07f795a4

9 years agoMerge "Use ksort() in getDeduplicationInfo for sanity"
jenkins-bot [Tue, 24 Mar 2015 17:30:31 +0000 (17:30 +0000)]
Merge "Use ksort() in getDeduplicationInfo for sanity"

9 years agoMerge "RELEASE-NOTES: Increase minimum MySQL version to 5.0.3"
jenkins-bot [Tue, 24 Mar 2015 01:18:40 +0000 (01:18 +0000)]
Merge "RELEASE-NOTES: Increase minimum MySQL version to 5.0.3"

9 years agoRELEASE-NOTES: Increase minimum MySQL version to 5.0.3
Kevin Israel [Tue, 24 Mar 2015 00:16:45 +0000 (20:16 -0400)]
RELEASE-NOTES: Increase minimum MySQL version to 5.0.3

Follows-up 5d9b67e09ed1.

Also updated the list of supported database servers in INSTALL
to match the list from RELEASE-NOTES-1.25.

Change-Id: I6881b1163455d834b058f4b4a7839a6aea44cdab

9 years agoRemove unused class DBObject
Kevin Israel [Mon, 23 Mar 2015 23:58:06 +0000 (19:58 -0400)]
Remove unused class DBObject

This was left over from a previous attempt at Oracle support,
which was removed in 1.10 (r19196 / ccf91e827a48).

Change-Id: I5f9b82fffc0b4f84286b697be8d504020fe22547

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 23 Mar 2015 20:19:47 +0000 (21:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I029a05e24e48f9b5e3893f0e964aed5e8c53280c

9 years agoMerge "Fixed Style/StringLiterals RuboCop offense"
jenkins-bot [Mon, 23 Mar 2015 19:20:08 +0000 (19:20 +0000)]
Merge "Fixed Style/StringLiterals RuboCop offense"

9 years agoMerge "Fixed Style/HashSyntax RuboCop offense"
jenkins-bot [Mon, 23 Mar 2015 19:06:33 +0000 (19:06 +0000)]
Merge "Fixed Style/HashSyntax RuboCop offense"

9 years agoMerge "resourceloader: Add template compiler for Mustache JS"
jenkins-bot [Mon, 23 Mar 2015 18:57:09 +0000 (18:57 +0000)]
Merge "resourceloader: Add template compiler for Mustache JS"

9 years agoFixed Style/StringLiterals RuboCop offense
Željko Filipin [Wed, 18 Mar 2015 17:59:28 +0000 (18:59 +0100)]
Fixed Style/StringLiterals RuboCop offense

$ bundle exec rubocop --auto-correct
Inspecting 25 files
CC....C.......CCCCCCCCC.C

Offenses:

Gemfile:4:8: C: [Corrected] Prefer single-quoted strings when you don't
need string interpolation or special symbols.
source "https://rubygems.org"
^^^^^^^^^^^^^^^^^^^^^^

25 files inspected, 81 offenses detected, 81 offenses corrected

Bug: T91485
Change-Id: Ic6f1337fa465e8c90e5aa7ea3540eb6bfad15af8

9 years agoMerge "Fixed Style/PerlBackrefs RuboCop offense"
jenkins-bot [Mon, 23 Mar 2015 18:48:04 +0000 (18:48 +0000)]
Merge "Fixed Style/PerlBackrefs RuboCop offense"

9 years agoFixed Style/HashSyntax RuboCop offense
Željko Filipin [Wed, 18 Mar 2015 17:53:51 +0000 (18:53 +0100)]
Fixed Style/HashSyntax RuboCop offense

$ bundle exec rubocop --auto-correct
Inspecting 25 files
.CCC.....................

Offenses:

maintenance/jsduck/custom_tags.rb:16:16: C: [Corrected] Use the new
Ruby 1.9 hash syntax.
      return { :tagname => @tagname, :doc => :multiline }
               ^^^^^^^^^^^
...
25 files inspected, 8 offenses detected, 8 offenses corrected

Bug: T91485
Change-Id: Ic2aff32e106c5b5eaa45839ad3310b97fcec6ddf

9 years agoFixed Style/PerlBackrefs RuboCop offense
Željko Filipin [Wed, 18 Mar 2015 17:52:02 +0000 (18:52 +0100)]
Fixed Style/PerlBackrefs RuboCop offense

Refactored to use `Regexp#match`, avoiding use of match globals
entirely.

Bug: T91485
Change-Id: I4b1a40e153c18d92ef9e78291bc4e14781cc6978

9 years agoresourceloader: Add template compiler for Mustache JS
jdlrobson [Wed, 17 Dec 2014 20:30:54 +0000 (12:30 -0800)]
resourceloader: Add template compiler for Mustache JS

Compatible library for PHP backend added by I281acc49c1.
This adds the frontend compiler.

Change-Id: I2190276a629ca882f3f5535e4e73635d2494e944

9 years agoMerge "Fixed Lint/UnusedMethodArgument RuboCop offense"
jenkins-bot [Mon, 23 Mar 2015 17:25:14 +0000 (17:25 +0000)]
Merge "Fixed Lint/UnusedMethodArgument RuboCop offense"

9 years agoMerge "Fixed Style/FileName RuboCop offense"
jenkins-bot [Mon, 23 Mar 2015 17:22:24 +0000 (17:22 +0000)]
Merge "Fixed Style/FileName RuboCop offense"

9 years agoMerge "resourceloader: Add @covers and minor clean up of test suites"
jenkins-bot [Mon, 23 Mar 2015 04:33:34 +0000 (04:33 +0000)]
Merge "resourceloader: Add @covers and minor clean up of test suites"

9 years agoMerge "resourceloader: Use parent getDefinitionSummary() in ResourceLoaderFileModule"
jenkins-bot [Mon, 23 Mar 2015 04:29:52 +0000 (04:29 +0000)]
Merge "resourceloader: Use parent getDefinitionSummary() in ResourceLoaderFileModule"

9 years agoresourceloader: Add @covers and minor clean up of test suites
Timo Tijhof [Mon, 23 Mar 2015 03:57:45 +0000 (03:57 +0000)]
resourceloader: Add @covers and minor clean up of test suites

* Move testMixedCssAnnotations to ResourceLoaderFileModuleTest.
* Re-order data providers before test methods.
* Add relevant @covers annotations in resourceloader/ tests.
* Make test helper function private.
* Add a few @covers for methods called from OutputPage::makeResourceLoaderLink
  (only one level deep, we should have separate unit tests for
  the more internal helpers).

Change-Id: I2cc1757126214ed28059d4566ca813a86bcd95a7

9 years agoresourceloader: Use parent getDefinitionSummary() in ResourceLoaderFileModule
Timo Tijhof [Mon, 23 Mar 2015 03:56:35 +0000 (03:56 +0000)]
resourceloader: Use parent getDefinitionSummary() in ResourceLoaderFileModule

Right now ResourceLoaderModule::getDefinitionSummary just returns an array
with the class name, but may be extended in the future. Either way, it shouldn't
be repeated in the subclass.

Change-Id: Ic1d58f8d330fb2176daffc7ad39bc0751c196181

9 years agoTemplateParser: Use ObjectCache::newAccelerator() with fallback set
Kunal Mehta [Mon, 23 Mar 2015 03:17:43 +0000 (20:17 -0700)]
TemplateParser: Use ObjectCache::newAccelerator() with fallback set

Change-Id: I202192f6bf509068941e9490d02a11bdedecd872

9 years agoTemplateParser: make most functions protected, only expose processTemplate()
Kunal Mehta [Mon, 23 Mar 2015 03:06:28 +0000 (20:06 -0700)]
TemplateParser: make most functions protected, only expose processTemplate()

All of the other functions expose internal implementation details, which no
external caller should ever need. In fact, no external caller does use these
functions directly.

The TemplateParser::compile() tests were removed as they're simply just
checking LightnCandy functionality, which is something the library should be
doing.

Change-Id: If9003d40315e0e5aa361c174b764b799e3b88c34

9 years agoTemplateParser: Don't fatal on cache misses
Timo Tijhof [Sun, 22 Mar 2015 22:01:52 +0000 (22:01 +0000)]
TemplateParser: Don't fatal on cache misses

Also add regression test, and coverage for more methods.

Was trying to eval the code which had the hmac integrity check in front of it,
which causes a syntax error in valid PHP code.

Follows-up db1866da450c50bea2e.

Bug: T93436
Bug: T93511
Change-Id: Ie90074e4885de7340e53f59fdd479f5384b5eac6

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 22 Mar 2015 19:45:06 +0000 (20:45 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8313b4e6f3fddaf9ee468e10972a5923bb1201d5

9 years agoMerge "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1"
jenkins-bot [Sun, 22 Mar 2015 12:07:54 +0000 (12:07 +0000)]
Merge "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1"

9 years agomediawiki.action.edit.preview: Disable if there is no #wpTextbox1
Derk-Jan Hartman [Thu, 19 Mar 2015 21:45:53 +0000 (22:45 +0100)]
mediawiki.action.edit.preview: Disable if there is no #wpTextbox1

ProofreadPage has custom editforms for Index pages, which are not
supported by the API. These editforms have no #wpTextbox1, so disable
live preview in that case.

Bug: T78709
Change-Id: I90cba79e5a4a756454741c4070ebdf620520ab55

9 years agoBidi-isolate numbers of added/removed bytes in changes lists
Amir E. Aharoni [Sat, 21 Mar 2015 20:46:21 +0000 (22:46 +0200)]
Bidi-isolate numbers of added/removed bytes in changes lists

Bug: T93484
Change-Id: I26d3c46a843b2a2114ca50ec0a366fa6b76904a9

9 years agoMerge "mediawiki.helplink: Use a SVG+PNG icon"
jenkins-bot [Sat, 21 Mar 2015 17:50:39 +0000 (17:50 +0000)]
Merge "mediawiki.helplink: Use a SVG+PNG icon"

9 years agoMerge "Set wgAutoloadAttemptLowercase = true for some AutoLoaderTests"
jenkins-bot [Sat, 21 Mar 2015 17:36:45 +0000 (17:36 +0000)]
Merge "Set wgAutoloadAttemptLowercase = true for some AutoLoaderTests"

9 years agoSet wgAutoloadAttemptLowercase = true for some AutoLoaderTests
umherirrender [Sat, 21 Mar 2015 08:41:13 +0000 (09:41 +0100)]
Set wgAutoloadAttemptLowercase = true for some AutoLoaderTests

Avoids:
1) AutoLoaderTest::testWrongCaseClass
Failed asserting that false is true.

2) AutoLoaderTest::testWrongCaseSerializedClass
unserialize() can load classes case-insensitively.
Failed asserting that true is false.

Change-Id: Ic5c271906fb9b2e27639aa8ecfc04ffe6788d3eb

9 years agoMerge "Allow usage of mediawiki.api.options on mobile"
jenkins-bot [Sat, 21 Mar 2015 00:34:51 +0000 (00:34 +0000)]
Merge "Allow usage of mediawiki.api.options on mobile"

9 years agoMerge "Remove a hack, and a hack for the hack, for MediaWiki UI input fields"
jenkins-bot [Sat, 21 Mar 2015 00:20:07 +0000 (00:20 +0000)]
Merge "Remove a hack, and a hack for the hack, for MediaWiki UI input fields"

9 years agoMerge "Make sure template function is callable from processTemplate()"
jenkins-bot [Fri, 20 Mar 2015 22:28:08 +0000 (22:28 +0000)]
Merge "Make sure template function is callable from processTemplate()"

9 years agoMake sure template function is callable from processTemplate()
kaldari [Fri, 20 Mar 2015 00:09:13 +0000 (17:09 -0700)]
Make sure template function is callable from processTemplate()

Change-Id: Id9df4062754b02e7217779bc6c0ba42d457e9942

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 20 Mar 2015 20:09:00 +0000 (21:09 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2a30a623d1e70298d50d59fc7d2261bf638fb4db

9 years agoMerge "Add unicode-bidi: embed to mw-title on changeslists"
jenkins-bot [Fri, 20 Mar 2015 20:01:38 +0000 (20:01 +0000)]
Merge "Add unicode-bidi: embed to mw-title on changeslists"

9 years agoRemove table header from Special:Tags when there are no tags
Tina Johnson [Mon, 16 Mar 2015 19:26:46 +0000 (00:56 +0530)]
Remove table header from Special:Tags when there are no tags

The table header shows up even when there are no tags to be
listed in the table. This patch fixes the same

Bug: T92728
Change-Id: I22d2c0435bc365f65354cea604b1c87905c769f8

9 years agoMerge "Add more aliases for Special:Diff for language 'de'"
jenkins-bot [Fri, 20 Mar 2015 15:01:37 +0000 (15:01 +0000)]
Merge "Add more aliases for Special:Diff for language 'de'"

9 years agoAdd more aliases for Special:Diff for language 'de'
umherirrender [Thu, 19 Mar 2015 20:03:56 +0000 (21:03 +0100)]
Add more aliases for Special:Diff for language 'de'

The local community wants 'Diff' as canonical form, add also the long
form for what Diff stands.
Keep the old alias, was added with:
Ic2b34a948d527cee6b76abd7e24a6d8a33b65bd2

https://translatewiki.net/w/i.php?title=MediaWiki:Sp-translate-data-SpecialPageAliases/de&diff=6066852&oldid=6049012
https://de.wikipedia.org/w/index.php?title=Wikipedia:Fragen_zur_Wikipedia&oldid=139947048#Spezial:Diff_.E2.86.92_Spezial:Unterschied

Change-Id: I504cd4b0e7c7b5c22812fe9eb0cf8dec9ff9514b

9 years agoUse rspec-expectations "expect" syntax instead of "should" syntax
jagori [Tue, 27 Jan 2015 11:53:31 +0000 (22:53 +1100)]
Use rspec-expectations "expect" syntax instead of "should" syntax

Bug: T68369
Change-Id: I502ba4b0d10c35aaf32fd4dcbfff8cec8ea34582

9 years agomediawiki.helplink: Use a SVG+PNG icon
Bartosz Dziewoński [Wed, 18 Mar 2015 17:19:47 +0000 (18:19 +0100)]
mediawiki.helplink: Use a SVG+PNG icon

Icon copied from OOjs UI library.

Bug: T45591
Change-Id: I0378e26471a72ab3a756e3cbb8c16a6878b3dbde

9 years agoAdd unicode-bidi: embed to mw-title on changeslists
Amir E. Aharoni [Fri, 20 Mar 2015 09:03:44 +0000 (11:03 +0200)]
Add unicode-bidi: embed to mw-title on changeslists

Bug: T93336
Change-Id: I49214553f7151b2abd3d48a60b476f5792ac3a89

9 years agobuild: Increase qunit browserNoActivityTimeout from 10s to 60s
Timo Tijhof [Fri, 20 Mar 2015 08:26:41 +0000 (08:26 +0000)]
build: Increase qunit browserNoActivityTimeout from 10s to 60s

Bug: T89075
Change-Id: I3ef601a38052e38247cebfb19475a31ac2448eac

9 years agoMerge "mediawiki.util: Add mw.util.isIPAddress"
jenkins-bot [Fri, 20 Mar 2015 02:41:38 +0000 (02:41 +0000)]
Merge "mediawiki.util: Add mw.util.isIPAddress"

9 years agobuild: Add assert-mw-env task when running grunt-qunit
Timo Tijhof [Fri, 20 Mar 2015 02:09:17 +0000 (02:09 +0000)]
build: Add assert-mw-env task when running grunt-qunit

Previously it gave cryptic error messages like:

> Running "karma" task
> > Warning: Parameter 'url' must be a string, not number

Change-Id: I0adb0f2f501dd5db2d6738a40efbce349f0175d2

9 years agomediawiki.util: Add mw.util.isIPAddress
Matthew Flaschen [Wed, 18 Mar 2015 02:02:15 +0000 (22:02 -0400)]
mediawiki.util: Add mw.util.isIPAddress

Test it by reusing all the IPv4 and IPv6 cases.

Also, spelling fix

Change-Id: I57e1f00d18a74147da3200be133a4ceb989b1b9d

9 years agoAllow usage of mediawiki.api.options on mobile
Erik Bernhardson [Thu, 19 Mar 2015 23:48:18 +0000 (16:48 -0700)]
Allow usage of mediawiki.api.options on mobile

Change-Id: Ic5b8bc2e5e5e87cd5545812b7c20d73f630ec8e7

9 years agoUpdate OOjs UI to v0.9.3
James D. Forrester [Thu, 19 Mar 2015 23:21:21 +0000 (16:21 -0700)]
Update OOjs UI to v0.9.3

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

Change-Id: Iab68173bddc023b874423ad87d1dd874925a227f

9 years agoAdd example code showing to completely disable logging
Ori Livneh [Thu, 19 Mar 2015 20:16:40 +0000 (13:16 -0700)]
Add example code showing to completely disable logging

Change-Id: I965e1ff51fe31579cf24502b148d9fad971cd298

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 19 Mar 2015 19:28:46 +0000 (20:28 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib9939c0c66487999e57e72e57767612460023b04

9 years agoUse ksort() in getDeduplicationInfo for sanity
Aaron Schulz [Thu, 19 Mar 2015 17:45:39 +0000 (10:45 -0700)]
Use ksort() in getDeduplicationInfo for sanity

Change-Id: Id23cc987b3f1e23b35b0eedbfc5c9978774a0ebd

9 years agoMerge "Remove EditFilterMerged detection define"
jenkins-bot [Thu, 19 Mar 2015 17:11:46 +0000 (17:11 +0000)]
Merge "Remove EditFilterMerged detection define"

9 years agoRemove FormSpecialPage::$fields
Kunal Mehta [Sun, 15 Mar 2015 02:41:55 +0000 (19:41 -0700)]
Remove FormSpecialPage::$fields

Just use the result of FormSpecialPage::getFormFields() directly

Change-Id: I2f6f8e20b83a24e744ab4c6ea5417d9627a3e0aa

9 years agoMerge "Split SiteLookup interface from SiteStore"
jenkins-bot [Thu, 19 Mar 2015 11:32:27 +0000 (11:32 +0000)]
Merge "Split SiteLookup interface from SiteStore"