lhc/web/wiklou.git
9 years agoHide section anchor links from screen readers using aria-hidden
Bartosz Dziewoński [Mon, 2 Mar 2015 09:16:29 +0000 (10:16 +0100)]
Hide section anchor links from screen readers using aria-hidden

Hide from screen readers, as it is inside a heading (the programs use
headings to navigate, so the symbol is being read during navigation).
Pending T13555 being fixed.

See <https://phabricator.wikimedia.org/T18691#1076371> and
<https://phabricator.wikimedia.org/T18691#1076857> for reasoning.

Bug: T18691
Change-Id: I736cb7f52d5ce37eb7e8d3a3648ffd0bd40f2c83

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 1 Mar 2015 20:38:12 +0000 (21:38 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iee49f1dd94d5cc94647b7b47277aee2625db56e1

9 years agoAdd composer lint, phpcs, and test commands
Kunal Mehta [Tue, 6 Jan 2015 18:47:25 +0000 (10:47 -0800)]
Add composer lint, phpcs, and test commands

lint uses jakub-onderka/php-parallel-lint to check the syntax of the provided
PHP files or directories.

phpcs uses the MediaWiki codesniffer standard to check the provided files or
directories.

test runs both lint and phpcs together. phpunit is not included at this time
because our phpunit tests require a database to be set up and are very very
slow.

Example usage:
  composer lint .  # Lint all files
  composer phpcs includes/FooBar.php  # Check code style of one file
  composer test extensions/FooBar  # Lint and check an extension

Change-Id: I3c7ac7a02668776de6400ac268f37e7e6b35a3c6

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 28 Feb 2015 20:43:26 +0000 (21:43 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id79fa4748516563b5c8429e08e7edce047b97963

9 years agoMerge "refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()"
jenkins-bot [Sat, 28 Feb 2015 19:58:03 +0000 (19:58 +0000)]
Merge "refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()"

9 years agoMerge "LivePreview: Wrap content preview with mw-content-*"
jenkins-bot [Sat, 28 Feb 2015 14:47:53 +0000 (14:47 +0000)]
Merge "LivePreview: Wrap content preview with mw-content-*"

9 years agoAvoid access to array key that does not exist
physikerwelt [Fri, 27 Feb 2015 21:53:56 +0000 (16:53 -0500)]
Avoid access to array key that does not exist

Accessing an array element that is not set
causes a PHP notice. This change first, checks if the
array key is present.

Bug: T91127
Change-Id: I468a95851e6acdb8186a06b0a2ac73499cc4611f

9 years agoMerge "Escape messages 'word-separator' and 'parentheses' in InfoAction"
jenkins-bot [Sat, 28 Feb 2015 11:28:54 +0000 (11:28 +0000)]
Merge "Escape messages 'word-separator' and 'parentheses' in InfoAction"

9 years agorefreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()
Kevin Israel [Sat, 28 Feb 2015 09:54:48 +0000 (04:54 -0500)]
refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()

Instead of exiting the do...while loop only once a query returns zero
rows, exit whenever fewer rows than the batch size are returned. This
could save quite a bit of time when the highest nonexistent page_id
found is a relatively low one.

Follows-up 40e300b8273d.

Bug: T44180
Change-Id: I14d2d48c2405fcc0bd05a3181ba6293caef5298c

9 years agoMerge "Gracefully handle redirects in SpecialMyLanguage"
jenkins-bot [Sat, 28 Feb 2015 01:06:30 +0000 (01:06 +0000)]
Merge "Gracefully handle redirects in SpecialMyLanguage"

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

Change-Id: I853bf0e029de0348e1ecdcd5cfa624cb12a68947

9 years agoMerge "Made ConfigException extend Exception"
jenkins-bot [Fri, 27 Feb 2015 20:03:25 +0000 (20:03 +0000)]
Merge "Made ConfigException extend Exception"

9 years agoMade ConfigException extend Exception
Aaron Schulz [Fri, 27 Feb 2015 19:24:15 +0000 (11:24 -0800)]
Made ConfigException extend Exception

Change-Id: Ic63c9cbfcb653a2fb39445a3b6ec4b88d8084d7a

9 years agobuild: Work around jshint failure for global JSON object
Roan Kattouw [Fri, 27 Feb 2015 19:04:52 +0000 (11:04 -0800)]
build: Work around jshint failure for global JSON object

jshint is now failing with errors about how it doesn't
recognize the global 'JSON' object, even though we have
browser:true set. This worked in 2.6.0 but broke in 2.6.1.

Other people have reported similar but different problems with
jshint: https://github.com/jshint/jshint/issues/2213 .
It looks like 2.6.1 is a seriously broken release, but we
can't work around it in package.json because grunt-contrib-jshint
depends on 2.6.*, assuming that point releases are backwards
compatible. Which they should be.

Change-Id: I85bcf1c97f2f8c82e139ebf2f1b6c4248b72f45e

9 years agoUpdate OOjs UI to v0.8.2
James D. Forrester [Fri, 27 Feb 2015 18:09:37 +0000 (13:09 -0500)]
Update OOjs UI to v0.8.2

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

Change-Id: Ie6722b1aae1970d628a82c491c8d525768d01925

9 years agoMerge "installer: Use HTTPS links for licenses"
jenkins-bot [Fri, 27 Feb 2015 17:42:50 +0000 (17:42 +0000)]
Merge "installer: Use HTTPS links for licenses"

9 years agoMerge "refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()"
Aaron Schulz [Fri, 27 Feb 2015 17:37:20 +0000 (17:37 +0000)]
Merge "refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()"

9 years agoMerge "Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()"
jenkins-bot [Fri, 27 Feb 2015 16:43:32 +0000 (16:43 +0000)]
Merge "Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()"

9 years agoMerge "Fix testGetCanonicalName PHPUnit test:"
jenkins-bot [Fri, 27 Feb 2015 16:18:13 +0000 (16:18 +0000)]
Merge "Fix testGetCanonicalName PHPUnit test:"

9 years agorefreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()
Kevin Israel [Tue, 24 Feb 2015 02:16:23 +0000 (21:16 -0500)]
refreshLinks.php: Get IDs in batches in deleteLinksFromNonexistent()

... instead of making an unbuffered query, which is discouraged in the
doc comment for DatabaseBase::bufferResults().

Also used NOT IN for the antijoin instead of LEFT JOIN...IS NULL; when
combined with DISTINCT, the latter causes MySQL to use a temporary
table rather than an appropriate index, according to EXPLAIN. (Using
GROUP BY instead of DISTINCT also avoids this problem. I don't know why.)

Bug: T44180
Change-Id: Idca85fac7dd7879f9fbef2712b6aa83343099e02

9 years agoMerge "New convenience method ApiBase::lacksSameOriginSecurity()"
jenkins-bot [Fri, 27 Feb 2015 15:14:52 +0000 (15:14 +0000)]
Merge "New convenience method ApiBase::lacksSameOriginSecurity()"

9 years agoNew convenience method ApiBase::lacksSameOriginSecurity()
Ricordisamoa [Wed, 17 Dec 2014 11:09:04 +0000 (11:09 +0000)]
New convenience method ApiBase::lacksSameOriginSecurity()

For consistent handling of API requests with the 'callback' argument.

Change-Id: Ic6e3483f5e8819498c693650a11728efc1bafcc0

9 years agoFix fatal "Call to setExpectation() on non-object" in MediaWiki::main()
Timo Tijhof [Fri, 27 Feb 2015 14:02:24 +0000 (14:02 +0000)]
Fix fatal "Call to setExpectation() on non-object" in MediaWiki::main()

Follows-up b403a757726e2762888e0d0ee50d.

Caught by the qunit tests via Special:RunJobs. The test is still
work-in-progress (T50002) but it's already paying off :)

Change-Id: Idb37ecb97ff77950a981bfe10a46f27e532e1abb

9 years agoMerge "Introduce HashSiteStore, mainly for use in tests"
jenkins-bot [Fri, 27 Feb 2015 11:51:53 +0000 (11:51 +0000)]
Merge "Introduce HashSiteStore, mainly for use in tests"

9 years agoIntroduce HashSiteStore, mainly for use in tests
aude [Thu, 26 Feb 2015 14:53:08 +0000 (15:53 +0100)]
Introduce HashSiteStore, mainly for use in tests

HashSiteStore comes from Wikibase (see I783bd95), where it was
called MockSiteStore.

This enables some phpunit tests, related to Site objects, to no longer
depend on a database, memcached or other external storage. This makes
tests faster and more simple.

Bug: T90874
Change-Id: I048d37bd2aaa5f17c9fe16b2855df8bf9fe7bc8c

9 years agoFix testGetCanonicalName PHPUnit test:
Matthew Flaschen [Fri, 27 Feb 2015 05:35:08 +0000 (00:35 -0500)]
Fix testGetCanonicalName PHPUnit test:

* assertEquals takes expected, prior to actual
  https://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.assertions.assertEquals
* ' trailing space ' test was failing with wgCapitalLinks false.  Since the test is not about that,
  I changed it to ' Trailing space '.  The alternative would be to force wgCapitalLinks to true
  with setMwGlobals or skip the test if it's true.

Change-Id: I677273045bdabb6248ffe2c2f003a3673b3fa51c

9 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Fri, 27 Feb 2015 05:37:29 +0000 (05:37 +0000)]
Merge "Sync up with Parsoid parserTests."

9 years agoSync up with Parsoid parserTests.
Arlo Breault [Fri, 27 Feb 2015 04:37:33 +0000 (20:37 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 47ddba73a5f6078ac265f091d9c9e841c0fdead6

Change-Id: I07bd6edd2d62291f75bea79ab7825e390ccb314e

9 years agoGracefully handle redirects in SpecialMyLanguage
Erik Bernhardson [Fri, 27 Feb 2015 00:19:27 +0000 (16:19 -0800)]
Gracefully handle redirects in SpecialMyLanguage

Currently if you have a link that goes through SpecialMyLanguage
and that page is redirected you will no longer get it in your
language. This adjusts to follow redirects before resolving language.

Bug: T58036
Change-Id: I88fcfeb86d81a33a8eccc6119693c2ecb857afb2

9 years agoMade "maxAffected" query expectation actually apply
Aaron Schulz [Thu, 26 Feb 2015 23:45:29 +0000 (15:45 -0800)]
Made "maxAffected" query expectation actually apply

Change-Id: Ib7796fe0975b50b96c5e1d53384079735eea881d

9 years agoMerge "Made insertMessageBlob only catch DBError for sanity"
jenkins-bot [Thu, 26 Feb 2015 21:46:35 +0000 (21:46 +0000)]
Merge "Made insertMessageBlob only catch DBError for sanity"

9 years agoMade insertMessageBlob only catch DBError for sanity
Aaron Schulz [Thu, 26 Feb 2015 20:40:20 +0000 (12:40 -0800)]
Made insertMessageBlob only catch DBError for sanity

Change-Id: I1614e7fde052e7b6f9d86d86af6eed1ba52dc430

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

Change-Id: I49e15ff89e58153a9ce674de36127c9ed52e1ad9

9 years agoEscape messages 'word-separator' and 'parentheses' in InfoAction
umherirrender [Fri, 30 Jan 2015 17:08:10 +0000 (18:08 +0100)]
Escape messages 'word-separator' and 'parentheses' in InfoAction

This change will not break the usage of the messages, because there are
usually used escaped in mediawiki/core.

Change-Id: I049134e2fbfadab04ac228090d17fd18c5baca3d

9 years agoMerge "Escape extra input messages on Special:UserLogin/signup"
jenkins-bot [Thu, 26 Feb 2015 20:07:27 +0000 (20:07 +0000)]
Merge "Escape extra input messages on Special:UserLogin/signup"

9 years agoPostgreSQL: Fix timestamp in Special:ListFiles
Jeff Janes [Mon, 23 Feb 2015 21:25:07 +0000 (13:25 -0800)]
PostgreSQL: Fix timestamp in Special:ListFiles

The database field img_timestamp needs to converted
from database timestamp format to the wf internal format.

Bug: T72931
Change-Id: Ifbac6805a43a809962372016668c3e41fcaeb7c0

9 years agoAdd UserArray::newFromNames()
Kunal Mehta [Tue, 24 Feb 2015 20:46:13 +0000 (12:46 -0800)]
Add UserArray::newFromNames()

Change-Id: I91bb8349dd846e982be9294c7f4f3858995ad2eb

9 years agoMerge "Add srcset for images in <gallery>"
jenkins-bot [Thu, 26 Feb 2015 17:22:30 +0000 (17:22 +0000)]
Merge "Add srcset for images in <gallery>"

9 years agoAdd a hook run after EditPage::attemptSave for WikiEditor
Alex Monk [Fri, 6 Feb 2015 19:51:09 +0000 (19:51 +0000)]
Add a hook run after EditPage::attemptSave for WikiEditor

So that we can determine whether a save attempt succeeded or failed,
to log saveSuccess and saveFailure events from the server to Schema:Edit
on meta.

Bug: T88027
Change-Id: Ib861262603872e67600d1aab9bde3b58a8dd1738

9 years agoMerge "Exclude null rows from Special:MediaStatistics"
jenkins-bot [Thu, 26 Feb 2015 16:22:34 +0000 (16:22 +0000)]
Merge "Exclude null rows from Special:MediaStatistics"

9 years agoEscape extra input messages on Special:UserLogin/signup
umherirrender [Thu, 29 Jan 2015 20:45:23 +0000 (21:45 +0100)]
Escape extra input messages on Special:UserLogin/signup

TitleBlacklist and AntiSpoof can register extra input fields with a own
message, this message would now be escaped to avoid use of raw html.
Messages: 'titleblacklist-override' and 'antispoof-ignore'

The messages are now handled similar to checkbox 'createaccountmail'

Bug: T85864
Change-Id: I14326c3844904560b66eb8e8eb7d36706caa47da

9 years agoUpdate OOjs UI to v0.8.1
James D. Forrester [Thu, 26 Feb 2015 02:11:47 +0000 (18:11 -0800)]
Update OOjs UI to v0.8.1

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

Change-Id: I5ad8d6aac0fb4ef146ef4f36459e4b0e398a66e8

9 years agoUpdate OOjs to v1.1.5
James D. Forrester [Thu, 26 Feb 2015 01:59:38 +0000 (17:59 -0800)]
Update OOjs to v1.1.5

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.1.5/History.md

Change-Id: If43d0b4704f95abe4a0438a0d5b0756eb77cc95f

9 years agoMerge "Allow configuring the transaction locking mode for SQLite"
jenkins-bot [Thu, 26 Feb 2015 01:28:00 +0000 (01:28 +0000)]
Merge "Allow configuring the transaction locking mode for SQLite"

9 years agoAllow configuring the transaction locking mode for SQLite
Aaron Schulz [Tue, 24 Feb 2015 00:32:00 +0000 (16:32 -0800)]
Allow configuring the transaction locking mode for SQLite

Bug: T89180
Change-Id: Ib18347299ea78f9b31e56313b2acf749f693cddb

9 years agoAdd srcset for images in <gallery>
Brian Wolff [Wed, 25 Feb 2015 23:18:16 +0000 (19:18 -0400)]
Add srcset for images in <gallery>

Bug: T64709
Change-Id: I476beb6cf072c5a38570143d1f56baa3f49d23d4

9 years agoMade the SQLite installer make a separate objectcache DB
Aaron Schulz [Mon, 23 Feb 2015 23:52:31 +0000 (15:52 -0800)]
Made the SQLite installer make a separate objectcache DB

* This avoids severe lock contention if CACHE_DB is used and also makes
  cache sharing between wikis simple (keys are always prefixed as needed).

Bug: T89180
Change-Id: I864272af099a9ebe2b3648e2714d2ccdee20305d

9 years agoExclude null rows from Special:MediaStatistics
Brian Wolff [Wed, 25 Feb 2015 22:23:46 +0000 (18:23 -0400)]
Exclude null rows from Special:MediaStatistics

The commons db has a random null row in the image table, adding
a non-sensical row to this report.

Bug: T74535
Change-Id: Ie290e588af56aee7d5303954202f7923b64d2272

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

Change-Id: I13f209cdcc50ab68829450d27e64a0f6c6d0f002

9 years agoMerge "Always decode Blob objects from Database::addQuotes"
jenkins-bot [Wed, 25 Feb 2015 21:17:06 +0000 (21:17 +0000)]
Merge "Always decode Blob objects from Database::addQuotes"

9 years agoMerge "PostreSQL: DatabaseBase constructor cleanups"
Aaron Schulz [Wed, 25 Feb 2015 18:36:04 +0000 (18:36 +0000)]
Merge "PostreSQL: DatabaseBase constructor cleanups"

9 years agoPostreSQL: DatabaseBase constructor cleanups
Jeff Janes [Tue, 24 Feb 2015 03:51:29 +0000 (19:51 -0800)]
PostreSQL: DatabaseBase constructor cleanups

Change I29b79a3c1bb2b5e51c1c8f5e04cd08c71e0662a3 rendered
it uninstallable on PostgreSQL.

Make the corresponding API changes to PostgreSQL installer.

Bug: T90288
Change-Id: I2019893ad705d99f3dbbce13690cd808cfb71d4a

9 years agoRun maintenance/generateLocalAutoload.php
Brad Jorsch [Wed, 25 Feb 2015 18:16:13 +0000 (13:16 -0500)]
Run maintenance/generateLocalAutoload.php

I thought a unit test was supposed to fail if this hadn't been run, but
I3936417b and I40fd6aaa recently got merged despite it.

Change-Id: Idb9b4b77a4a1c82ed74ec829fad8c12a9c39af09

9 years agoDon't alias tt special pages to titles with double underscore
Federico Leva [Wed, 25 Feb 2015 16:24:39 +0000 (17:24 +0100)]
Don't alias tt special pages to titles with double underscore

Such titles are invalid, as far as I can see. I get "no such special
page" at https://tt.wikipedia.org/wiki/Special:Unusedimages etc.

Change-Id: Id9869a9af5c67c18af78a925c8c4fdbaef062d32

9 years agoMerge "Start moving objectcache into libs/"
jenkins-bot [Wed, 25 Feb 2015 16:04:49 +0000 (16:04 +0000)]
Merge "Start moving objectcache into libs/"

9 years agoMerge "Avoid calling rollback() in handleWriteError() if there is no trx"
jenkins-bot [Wed, 25 Feb 2015 09:16:04 +0000 (09:16 +0000)]
Merge "Avoid calling rollback() in handleWriteError() if there is no trx"

9 years agoMerge "Fix parameter order for block logs"
jenkins-bot [Wed, 25 Feb 2015 08:34:27 +0000 (08:34 +0000)]
Merge "Fix parameter order for block logs"

9 years agoStart moving objectcache into libs/
Kunal Mehta [Wed, 25 Feb 2015 08:22:50 +0000 (00:22 -0800)]
Start moving objectcache into libs/

The base BagOStuff class and some of the implementations are
not dependent on MediaWiki and can be in the libs folder.

Change-Id: I299f9abb778abc65a70461a2aff3015c02a1f04d

9 years agoAllow subscribing to module loading exceptions
Gergő Tisza [Wed, 14 Jan 2015 07:09:41 +0000 (07:09 +0000)]
Allow subscribing to module loading exceptions

Provide access via mw.track to module loading errors which are
otherwise swallowed by mw.loader.

Bug: T513
Bug: T85263
Change-Id: Ifc13c207af36dc56be931a3b140063354513a4ec

9 years agomediawiki.sectionAnchor: Indent with tabs
Bartosz Dziewoński [Wed, 25 Feb 2015 00:10:32 +0000 (01:10 +0100)]
mediawiki.sectionAnchor: Indent with tabs

Change-Id: I3105e96c7ef95ddaf457e40c120f489427db7b86

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

Change-Id: I88964ba360569a63d7d3d0d7e78e70001bad5806

9 years agoAvoid calling rollback() in handleWriteError() if there is no trx
Aaron Schulz [Tue, 24 Feb 2015 19:34:23 +0000 (11:34 -0800)]
Avoid calling rollback() in handleWriteError() if there is no trx

Change-Id: Ic3be89151160ad57acda5d95e3995a77f3835717

9 years agoFix parameter order for block logs
umherirrender [Sun, 22 Feb 2015 20:41:37 +0000 (21:41 +0100)]
Fix parameter order for block logs

The new block log params does not known the message number 4 (which is
index 3), therefore LogFormatter::getMessageParameters adds empty index
to keep the sequence in strong order.
But the loop was starting at index 4, not 3, which skips the needed
empty index 3 for the order.

Due to the missing $4 the legacy log params returning index 3 and 4,
therefore move them one up to match the new numbers.

Also fixed undefined index warnings for api's list=logevents

Follow-Up: Ibc7fcaa5a952ff90d42a6477da4baa429f3de64b
Change-Id: Ie23be129ee2bd1d2bf753c3b5cba293d64b8e0e8

9 years agoRemove getSecondaryDataUpdates and friends from ParserOutput.
daniel [Sun, 15 Feb 2015 19:34:43 +0000 (20:34 +0100)]
Remove getSecondaryDataUpdates and friends from ParserOutput.

This is a hard deprecation, with getSecondaryDataUpdates returning an
empty array and addSecondaryDataUpdate throwing an exception. This seems
prudent since there are no known users of these methods, and they
interfere with the parser cache:

DataUpdates are basically jobs, they need access to services to
function. That makes them inherently non-serializable. This interferes
with the function of the parser cache, which serializes ParserOutput
objects in order to persist them.

This could be solved by splitting DataUpdates into DataUpdateDefinitions
and DataUpdateHandlers, similar to how JobSpecification works with
wgJobClasses. That however seems pointless and overkill, since
ParserOutput already has a mechanism for storing arbitrary data,
including any info needed by an UpdateJob: the setExtensionData method.

After this change, the preferred method to introduce custom data updates
is to store any relevant data using setExtensionData and
implement Content::getSecondaryDataUpdates() if possible. If not,
use the 'SecondaryDataUpdates' hook to construct the necessary update
objects from the info stored using setExtensionData.

Change-Id: I0f6f49e61fa3d8904e55f42c99f342a3dc357495

9 years agoMerge "Require ext-iconv and suggest ext-intl in composer.json"
jenkins-bot [Mon, 23 Feb 2015 22:20:15 +0000 (22:20 +0000)]
Merge "Require ext-iconv and suggest ext-intl in composer.json"

9 years agoMerge "Add i18n for the infamous "Fatal exception of type MWException" errorbox"
jenkins-bot [Mon, 23 Feb 2015 21:40:14 +0000 (21:40 +0000)]
Merge "Add i18n for the infamous "Fatal exception of type MWException" errorbox"

9 years agoMerge "More debug diagnostics for upload by URL"
jenkins-bot [Mon, 23 Feb 2015 21:39:41 +0000 (21:39 +0000)]
Merge "More debug diagnostics for upload by URL"

9 years agoAdd i18n for the infamous "Fatal exception of type MWException" errorbox
Federico Leva [Thu, 12 Feb 2015 23:01:54 +0000 (00:01 +0100)]
Add i18n for the infamous "Fatal exception of type MWException" errorbox

These errors usually need to be reported, so it's better for the user
to understand them as much as possible.

Bug: T40095
Change-Id: Ibd2f984b66acb9150400126f21acf7cc5fc85acd

9 years agoMerge "DatabaseBase constructor cleanups"
jenkins-bot [Mon, 23 Feb 2015 21:18:23 +0000 (21:18 +0000)]
Merge "DatabaseBase constructor cleanups"

9 years agoMore debug diagnostics for upload by URL
saper [Mon, 10 Nov 2014 23:25:54 +0000 (00:25 +0100)]
More debug diagnostics for upload by URL

Increase debug log verbosity to
troubleshoot file upload by URL issues.

Bug: 73200
Change-Id: I530bd38b85911e0c153280b7d9a9da023f799b02

9 years agoDatabaseBase constructor cleanups
Aaron Schulz [Fri, 20 Feb 2015 22:10:26 +0000 (14:10 -0800)]
DatabaseBase constructor cleanups

* The array based format is now required
* Pass any additional parameters through factory() to __construct() even
  if the base clase does not recognize them. This makes DB specific
  options simpler.
* Also added missing bits to Sqlite constructors

Bug: T90288
Change-Id: I29b79a3c1bb2b5e51c1c8f5e04cd08c71e0662a3

9 years agoMove API release notes to correct places
Brad Jorsch [Mon, 23 Feb 2015 20:31:02 +0000 (15:31 -0500)]
Move API release notes to correct places

Change-Id: I301088e4ce4287bd8c9252704ebb190bfcb4aea8

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

Change-Id: I2d870140da7fd8f4a2c68562ab1d2cb112ce47d4

9 years agoMerge "Warn when user trying to block nonexistent user"
jenkins-bot [Mon, 23 Feb 2015 19:23:40 +0000 (19:23 +0000)]
Merge "Warn when user trying to block nonexistent user"

9 years agoMerge "Removed cas() from ReplicatedBagOStuff as it is unused"
jenkins-bot [Mon, 23 Feb 2015 19:21:39 +0000 (19:21 +0000)]
Merge "Removed cas() from ReplicatedBagOStuff as it is unused"

9 years agoMerge "Remove "transwiki import" jargon term"
jenkins-bot [Mon, 23 Feb 2015 19:18:35 +0000 (19:18 +0000)]
Merge "Remove "transwiki import" jargon term"

9 years agoWarn when user trying to block nonexistent user
JuneHyeon Bae [Fri, 30 May 2014 09:14:54 +0000 (18:14 +0900)]
Warn when user trying to block nonexistent user

Now, Special:Block/Some_User and Special:Block/No_Such_User act the
same. So show warning when user opened 'Special:Block/No_such_user'
page.

Bug: T37687
Change-Id: I60292e1016b64224a6146add58106c9028e7914c

9 years agoMerge "New hooks ApiMain::moduleManager and ApiQuery::moduleManager"
jenkins-bot [Mon, 23 Feb 2015 18:59:59 +0000 (18:59 +0000)]
Merge "New hooks ApiMain::moduleManager and ApiQuery::moduleManager"

9 years agoMerge "Adding sample code to TemplateParser::processTemplate() docs"
jenkins-bot [Mon, 23 Feb 2015 18:56:56 +0000 (18:56 +0000)]
Merge "Adding sample code to TemplateParser::processTemplate() docs"

9 years agoRequire ext-iconv and suggest ext-intl in composer.json
aude [Mon, 23 Feb 2015 15:03:24 +0000 (16:03 +0100)]
Require ext-iconv and suggest ext-intl in composer.json

Since iconv is required, per running install.php, and
intl is recommended.

Bug: T90439
Change-Id: I70f6ce9d8d71f8abd3800bbe00aa0f754ce297a2

9 years agoNew hooks ApiMain::moduleManager and ApiQuery::moduleManager
Max Semenik [Thu, 12 Feb 2015 01:38:18 +0000 (17:38 -0800)]
New hooks ApiMain::moduleManager and ApiQuery::moduleManager

Needed to conditionally register API modules. The previous way, messing with globals
from extension functions, is getting problematic because Config class will make this
impossible.

Change-Id: I86b40aeec555dd6b3cd82cab31d96e85fdf0a665

9 years agoComposerJson: Ignore dependencies that start with "ext-"
Kunal Mehta [Mon, 23 Feb 2015 18:34:53 +0000 (10:34 -0800)]
ComposerJson: Ignore dependencies that start with "ext-"

Any requirements of MediaWiki core to depend upon PHP extensions should
be handled in the installer rather than checkComposerLockUpToDate.php, which
doesn't work anyways since PHP extensions are not included in the lock file.

Change-Id: Ib7af7ccf2f10bc941222d1ce534c7c20690b4c6f

9 years agoMerge "CategoryView modified to use css columns"
jenkins-bot [Mon, 23 Feb 2015 17:17:21 +0000 (17:17 +0000)]
Merge "CategoryView modified to use css columns"

9 years agoCategoryView modified to use css columns
Sumit Asthana [Sun, 1 Feb 2015 08:51:39 +0000 (14:21 +0530)]
CategoryView modified to use css columns

The categories on Category page were listed using table layout. This layout has
been changed to the responsive css column structure, which is 3 column wide
beyond 768px, otherwise shrinks to a single column.

break-inside is used which needs some consideration, see here:
http://css-tricks.com/almanac/properties/b/break-inside/

Bug: T55130
Change-Id: I437e6079b20e110047f93fb5c09aae40189f1ec0

9 years agoSpecial:WantedPages only lists page which having at least one red link pointing to it.
JuneHyeon Bae [Sat, 16 Mar 2013 09:44:52 +0000 (18:44 +0900)]
Special:WantedPages only lists page which having at least one red link pointing to it.

Bug: T19665
Change-Id: If2f0f09ad20ded630ad497a9c84a921c8233cfb1

9 years agoRemove "transwiki import" jargon term
Nemo bis [Sun, 15 Feb 2015 17:07:34 +0000 (18:07 +0100)]
Remove "transwiki import" jargon term

import-logentry-interwiki will be dealt with in a followup patch,
to avoid breaking changes before the new logging system is adopted.

https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Import-logentry-interwiki/pt

Change-Id: I3ca8b21bce49b41cac7109efb8056ca4469b88d7

9 years agoMerge "Make HashBagOStuff::lock() compatible with BagOStuff::lock"
jenkins-bot [Mon, 23 Feb 2015 15:01:52 +0000 (15:01 +0000)]
Merge "Make HashBagOStuff::lock() compatible with BagOStuff::lock"

9 years agoMerge "Add default type param for recentchanges and watchlist query api modules"
jenkins-bot [Mon, 23 Feb 2015 13:32:12 +0000 (13:32 +0000)]
Merge "Add default type param for recentchanges and watchlist query api modules"

9 years agoMerge "Add hook for custom difference engine (WikEdDiff)"
jenkins-bot [Mon, 23 Feb 2015 12:32:10 +0000 (12:32 +0000)]
Merge "Add hook for custom difference engine (WikEdDiff)"

9 years agoMake HashBagOStuff::lock() compatible with BagOStuff::lock
aude [Mon, 23 Feb 2015 11:35:55 +0000 (12:35 +0100)]
Make HashBagOStuff::lock() compatible with BagOStuff::lock

Fixes php strict standard error.

Bug: T90427
Change-Id: Ica2bddead9b5ad367510e898eeea1257a53b5b19

9 years agoMerge "Small optimization to ResourceLoader's canExpandStylesheetWith()"
jenkins-bot [Mon, 23 Feb 2015 09:07:29 +0000 (09:07 +0000)]
Merge "Small optimization to ResourceLoader's canExpandStylesheetWith()"

9 years agoRemoved cas() from ReplicatedBagOStuff as it is unused
Aaron Schulz [Mon, 23 Feb 2015 05:38:30 +0000 (21:38 -0800)]
Removed cas() from ReplicatedBagOStuff as it is unused

Change-Id: I2ff33ba806856ec4cc140a52590a922e13191bf2

9 years agoMerge "Made BagOStuff::cas properly optional"
jenkins-bot [Mon, 23 Feb 2015 05:32:38 +0000 (05:32 +0000)]
Merge "Made BagOStuff::cas properly optional"

9 years agoMerge "Removed FORCE INDEX from API category queries"
jenkins-bot [Mon, 23 Feb 2015 05:32:35 +0000 (05:32 +0000)]
Merge "Removed FORCE INDEX from API category queries"

9 years agoMade BagOStuff::cas properly optional
Aaron Schulz [Wed, 18 Feb 2015 23:47:06 +0000 (15:47 -0800)]
Made BagOStuff::cas properly optional

* merge() using the locking version by default. The callers that implement cas()
  override merge() to use the cas-based version. Those that do not no longer
  need to define the unused dummy method.
* Removed some redundant doc blocks.

Change-Id: I49f7dd5432efa8d76f4758c273f0859376ddafb7

9 years agoRemoved FORCE INDEX from API category queries
Aaron Schulz [Sun, 22 Feb 2015 20:49:37 +0000 (12:49 -0800)]
Removed FORCE INDEX from API category queries

Change-Id: I7333256b90e18b9ccb6cc0852d021a5fad2c7b45

9 years agoAdd a ReplicatedBagOStuff class
Aaron Schulz [Thu, 5 Feb 2015 02:22:08 +0000 (18:22 -0800)]
Add a ReplicatedBagOStuff class

Bug: T88634
Change-Id: I1f7cccd6ac376055ff2b84641ff38a85571c65b0

9 years agoMerge "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"
jenkins-bot [Mon, 23 Feb 2015 01:18:05 +0000 (01:18 +0000)]
Merge "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"

9 years agoSmall optimization to ResourceLoader's canExpandStylesheetWith()
Ori Livneh [Mon, 23 Feb 2015 01:07:36 +0000 (17:07 -0800)]
Small optimization to ResourceLoader's canExpandStylesheetWith()

The import CSS at-rule can only go in the very top of a style sheet.
(Technically, the charset at-rule may precede it, but that rule is not valid
for style sheets that are embedded in <style> tags.) So we don't need to scan
the entire CSS text for '@import' -- we just have to make sure that the CSS
text doesn't start with it.

Change-Id: I56c2ebd55d4a7e90dde8e89e76b6d1b52ed004f8

9 years agoRevert "Make eval.php try to handle newlines in code"
MaxSem [Wed, 18 Feb 2015 22:21:56 +0000 (22:21 +0000)]
Revert "Make eval.php try to handle newlines in code"

Completely broke the script for me.

<TimStarling> MaxSem: that was a pretty crazy change
<TimStarling> fancy trying to detect the end of a statement by shelling out to detect parse errors
<TimStarling> maybe just revert that?
<TimStarling> we can probably do a better job with a few regexes
<TimStarling> I wonder how php -a does it

This reverts commit f0ae292da7ef0673b30c68b4a6f3789b2eea8464.

Change-Id: I16c9c200dc3f4db55cecc23aaa0d9ff55504c19d