lhc/web/wiklou.git
9 years agoFixing links on NoLocalSettings page
kaldari [Fri, 20 Feb 2015 23:44:03 +0000 (15:44 -0800)]
Fixing links on NoLocalSettings page

This fixes a regression caused by change I28cd13d4d.

Change-Id: Iff30f08688d17da2d690c5e798c43489b1cafc7e

9 years agoMerge "Use the request object provided in User::setCookies"
jenkins-bot [Fri, 20 Feb 2015 22:19:10 +0000 (22:19 +0000)]
Merge "Use the request object provided in User::setCookies"

9 years agoMore descriptive message for autoloader failures
Max Semenik [Fri, 13 Feb 2015 19:31:24 +0000 (11:31 -0800)]
More descriptive message for autoloader failures

Previously, it just failed with "No such file or directory" without explaining
what's wrong where why.

Change-Id: I776e8fe61f74fd21295da48a45c86ffed9489e23

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

Change-Id: I2212217c92f8b76aa6682d082508d7d822e92a63

9 years agoCorrect misleading documentation
Erik Bernhardson [Fri, 20 Feb 2015 19:27:22 +0000 (11:27 -0800)]
Correct misleading documentation

Change-Id: Ib020467488616eeaa9b53672e5cc45c72f240a54

9 years agoMerge "Some clean-up of TemplateParser"
jenkins-bot [Fri, 20 Feb 2015 19:10:20 +0000 (19:10 +0000)]
Merge "Some clean-up of TemplateParser"

9 years agoMerge "Convert UtfNormalTest into a PHPUnit test"
jenkins-bot [Fri, 20 Feb 2015 18:50:45 +0000 (18:50 +0000)]
Merge "Convert UtfNormalTest into a PHPUnit test"

9 years agoSome clean-up of TemplateParser
kaldari [Fri, 20 Feb 2015 18:50:17 +0000 (10:50 -0800)]
Some clean-up of TemplateParser

* Replacing global var with Config
* Fixing spacing
* Adding @since tag

Change-Id: I8b0a35116eef6ecead16e03a3c408081ee500aa6

9 years agoMerge "Remove maintenance script dumpSisterSites.php"
jenkins-bot [Fri, 20 Feb 2015 17:52:57 +0000 (17:52 +0000)]
Merge "Remove maintenance script dumpSisterSites.php"

9 years agoAPI: Don't allow '#' in title-parts
Brad Jorsch [Fri, 20 Feb 2015 15:18:00 +0000 (10:18 -0500)]
API: Don't allow '#' in title-parts

As-is, this causes loss of a character from the passed-in title leading
to wrong output. But there should never be a '#' in a title-part anyway,
the best thing is to just disallow it completely.

Bug: T38358
Change-Id: Id90bfb9c63a5960e7d2d49350d3e0da0327d0e24

9 years agoRemove maintenance script dumpSisterSites.php
Kevin Israel [Fri, 20 Feb 2015 02:41:44 +0000 (21:41 -0500)]
Remove maintenance script dumpSisterSites.php

This script would perhaps better belong in the SisterSites extension, as noted
on the extension's MW.org description page. However, that extension was never
actually developed to a usable state (first commit was r16390, no substantial
changes since) or imported into Git, so apparently the feature (or at least
its implementation) is of only limited, possibly historical interest.

Change-Id: Ia4c3b0316815f06b7e82f013edfd1798ed07d9a3

9 years agoMerge "mediawiki.special.preferences.js: Simplify modulo"
jenkins-bot [Fri, 20 Feb 2015 13:41:47 +0000 (13:41 +0000)]
Merge "mediawiki.special.preferences.js: Simplify modulo"

9 years agoMerge "mediawiki.special.preferences.js: Simplify creating elements"
jenkins-bot [Fri, 20 Feb 2015 13:40:33 +0000 (13:40 +0000)]
Merge "mediawiki.special.preferences.js: Simplify creating elements"

9 years agoRevert "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"
Aude [Fri, 20 Feb 2015 12:11:44 +0000 (12:11 +0000)]
Revert "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"

due to breakage at least in phpunit tests for mysql:

https://travis-ci.org/wikimedia/mediawiki-extensions-Wikibase/jobs/51490784

This reverts commit 132f7bb89f38780f1433caff8ec643e91a850a8a.

Change-Id: I85d19ab5ad30e8d13a956d7b7467a94c9e73219d

9 years agoAllow override of page disply within CategoryViewer
Erik Bernhardson [Tue, 3 Feb 2015 06:08:12 +0000 (22:08 -0800)]
Allow override of page disply within CategoryViewer

Patch adds two hook which are described in hooks.txt.  This
is being used to allow Flow to offer two links instead of just
one that are relevant to the page that was categorized.

The default output without these hooks is:

   <a href="...">Topic:Soiasdf90f09</a>

This patch allows flow to provide context as to where this topic came
from, by replacing that with:

   <a href="...">Topic:Soiasdf90f09</a> on <a href="...">Talk:Help</a>

(Note that the names of pages within the Topic namespace will also
become more friendly soonish, but outside the scope of this patch).

Bug: T87793
Related-Flow-Change: Ia4f2953bcd807ba3990e762a2efcaab428c40147
Change-Id: I182e6e35fcc3a2a298e928e088579bdb22e145ff

9 years agomediawiki.special.preferences.js: Simplify creating elements
Fomafix [Fri, 20 Feb 2015 12:19:16 +0000 (12:19 +0000)]
mediawiki.special.preferences.js: Simplify creating elements

See:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Creating_elements

Change-Id: Ied43829eb19a4270030af4d3f41882f6c0df7935

9 years agoMerge "Explicitly allow lines up to 100 chars in Rubocop"
jenkins-bot [Fri, 20 Feb 2015 12:06:29 +0000 (12:06 +0000)]
Merge "Explicitly allow lines up to 100 chars in Rubocop"

9 years agoMerge "Fix the Rubocop offense TrailingBlankLines"
jenkins-bot [Fri, 20 Feb 2015 12:06:23 +0000 (12:06 +0000)]
Merge "Fix the Rubocop offense TrailingBlankLines"

9 years agoMerge "Fix the Rubocop offense SpaceInsideHashLiteralBraces"
jenkins-bot [Fri, 20 Feb 2015 12:05:45 +0000 (12:05 +0000)]
Merge "Fix the Rubocop offense SpaceInsideHashLiteralBraces"

9 years agoMerge "Remove outdated Rubocop offenses from .rubocop_todo.yml"
jenkins-bot [Fri, 20 Feb 2015 12:05:21 +0000 (12:05 +0000)]
Merge "Remove outdated Rubocop offenses from .rubocop_todo.yml"

9 years agoMerge "Fix the Rubocop offense SpaceAroundOperators"
jenkins-bot [Fri, 20 Feb 2015 12:05:09 +0000 (12:05 +0000)]
Merge "Fix the Rubocop offense SpaceAroundOperators"

9 years agoMerge "Fix the Rubocop offense LeadingCommentSpace"
jenkins-bot [Fri, 20 Feb 2015 12:04:57 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense LeadingCommentSpace"

9 years agoMerge "Fix the Rubocop offense EmptyLinesAroundBody"
jenkins-bot [Fri, 20 Feb 2015 12:04:43 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense EmptyLinesAroundBody"

9 years agoMerge "Fix the Rubocop offense EmptyLines"
jenkins-bot [Fri, 20 Feb 2015 12:04:39 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense EmptyLines"

9 years agoMerge "Fix the Rubocop offense AmbiguousRegexpLiteral"
jenkins-bot [Fri, 20 Feb 2015 12:04:34 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense AmbiguousRegexpLiteral"

9 years agomediawiki.special.preferences.js: Simplify modulo
Fomafix [Fri, 20 Feb 2015 12:02:59 +0000 (12:02 +0000)]
mediawiki.special.preferences.js: Simplify modulo

See:
https://stackoverflow.com/questions/4467539/javascript-modulo-not-behaving

Change-Id: Id3efc7c7a1a57dcbb33ba1272ed5a20428ee6433

9 years agoMerge "Maintenance script for exporting site definitions"
jenkins-bot [Fri, 20 Feb 2015 11:16:18 +0000 (11:16 +0000)]
Merge "Maintenance script for exporting site definitions"

9 years agoMaintenance script for exporting site definitions
daniel [Mon, 2 Feb 2015 10:58:14 +0000 (11:58 +0100)]
Maintenance script for exporting site definitions

Bug: T87178
Change-Id: I40fd6aaa8f47bad3d595d5c190036bf04d13c12a

9 years agoPreferences: Use mediawiki.confirmCloseWindow module
Derk-Jan Hartman [Wed, 18 Feb 2015 22:56:54 +0000 (23:56 +0100)]
Preferences: Use mediawiki.confirmCloseWindow module

This logic was duplicated into the preferences page module before we
had refactored it into a separate module.

Bug: T89819
Change-Id: I67a25ff8758f009123526d5194929bfcd7c3039b

9 years agoMerge "Maintenance script for importing site info."
jenkins-bot [Fri, 20 Feb 2015 10:45:16 +0000 (10:45 +0000)]
Merge "Maintenance script for importing site info."

9 years agoMerge "Avoid double word-separator when using Linker::userToolLinks"
jenkins-bot [Fri, 20 Feb 2015 08:21:46 +0000 (08:21 +0000)]
Merge "Avoid double word-separator when using Linker::userToolLinks"

9 years agoresourceloader: Simplify log message for getDefinitionMtime() cache miss
Timo Tijhof [Tue, 17 Feb 2015 01:01:18 +0000 (01:01 +0000)]
resourceloader: Simplify log message for getDefinitionMtime() cache miss

* Add quotes around context (which has pipe characters in it).
* Remove hash (not useful).

Change-Id: Iff80c914add0c5a2fe27fff6398bb3384102e3d2

9 years agoConvert UtfNormalTest into a PHPUnit test
Kunal Mehta [Wed, 7 Jan 2015 20:27:33 +0000 (12:27 -0800)]
Convert UtfNormalTest into a PHPUnit test

Change-Id: I20b90b1d9d2225d12adadb8c00c793fe7927f1bc

9 years agoMerge "API: Add authz features for RESTBase"
jenkins-bot [Fri, 20 Feb 2015 05:51:56 +0000 (05:51 +0000)]
Merge "API: Add authz features for RESTBase"

9 years agoRemoved doCascadeProtectionUpdates method to avoid DB writes on page views
Aaron Schulz [Thu, 12 Feb 2015 23:03:24 +0000 (15:03 -0800)]
Removed doCascadeProtectionUpdates method to avoid DB writes on page views

* Use special prioritized refreshLinksJobs instead, which triggers when
  transcluded pages are changed
* Also added a triggerOpportunisticLinksUpdate() method to handle
  dynamic transcludes

bug: T89389
Change-Id: I8e5a6ddb643c12e0fb5c1c68bc83f912944e6e8d

9 years agoMerge "Adding TemplateParser class providing interface to Mustache templates"
jenkins-bot [Fri, 20 Feb 2015 02:33:27 +0000 (02:33 +0000)]
Merge "Adding TemplateParser class providing interface to Mustache templates"

9 years agoMade TransactionProfiler log regardless of Profiler
Aaron Schulz [Fri, 20 Feb 2015 01:50:51 +0000 (17:50 -0800)]
Made TransactionProfiler log regardless of Profiler

* Also avoid the use of slow closures for profiling

Change-Id: Id437e39038fd9ba80b899329a61e9f14229481f2

9 years agoAdding TemplateParser class providing interface to Mustache templates
kaldari [Fri, 30 Jan 2015 19:31:44 +0000 (11:31 -0800)]
Adding TemplateParser class providing interface to Mustache templates

The TemplateParser class provides a server-side interface to cachable
dynamically-compiled Mustache templates. It currently uses the
lightncandy library to do compilation (which is already included in
the vendor repo).

Also converting NoLocalSettings.php to use it as a proof-of-concept.

Bug: T379
Change-Id: I28cd13d4d1132bd386e2ae2f4f0d1dd88ad9162b

9 years agoSync up with Parsoid parserTests.
Arlo Breault [Thu, 19 Feb 2015 23:16:58 +0000 (15:16 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit b3127b83a8923c7d73c7e00eb0c651e039b84521

Change-Id: I0d8160bc93e5912c2466d1a3051d2a69cca6c41a

9 years agoMerge "Add clickable link for section headers"
jenkins-bot [Thu, 19 Feb 2015 22:00:53 +0000 (22:00 +0000)]
Merge "Add clickable link for section headers"

9 years agoAdd clickable link for section headers
Vivek Ghaisas [Tue, 17 Feb 2015 16:24:26 +0000 (21:54 +0530)]
Add clickable link for section headers

Changed the Linker::makeHeadline function to additionally generate an
anchor that uses a section symbol. Created mediawiki.sectionAnchor
module to style the anchors and included it in SkinTemplate so that
other skins automatically get those styles.

Bug: T18691
Change-Id: I562e437ec0bd337c9db0406f5dcab504dfa37034

9 years agoAPI: Add authz features for RESTBase
Brad Jorsch [Thu, 29 Jan 2015 20:14:40 +0000 (12:14 -0800)]
API: Add authz features for RESTBase

The RESTBase team has requested the ability to check the validity of a
CSRF token and to interface with Title::userCan().

The former is accomplished by the new action=checktoken module. The
latter by a new parameter ('testactions') to the existing prop=info.

Bug: T88010
Change-Id: I2530f1315ec93f5be9fb437137992150fdc305f2

9 years agoMerge "database: Move LoadBalancer::getConnection debugmsg to getReaderIndex"
jenkins-bot [Thu, 19 Feb 2015 21:40:34 +0000 (21:40 +0000)]
Merge "database: Move LoadBalancer::getConnection debugmsg to getReaderIndex"

9 years agodatabase: Move LoadBalancer::getConnection debugmsg to getReaderIndex
Timo Tijhof [Thu, 19 Feb 2015 21:24:26 +0000 (21:24 +0000)]
database: Move LoadBalancer::getConnection debugmsg to getReaderIndex

Most of the time the early $this->mReadIndex inside getReaderIndex()
should be a hit, in which case this message isn't very useful.

This one message was filling up over 60% of the build logs (496/720 lines).
> LoadBalancer::getConnection: using server  for group ''

Move it to further down in getReaderIndex() where it actually
tries and finds one.

Change-Id: Id572f2bb3a905e095fcc929a9e2c17f40f7b1b6e

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 19 Feb 2015 20:44:39 +0000 (21:44 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8af63eaa5674731fc32c5a8cbdc1df7fe1cf577f

9 years agoMerge "database: Avoid use of PDO transaction system for SQLite"
jenkins-bot [Thu, 19 Feb 2015 20:15:33 +0000 (20:15 +0000)]
Merge "database: Avoid use of PDO transaction system for SQLite"

9 years agodatabase: Avoid use of PDO transaction system for SQLite
Timo Tijhof [Thu, 19 Feb 2015 01:05:20 +0000 (01:05 +0000)]
database: Avoid use of PDO transaction system for SQLite

This is in preparation for changing doBegin() to use BEGIN IMMEDIATE.

PDO::beginTransaction() doesn't support any parameters for mode.
Use direct queries instead so that modes (such as IMMEDIATE) can
be used.

Since PDO's transaction system maintains state internally (similarly
to what MediaWiki Database classes do) we have to abandon use of
PDO commit() and rollback() as well (in favour of direct queries
already provided by DatabaseBase).

Bug: T89180
Change-Id: I2ad2a3c2a6d4737f5ef8822fba7cbcf5e36021f4

9 years agoMerge "mediawiki.skinning: Remove italics from q tag for IE7 and below"
jenkins-bot [Thu, 19 Feb 2015 20:00:47 +0000 (20:00 +0000)]
Merge "mediawiki.skinning: Remove italics from q tag for IE7 and below"

9 years agoMerge "Made BloomFilterTitleHasLogs refresh odds linear to be smoother"
jenkins-bot [Thu, 19 Feb 2015 19:38:57 +0000 (19:38 +0000)]
Merge "Made BloomFilterTitleHasLogs refresh odds linear to be smoother"

9 years agoMerge "Html::openElement: Don't omit closing tags."
jenkins-bot [Thu, 19 Feb 2015 19:34:23 +0000 (19:34 +0000)]
Merge "Html::openElement: Don't omit closing tags."

9 years agoSpecialLinkSearch: clean up munged query variable handling
Chad Horohoe [Thu, 19 Feb 2015 18:07:38 +0000 (10:07 -0800)]
SpecialLinkSearch: clean up munged query variable handling

- Drop m prefix, it's silly
- Give it a default value so it doesn't complain about undefined variables

Change-Id: I378ffe304a5b29d4f35821c1f867d3a26caf5223

9 years agoFix hook situation for Skin::doEditSectionLink
Alex Monk [Sat, 14 Feb 2015 00:18:12 +0000 (00:18 +0000)]
Fix hook situation for Skin::doEditSectionLink

The old hook supplied a way to override the HTML used for the section link,
but two extensions both trying to use it was obviously not going to work.
Deprecate it in favour of a hook that goes around gathering info to build
the initial HTML, then shoves it through the old hook for back-compat.

So that WikiEditor can add in extra URL parameters as well as VE adding in it's
own link.

Bug: T88027
Change-Id: I5a7a23709805625bdefb69cd9379be0c95acd982

9 years agoExplicitly allow lines up to 100 chars in Rubocop
Amir E. Aharoni [Wed, 18 Feb 2015 00:33:20 +0000 (02:33 +0200)]
Explicitly allow lines up to 100 chars in Rubocop

According to
https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby

Change-Id: If938720d48a8f5a17263a886bb94cd900b929b05

9 years agoFix the Rubocop offense TrailingBlankLines
Amir E. Aharoni [Wed, 18 Feb 2015 00:31:44 +0000 (02:31 +0200)]
Fix the Rubocop offense TrailingBlankLines

Done using
bundle exec rubocop -c .rubocop.yml --auto-correct

Change-Id: Ieb5d7d47056f6ca17b0016147a057ad10266b6b9

9 years agoFix the Rubocop offense SpaceInsideHashLiteralBraces
Amir E. Aharoni [Wed, 18 Feb 2015 00:29:58 +0000 (02:29 +0200)]
Fix the Rubocop offense SpaceInsideHashLiteralBraces

Done using
bundle exec rubocop -c .rubocop.yml --auto-correct

Change-Id: I8266fe28678c0e30f6dcf67f3d2136254d86d59e

9 years agoRemove outdated Rubocop offenses from .rubocop_todo.yml
Amir E. Aharoni [Wed, 18 Feb 2015 00:28:24 +0000 (02:28 +0200)]
Remove outdated Rubocop offenses from .rubocop_todo.yml

Change-Id: I11872c7ed19ab4e02cffe5c87e72f335f1c557c8

9 years agoFix the Rubocop offense SpaceAroundOperators
Amir E. Aharoni [Wed, 18 Feb 2015 00:27:34 +0000 (02:27 +0200)]
Fix the Rubocop offense SpaceAroundOperators

Done using
bundle exec rubocop -c .rubocop.yml --auto-correct

Change-Id: I10048311b3cc03d2e3f2d71ba229d5f3437f6d76

9 years agoFix the Rubocop offense LeadingCommentSpace
Amir E. Aharoni [Wed, 18 Feb 2015 00:26:32 +0000 (02:26 +0200)]
Fix the Rubocop offense LeadingCommentSpace

Change-Id: Ib284ca0d8604e521701f43553cc7954493440a7e

9 years agoFix the Rubocop offense EmptyLinesAroundBody
Amir E. Aharoni [Wed, 18 Feb 2015 00:25:29 +0000 (02:25 +0200)]
Fix the Rubocop offense EmptyLinesAroundBody

Change-Id: I8f25f4a417f40db263ebaf0a4b5afed97218635a

9 years agoFix the Rubocop offense EmptyLines
Amir E. Aharoni [Wed, 18 Feb 2015 00:24:28 +0000 (02:24 +0200)]
Fix the Rubocop offense EmptyLines

Change-Id: Ib05319b6af0b85df0966ae660ad01fc440361368

9 years agoFix the Rubocop offense AmbiguousRegexpLiteral
Amir E. Aharoni [Wed, 18 Feb 2015 00:23:08 +0000 (02:23 +0200)]
Fix the Rubocop offense AmbiguousRegexpLiteral

Change-Id: Ic060ce7fd85970cbfec4e9cbee8954dd69492e23

9 years agoMerge "DatabaseMssql: Don't duplicate body of makeList()"
jenkins-bot [Thu, 19 Feb 2015 10:10:50 +0000 (10:10 +0000)]
Merge "DatabaseMssql: Don't duplicate body of makeList()"

9 years agoDisable edit section buttons on live preview
Fomafix [Thu, 19 Feb 2015 09:31:27 +0000 (09:31 +0000)]
Disable edit section buttons on live preview

The classical preview also does not show edit section buttons.

Bug: T89941
Change-Id: I5f9e06f33253cd155e063305b822d4ae6d155011

9 years agoDatabaseMssql: Don't duplicate body of makeList()
Kevin Israel [Sat, 3 Jan 2015 10:06:35 +0000 (05:06 -0500)]
DatabaseMssql: Don't duplicate body of makeList()

Instead keep only the code that creates blobs for specific columns
and call DatabaseBase:makeList() to handle the rest.

This will allow the fix made in 26235c73376b to work also for MSSQL.

Change-Id: I74ae55a52fcd1dad8b857385396bd8f5d81370ba

9 years agoResources: Use OOjs UI distribution with vector→raster fallback
Bartosz Dziewoński [Mon, 16 Feb 2015 18:45:48 +0000 (19:45 +0100)]
Resources: Use OOjs UI distribution with vector→raster fallback

Bug: T87501
Change-Id: Iff139bf2601d517d91f922c033f1e3e793757943

9 years agoUpdate OOjs UI to v0.8.0
James D. Forrester [Thu, 19 Feb 2015 01:36:58 +0000 (17:36 -0800)]
Update OOjs UI to v0.8.0

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

Change-Id: If14d382beae3f42d2ffb3a43ee0c3e2a488a5fa1

9 years agoMerge "Made ActiveUsers work a bit better on small wikis"
jenkins-bot [Thu, 19 Feb 2015 00:48:34 +0000 (00:48 +0000)]
Merge "Made ActiveUsers work a bit better on small wikis"

9 years agoMerge "Fixed a path issue in NoLocalSettings"
jenkins-bot [Wed, 18 Feb 2015 23:03:38 +0000 (23:03 +0000)]
Merge "Fixed a path issue in NoLocalSettings"

9 years agoMerge "Made TransactionProfiler affected-row warnings not trigger for JobRunner"
jenkins-bot [Wed, 18 Feb 2015 23:01:49 +0000 (23:01 +0000)]
Merge "Made TransactionProfiler affected-row warnings not trigger for JobRunner"

9 years agoAPI: Unconditionally load ipb_timestamp in ApiQueryBlocks
Brad Jorsch [Wed, 18 Feb 2015 21:54:25 +0000 (16:54 -0500)]
API: Unconditionally load ipb_timestamp in ApiQueryBlocks

Continuation breaks without it.

Bug: T89893
Change-Id: I7f29e7b65d49ac3764bb3584c586cbd575929592

9 years agoHtml::openElement: Don't omit closing tags.
Ricordisamoa [Wed, 18 Feb 2015 21:35:22 +0000 (22:35 +0100)]
Html::openElement: Don't omit closing tags.

Logic added with commit eefe1b13a382a7d11c2137bbf900b783ee445323
for both openElement and closeElement, removed with commit
d950da075dcb6c6dd3f68a50a0d427569350763a but only from closeElement.

Reported by Petr Bena on Wikitech-l:
https://lists.wikimedia.org/pipermail/wikitech-l/2015-February/080861.html

Change-Id: I6ed45763f7e95f7f39b73432e4f6152431891963

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 18 Feb 2015 20:35:47 +0000 (20:35 +0000)]
Merge "Localisation updates from https://translatewiki.net."

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

Change-Id: I1c6633f6b0182696cbb7341d8010965b02fb0594

9 years agoAdjusting patrol checks for RC and watchlist prefs
cenarium [Tue, 17 Feb 2015 19:55:00 +0000 (20:55 +0100)]
Adjusting patrol checks for RC and watchlist prefs

This uses the NP patrol check instead of the RC patrol check for the
preference option that allows to hide unpatrolled new pages by default.
And this checks use of RC patrol for the user instead of the config for
the watchlist option (so that users who cannot patrol don't have it).

Bug: T89716
Change-Id: I2895a96f8c21ade83b0174d0d02d1b7e00625737

9 years agoMerge "Detect duplicate archived files by SHA1 search on upload"
jenkins-bot [Wed, 18 Feb 2015 19:57:35 +0000 (19:57 +0000)]
Merge "Detect duplicate archived files by SHA1 search on upload"

9 years agoDetect duplicate archived files by SHA1 search on upload
rillke [Fri, 13 Feb 2015 18:10:36 +0000 (19:10 +0100)]
Detect duplicate archived files by SHA1 search on upload

- As of now, we detect duplicate files by a combination of sha1
  and file extension.
- Since multiple file extensions for the same MIME are permitted
  this method does not reliably work.

Bug: T74070
Change-Id: If13059441097799227f23ece36a96c8375f17aab

9 years agoResourceLoaderImage: tighten up svg handling
Chad Horohoe [Wed, 18 Feb 2015 19:19:38 +0000 (11:19 -0800)]
ResourceLoaderImage: tighten up svg handling

- Check $wgSVGConverter to see if it starts with rsvg, instead
  of just being rsvg. Other things like rsvg-secure are also ok.
- Make sure SvgHandler::rasterize() returned sanely before attempting
  to use the file it produces.
- Clean up temp SVG file if we return early
- Add some debug logging when rasterization fails

Bug: T89505
Change-Id: I9483c8c54a30e328565182b00d50dbf3b83076cd

9 years agoMaintenance script for importing site info.
daniel [Mon, 22 Dec 2014 10:30:03 +0000 (10:30 +0000)]
Maintenance script for importing site info.

Bug: T87176
Bug: T87183
Change-Id: I3936417bc79e08cf3d04270158a6e483b5515246

9 years agoMerge "Parse "retrievedfrom" and "lastmodifiedat""
jenkins-bot [Wed, 18 Feb 2015 17:16:18 +0000 (17:16 +0000)]
Merge "Parse "retrievedfrom" and "lastmodifiedat""

9 years agoMerge "PostgreSQL: Improve dropping of foreign key constraint"
jenkins-bot [Wed, 18 Feb 2015 17:02:38 +0000 (17:02 +0000)]
Merge "PostgreSQL: Improve dropping of foreign key constraint"

9 years agoMerge "skin: Use Title::isKnown() / Title::exists() instead of Title::getArticleID()"
jenkins-bot [Wed, 18 Feb 2015 16:44:38 +0000 (16:44 +0000)]
Merge "skin: Use Title::isKnown() / Title::exists() instead of Title::getArticleID()"

9 years agoParse "retrievedfrom" and "lastmodifiedat"
Yusuke Matsubara [Wed, 18 Feb 2015 14:00:21 +0000 (23:00 +0900)]
Parse "retrievedfrom" and "lastmodifiedat"

The two system messages should allow wikitext.
The messages have been customized on many wikis to
include additional links and other HTML features.
Previously they allowed raw HTML.
Follows up Ifd696ecd and Ibcc1b499.

Bug: T86702
Bug: T87269
Change-Id: I6e67906a8c2a06c63620b0fb49226335ccb84650

9 years agoFlush any implicit transactions in RecentChangesUpdateJob
Marius Hoch [Wed, 18 Feb 2015 08:44:05 +0000 (09:44 +0100)]
Flush any implicit transactions in RecentChangesUpdateJob

Bug: T89806
Change-Id: Ibd71966225de3dfb392002fc3fd181b2ff521b9d

9 years agoPostgreSQL: Improve dropping of foreign key constraint
Jeff Janes [Wed, 18 Feb 2015 05:22:40 +0000 (21:22 -0800)]
PostgreSQL: Improve dropping of foreign key constraint

Change I2abd650c8ce83c5b725aec054 to fix bug T76254 was
inefficient upon subsequent updates, as update.php would
first add the constraint, and then remove it again.

Remove the older code responsible for adding the doomed
constraint.

Also, make the "do nothing" output message more consistent
with other messages of the same nature.

Change-Id: Id6a05c1234fbdc5849480d13fb7d6476eac52857

9 years agoFixed backwards $group check in LoadBalancer
Aaron Schulz [Wed, 18 Feb 2015 01:28:20 +0000 (17:28 -0800)]
Fixed backwards $group check in LoadBalancer

* Fixes 9190427

bug: T89507
Change-Id: I192ac3b00160c85e22e18d69cea5d9c46d2a301a

9 years agoMade TransactionProfiler affected-row warnings not trigger for JobRunner
Aaron Schulz [Wed, 18 Feb 2015 00:50:12 +0000 (16:50 -0800)]
Made TransactionProfiler affected-row warnings not trigger for JobRunner

* The CLI check did not work since jobs can work via HTTP requests

Change-Id: I524e79fd51275777c1505e29ecf0725b998eabcc

9 years agoskin: Use Title::isKnown() / Title::exists() instead of Title::getArticleID()
Kunal Mehta [Tue, 17 Feb 2015 22:04:36 +0000 (14:04 -0800)]
skin: Use Title::isKnown() / Title::exists() instead of Title::getArticleID()

Some of these calls pre-date the existence of isKnown() and exists(), which
should be used instead of calling getArticleID() directly. For places where
we're just trying to determine link color, I used isKnown(), and for other
places we're trying to figure out where an article exists, I used exists().

Bug: T85550
Change-Id: I47c8af8485857cc0f3190b4ada1578ab672580af

9 years agoFix TOC anchor name collisions in edge cases
Jackmcbarn [Sun, 28 Dec 2014 20:07:49 +0000 (15:07 -0500)]
Fix TOC anchor name collisions in edge cases

Currently, the parser adds a "_2" to the second of two identical headlines to
avoid collisions, but there's still a collision if another headline actually
ends in "_2". This change causes the new headline to also be checked for a
collision, and advances to "_3" or beyond if there is one.

Bug: T26787
Change-Id: Id0a55aa4c1917bac2f8f0d4863fcb85bd3dff1ca

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

Change-Id: Iaf0e89004c1d0358b1bad108fbbafed7f9004637

9 years agoMerge "mediawiki.skinning: Merge toccolours into css rule for toc and mw-warning"
jenkins-bot [Tue, 17 Feb 2015 19:17:42 +0000 (19:17 +0000)]
Merge "mediawiki.skinning: Merge toccolours into css rule for toc and mw-warning"

9 years agoMade ActiveUsers work a bit better on small wikis
Aaron Schulz [Tue, 17 Feb 2015 18:33:01 +0000 (10:33 -0800)]
Made ActiveUsers work a bit better on small wikis

bug: T89027
Change-Id: If0fc4b51b89170e000cf42bdc3e782e42323a440

9 years agomediawiki.skinning: Merge toccolours into css rule for toc and mw-warning
Timo Tijhof [Tue, 17 Feb 2015 18:17:54 +0000 (18:17 +0000)]
mediawiki.skinning: Merge toccolours into css rule for toc and mw-warning

Exactly the same, line for line.

Change-Id: I3076d733514665a55463f087d1eb189929d44b26

9 years agoMerge "Make showDiffPage() protected"
jenkins-bot [Tue, 17 Feb 2015 17:56:16 +0000 (17:56 +0000)]
Merge "Make showDiffPage() protected"

9 years agoMerge "[schema] Make column user_newtalk.user_id an unsigned int"
jenkins-bot [Tue, 17 Feb 2015 17:44:43 +0000 (17:44 +0000)]
Merge "[schema] Make column user_newtalk.user_id an unsigned int"

9 years ago[schema] Make column user_newtalk.user_id an unsigned int
umherirrender [Sun, 15 Feb 2015 18:29:38 +0000 (19:29 +0100)]
[schema] Make column user_newtalk.user_id an unsigned int

The primary key of the user table is an unsigned int, the column
user_newtalk.user_id refer the id and should have the same typ to store
the same values as the user table does.

No pre-deployment activity necessary; no need to sync deployment
and merge; can be done at any time (now or later)

Bug: T77005
Change-Id: I641dc1fad0a5bb14815f55e0357243a562fd672b

9 years agoMerge "mediawiki.ui: button: Use the correct background color for disabled buttons"
jenkins-bot [Tue, 17 Feb 2015 14:00:35 +0000 (14:00 +0000)]
Merge "mediawiki.ui: button: Use the correct background color for disabled buttons"

9 years agoMerge "jquery.tablesorter: testcases for the parsers"
jenkins-bot [Tue, 17 Feb 2015 13:42:22 +0000 (13:42 +0000)]
Merge "jquery.tablesorter: testcases for the parsers"

9 years agoMerge "Improve title text in jquery.confirmable"
jenkins-bot [Tue, 17 Feb 2015 13:39:52 +0000 (13:39 +0000)]
Merge "Improve title text in jquery.confirmable"

9 years agoMerge "jquery.makeCollapsible: Align toggle based on content language"
jenkins-bot [Tue, 17 Feb 2015 13:37:31 +0000 (13:37 +0000)]
Merge "jquery.makeCollapsible: Align toggle based on content language"

9 years agoMerge "htmlform: Simplify implementation of loadDataFromRequest()"
jenkins-bot [Tue, 17 Feb 2015 13:36:15 +0000 (13:36 +0000)]
Merge "htmlform: Simplify implementation of loadDataFromRequest()"