lhc/web/wiklou.git
9 years agoNo such method Exception::getText()
Erik Bernhardson [Tue, 3 Feb 2015 18:18:56 +0000 (10:18 -0800)]
No such method Exception::getText()

It looks like a recent change converted this try/catch
statement from MWException to Exception, unfortunatly it
is still calling a method that only exists on MWException.

We arn't doing anything with the exception but exiting.  Lets
just allow the exception to be uncaught and fail naturally. The
uncaught exception will still output an error and return
a non-0 exit code.

Change-Id: I3e0e9d283c255d2aba8139d675943e93d7cb021a

9 years agoAPI: Don't dump Title object into API result
Brad Jorsch [Tue, 3 Feb 2015 15:01:08 +0000 (10:01 -0500)]
API: Don't dump Title object into API result

The intention here is to return the title as a text string, not to dump
all the internal fields of Title.

Bug: T88397
Change-Id: I43ad3c98bc1fc056a13f57e2e95a122108049334

9 years agoMerge "registration: Fix handling of MessagesDirs array and add tests"
jenkins-bot [Tue, 3 Feb 2015 00:26:33 +0000 (00:26 +0000)]
Merge "registration: Fix handling of MessagesDirs array and add tests"

9 years agoMerge "Update OOjs UI to v0.6.5"
jenkins-bot [Tue, 3 Feb 2015 00:26:27 +0000 (00:26 +0000)]
Merge "Update OOjs UI to v0.6.5"

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

Change-Id: I03277966c3b2a86316dbdae595370b9540f982bb

9 years agoMerge "Gruntfile: Clean up Karma config"
jenkins-bot [Mon, 2 Feb 2015 19:04:24 +0000 (19:04 +0000)]
Merge "Gruntfile: Clean up Karma config"

9 years agoMerge "Output wikiid/api in meta=siteinfo only when non-empty"
jenkins-bot [Mon, 2 Feb 2015 17:23:18 +0000 (17:23 +0000)]
Merge "Output wikiid/api in meta=siteinfo only when non-empty"

9 years agoUpdate OOjs UI to v0.6.5
James D. Forrester [Mon, 2 Feb 2015 03:30:18 +0000 (19:30 -0800)]
Update OOjs UI to v0.6.5

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

Change-Id: I1278a9d0f3b63977f293a79c73283593c65bf910

9 years agoMerge "Remove dir=auto from firstHeading"
jenkins-bot [Sun, 1 Feb 2015 18:08:58 +0000 (18:08 +0000)]
Merge "Remove dir=auto from firstHeading"

9 years agocomposer.json: Correct license identifier
Kevin Israel [Sat, 31 Jan 2015 23:49:49 +0000 (18:49 -0500)]
composer.json: Correct license identifier

According to <https://spdx.org/licenses/>, "GPL-2.0" means "GNU General
Public License v2.0 only", not "GNU General Public License v2.0 or later",
which has the identifier "GPL-2.0+".

Also made the same change in the documentation for $wgExtensionCredits.

Change-Id: If25c15d03a71d7c50c9c85a04c2a589a3d978ad0

9 years agoMerge "codepointToUtf8(): Throw exception rather than calling die()"
jenkins-bot [Sat, 31 Jan 2015 22:33:44 +0000 (22:33 +0000)]
Merge "codepointToUtf8(): Throw exception rather than calling die()"

9 years agoMerge "Pass user to FileRepo::getUploadStash"
jenkins-bot [Sat, 31 Jan 2015 21:01:24 +0000 (21:01 +0000)]
Merge "Pass user to FileRepo::getUploadStash"

9 years agoPass user to FileRepo::getUploadStash
umherirrender [Fri, 30 Jan 2015 20:06:07 +0000 (21:06 +0100)]
Pass user to FileRepo::getUploadStash

This avoids use of $wgUser in UploadStash

Change-Id: I82ca69818317508109b4d5f4823a20de47f29b01

9 years agoMerge "Revert "CategoryView modified to use css columns""
jenkins-bot [Sat, 31 Jan 2015 13:11:12 +0000 (13:11 +0000)]
Merge "Revert "CategoryView modified to use css columns""

9 years agoRevert "CategoryView modified to use css columns"
Bartosz Dziewoński [Sat, 31 Jan 2015 13:04:56 +0000 (13:04 +0000)]
Revert "CategoryView modified to use css columns"

The new feature does not work very well, and the commit
breaks several unrelated things. Sorry, let's try again.

This reverts commit cb5a0f20a436b90a5cfabfba84554e712b32794a.

Bug: T85496
Change-Id: I018050ec0bf773e6e22e99819fe3cad91171bbd2

9 years agocodepointToUtf8(): Throw exception rather than calling die()
Kevin Israel [Sat, 31 Jan 2015 08:15:36 +0000 (03:15 -0500)]
codepointToUtf8(): Throw exception rather than calling die()

Change-Id: I0f2c05be95d34e069a3e9965f581d2adfc0a1b9d

9 years agoGruntfile: Clean up Karma config
Timo Tijhof [Fri, 30 Jan 2015 05:29:15 +0000 (21:29 -0800)]
Gruntfile: Clean up Karma config

Change-Id: I8197c2b0169983c32a44397faec95ad7eb47ab86

9 years agoUpdate OOjs UI to v0.6.4
James D. Forrester [Sat, 31 Jan 2015 01:18:26 +0000 (17:18 -0800)]
Update OOjs UI to v0.6.4

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

Change-Id: I75746e6f702e2108e5282f9a37827a1a533ab57a

9 years agoMerge "StringUtils: throw InvalidArgumentException and move into libs/"
jenkins-bot [Sat, 31 Jan 2015 00:43:58 +0000 (00:43 +0000)]
Merge "StringUtils: throw InvalidArgumentException and move into libs/"

9 years agoMerge "Kill hitcounter remains"
jenkins-bot [Fri, 30 Jan 2015 23:53:26 +0000 (23:53 +0000)]
Merge "Kill hitcounter remains"

9 years agoobjectcache: Use Psr\Log\LoggerInterface instead of wfDebug
Kunal Mehta [Wed, 19 Nov 2014 06:42:33 +0000 (22:42 -0800)]
objectcache: Use Psr\Log\LoggerInterface instead of wfDebug

ObjectCache::newFromParams() will handle a 'loggroup' parameter
specially, getting an instance of \Psr\Log\LoggerInterface to
pass to the BagsOStuff.

BagOStuff implementations can use $this->logger which will be
an implementation of \Psr\Log\LoggerInterface. As this is set in
BagOStuff::__construct(), all subclasses must now call the
parent constructor.

The goal of this is to make the logging in BagOStuff non-MediaWiki
specific, in the hopes of separating it out into a separate library
in the future.

Change-Id: I8a8e278e6f028814499d8457d6d5341d03eabc7a

9 years agoUpdate karma to latest version
Alex Monk [Fri, 30 Jan 2015 21:44:09 +0000 (13:44 -0800)]
Update karma to latest version

Per Timo, hopefully this should fix our issues with Chromium timing out
after 10 seconds?

Related patch: https://github.com/karma-runner/karma/commit/840ee5f7

Change-Id: Idbac350e2c612290f860ae740ef6ba242c9e0896

9 years agoMerge "PostgreSQL: Drop unneeded foreign key constraint"
jenkins-bot [Fri, 30 Jan 2015 21:33:18 +0000 (21:33 +0000)]
Merge "PostgreSQL: Drop unneeded foreign key constraint"

9 years agoPostgreSQL: Drop unneeded foreign key constraint
Jeff Janes [Mon, 8 Dec 2014 20:27:11 +0000 (12:27 -0800)]
PostgreSQL: Drop unneeded foreign key constraint

Change I1c7f3a84f10df05d6b37dccbad4c8232edf51580 causes
an existing foreign key assumption (under PostgreSQL) to be
violated upon deleting a page.  This foreign key assumption does not
explicitly exist in MySQL, and is not implied via documentation.  So
it was probably never needed in the first place.

Don't create the foreign key constraint in PostgreSQL, and drop it
if it already exists when running update.php.

The constraint was previously created with an implicit name, so
drop the constraint involving the specified column name (rc_cur_id),
rather than hard-coding the name of the constraint itself.

This bug probably exists under Oracle and MSSQL as well, but no attempt
was made to address it there.

Bug: T76254
Change-Id: I2abd650c8ce83c5b725aec0545fff14a927a305a

9 years agoMerge "Tweaked BagOStuff::lock() retry times slightly to be faster"
jenkins-bot [Fri, 30 Jan 2015 21:02:14 +0000 (21:02 +0000)]
Merge "Tweaked BagOStuff::lock() retry times slightly to be faster"

9 years agoregistration: Fix handling of MessagesDirs array and add tests
Kunal Mehta [Fri, 30 Jan 2015 20:56:02 +0000 (12:56 -0800)]
registration: Fix handling of MessagesDirs array and add tests

Previously the code was designed to handle:
  "MessagesDirs": {
    "FooBar": "i18n"
  }

However, it can also be an array, and some extensions (VisualEditor)
use it like:

  "MessagesDirs": {
    "FooBar": [
      "i18n",
      "also-i18n"
    ]
  }

This properly handles both strings and arrays and adds tests to verify
the behavior.

Change-Id: Iff1523b86f754cac1f5b8d822d4324c5fbfc1a50

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

Change-Id: I88b24823903debcef363e6c0f79bbf86e0b7a978

9 years agoMerge "break up long line that phpcs whinges about in DefaultSettings"
jenkins-bot [Fri, 30 Jan 2015 19:57:50 +0000 (19:57 +0000)]
Merge "break up long line that phpcs whinges about in DefaultSettings"

9 years agoMerge "Fix typo in Release note"
jenkins-bot [Fri, 30 Jan 2015 19:56:01 +0000 (19:56 +0000)]
Merge "Fix typo in Release note"

9 years agobreak up long line that phpcs whinges about in DefaultSettings
Brion Vibber [Fri, 30 Jan 2015 19:49:19 +0000 (11:49 -0800)]
break up long line that phpcs whinges about in DefaultSettings

Change-Id: Ic2cc583c112e8235725dffa78e98f18ba6998b72

9 years agoOutput wikiid/api in meta=siteinfo only when non-empty
umherirrender [Fri, 30 Jan 2015 19:12:33 +0000 (20:12 +0100)]
Output wikiid/api in meta=siteinfo only when non-empty

When using interwiki data from the database the value for iw_wikiid and
iw_api maybe empty strings, because the database does not allow NULL
here.
Suppress the output of the attribute in that case, because there are not
useful.
This should not break clients, because using .cdb (like WMF wikis)
already missing these attributes in the result.

Change-Id: I60b97b4b58fdeaf699951544d418e5dc06e3830a

9 years agoFill the iw_api column of the interwiki table when installing
Alex Monk [Wed, 17 Sep 2014 19:42:35 +0000 (20:42 +0100)]
Fill the iw_api column of the interwiki table when installing

Was added in r69542 for interwiki-transclusion, but not populated.

Also make link for 'mw' consistent with 'mediawikiwiki' by using HTTPS.

Bug: 46992
Change-Id: Ieb6c4121ae4cd4e1aefbc372bbe82bdb0ce53b5d

9 years agoMerge "CategoryView modified to use css columns"
jenkins-bot [Fri, 30 Jan 2015 18:09:51 +0000 (18:09 +0000)]
Merge "CategoryView modified to use css columns"

9 years agoEscape unescaped messages shown in action=info
Niklas Laxström [Sat, 6 Dec 2014 10:31:32 +0000 (11:31 +0100)]
Escape unescaped messages shown in action=info

Change-Id: Id16d8c8dff73fdacad6c9a4ff7f2919945b7e893

9 years agoAdd missing </ul> in Article::getRedirectHeaderHtml
Fomafix [Fri, 30 Jan 2015 14:59:56 +0000 (14:59 +0000)]
Add missing </ul> in Article::getRedirectHeaderHtml

Change-Id: I673213fc424c859ce81b1cf1a85e6ed9e508d0b6

9 years agoFix typo in Release note
umherirrender [Fri, 30 Jan 2015 14:12:49 +0000 (15:12 +0100)]
Fix typo in Release note

Follow-Up: I433e29866fe184ba80c5dda35722e228e79f9307
Change-Id: Ic35ee4a3acefd23ee006a50210a4cb2eedbdacba

9 years agoCategoryView modified to use css columns
Sumit Asthana [Wed, 28 Jan 2015 19:35:20 +0000 (01:05 +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.

Bug: T85496
Change-Id: I2d3583efd470500c374965a433538845fcfade26

9 years agoMerge "Escape message 'version-poweredby-others' on Special:Version"
jenkins-bot [Fri, 30 Jan 2015 03:20:23 +0000 (03:20 +0000)]
Merge "Escape message 'version-poweredby-others' on Special:Version"

9 years agoMerge "convertExtensionToRegistration: Add --skin option"
jenkins-bot [Thu, 29 Jan 2015 22:07:47 +0000 (22:07 +0000)]
Merge "convertExtensionToRegistration: Add --skin option"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 29 Jan 2015 21:35:41 +0000 (22:35 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4af632da08565b289d5fca22efd6bb6df0d115b8

9 years agoMerge "normal: Add @covers tag to UtfNormal test"
jenkins-bot [Thu, 29 Jan 2015 20:55:13 +0000 (20:55 +0000)]
Merge "normal: Add @covers tag to UtfNormal test"

9 years agoMerge "DeferredStringifier: Clean up comments and indentation in tests"
jenkins-bot [Thu, 29 Jan 2015 20:54:53 +0000 (20:54 +0000)]
Merge "DeferredStringifier: Clean up comments and indentation in tests"

9 years agoMerge "ProcessCacheLRU: Clean up doc comments and add @covers tags to tests"
jenkins-bot [Thu, 29 Jan 2015 20:54:06 +0000 (20:54 +0000)]
Merge "ProcessCacheLRU: Clean up doc comments and add @covers tags to tests"

9 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Thu, 29 Jan 2015 20:47:31 +0000 (20:47 +0000)]
Merge "Sync up with Parsoid parserTests."

9 years agoEscape message 'version-poweredby-others' on Special:Version
umherirrender [Thu, 29 Jan 2015 20:32:58 +0000 (21:32 +0100)]
Escape message 'version-poweredby-others' on Special:Version

Bug: T85864
Change-Id: I1e90962c3c94c8b72aadfc4c0d041d52e2cde3f1

9 years agonormal: Add @covers tag to UtfNormal test
Timo Tijhof [Thu, 29 Jan 2015 20:38:34 +0000 (12:38 -0800)]
normal: Add @covers tag to UtfNormal test

Change-Id: Ib0d64bda44cbb1f72ea69025785442967bb26d74

9 years agoconvertExtensionToRegistration: Add --skin option
Kunal Mehta [Thu, 29 Jan 2015 20:24:49 +0000 (12:24 -0800)]
convertExtensionToRegistration: Add --skin option

To write to skin.json instead of extension.json

Change-Id: I0e7dfbd871b7f80958fe7033d4595a205bb34293

9 years agoMerge "Avoid double escaped expiry time on action=protect"
jenkins-bot [Thu, 29 Jan 2015 20:14:37 +0000 (20:14 +0000)]
Merge "Avoid double escaped expiry time on action=protect"

9 years agoDeferredStringifier: Clean up comments and indentation in tests
Timo Tijhof [Thu, 29 Jan 2015 20:10:08 +0000 (12:10 -0800)]
DeferredStringifier: Clean up comments and indentation in tests

Change-Id: Ifdf2fe711a0be495465255c6fabb55fe34b79b27

9 years agoProcessCacheLRU: Clean up doc comments and add @covers tags to tests
Timo Tijhof [Thu, 29 Jan 2015 20:06:25 +0000 (12:06 -0800)]
ProcessCacheLRU: Clean up doc comments and add @covers tags to tests

Change-Id: Ie7e8f4b31d89fc0bee748c03d94cb54b23ab4f83

9 years agoMerge "Escape all return values from ProtectedPagesPager::formatValue"
Nikerabbit [Thu, 29 Jan 2015 20:05:56 +0000 (20:05 +0000)]
Merge "Escape all return values from ProtectedPagesPager::formatValue"

9 years agoCSSMin: Optimise isLocalUrl by moving fast comparison forward
Timo Tijhof [Mon, 26 Jan 2015 23:07:49 +0000 (15:07 -0800)]
CSSMin: Optimise isLocalUrl by moving fast comparison forward

Change-Id: I668e248bd51fb75dfeeef3b74973f517a188c7ba

9 years agoCSSMin: Add tests for isRemoteUrl and isLocalUrl
Timo Tijhof [Mon, 26 Jan 2015 23:07:15 +0000 (15:07 -0800)]
CSSMin: Add tests for isRemoteUrl and isLocalUrl

Change-Id: I5a84eb62eaac96d0dd7f7e27bf76f64e7d7657cf

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Thu, 29 Jan 2015 19:46:27 +0000 (19:46 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Thu, 29 Jan 2015 19:39:32 +0000 (20:39 +0100)]
Localisation updates from https://translatewiki.net.

Updates for magic words.

Change-Id: Ic564d36de395c9a30be5f1390591da723f47edce

9 years agoMerge "Fully escape return value from FileDuplicateSearchPage::formatResult"
jenkins-bot [Thu, 29 Jan 2015 19:34:55 +0000 (19:34 +0000)]
Merge "Fully escape return value from FileDuplicateSearchPage::formatResult"

9 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Thu, 29 Jan 2015 19:11:58 +0000 (20:11 +0100)]
Localisation updates from https://translatewiki.net.

Updates for special page aliases.

Change-Id: Ic2b34a948d527cee6b76abd7e24a6d8a33b65bd2

9 years agoStringUtils: throw InvalidArgumentException and move into libs/
Kunal Mehta [Thu, 29 Jan 2015 18:30:57 +0000 (10:30 -0800)]
StringUtils: throw InvalidArgumentException and move into libs/

Bug: T87863
Change-Id: Iac5bd958c27cad834e35930d0b99adb75c60411b

9 years agoMerge "Use context when parsing messages in Article::setOldSubtitle"
jenkins-bot [Thu, 29 Jan 2015 17:59:25 +0000 (17:59 +0000)]
Merge "Use context when parsing messages in Article::setOldSubtitle"

9 years agoMerge "Set context when parsing message 'redirectpagesub' in Article"
jenkins-bot [Thu, 29 Jan 2015 17:59:08 +0000 (17:59 +0000)]
Merge "Set context when parsing message 'redirectpagesub' in Article"

9 years agoMerge "Set context when parsing message in SpecialLog::addHeader"
jenkins-bot [Thu, 29 Jan 2015 17:54:45 +0000 (17:54 +0000)]
Merge "Set context when parsing message in SpecialLog::addHeader"

9 years agoMerge "Pass user to Title::quickUserCan in DifferenceEngine"
jenkins-bot [Thu, 29 Jan 2015 17:53:19 +0000 (17:53 +0000)]
Merge "Pass user to Title::quickUserCan in DifferenceEngine"

9 years agoSet context when parsing message 'redirectpagesub' in Article
umherirrender [Thu, 29 Jan 2015 16:45:22 +0000 (17:45 +0100)]
Set context when parsing message 'redirectpagesub' in Article

Change-Id: I53fc0855fc8dd57cdfcae68751c9800969208310

9 years agoUse context when parsing messages in Article::setOldSubtitle
umherirrender [Thu, 29 Jan 2015 16:01:58 +0000 (17:01 +0100)]
Use context when parsing messages in Article::setOldSubtitle

Change-Id: Iec4985021b862d6e99f5531545b7db287325263b

9 years agoSet context when parsing message in SpecialLog::addHeader
umherirrender [Thu, 29 Jan 2015 15:51:49 +0000 (16:51 +0100)]
Set context when parsing message in SpecialLog::addHeader

Also direct passing a message object to OutputPage::setPageTitle

Change-Id: If88ca673bffa033f9cd9cc7a680b73aa701578f3

9 years agoPass user to Title::quickUserCan in DifferenceEngine
umherirrender [Thu, 29 Jan 2015 15:46:28 +0000 (16:46 +0100)]
Pass user to Title::quickUserCan in DifferenceEngine

Change-Id: I2e984a51b7ad357a08ed1827b76f7f9803785cfc

9 years agoReplacementArray: Set explicit visiblity on functions
Kunal Mehta [Thu, 29 Jan 2015 05:28:56 +0000 (21:28 -0800)]
ReplacementArray: Set explicit visiblity on functions

Also add a type-hint

Change-Id: I78a322dfa11a71e22a3d0b7064b808aec6bfbf83

9 years agoMove ReplacementArray into includes/libs/
Kunal Mehta [Thu, 29 Jan 2015 05:21:46 +0000 (21:21 -0800)]
Move ReplacementArray into includes/libs/

Change-Id: I95b748c77522027753fb5bd0237f25e254938c16

9 years agoExplodeIterator: Set explicit visiblity on functions
Kunal Mehta [Thu, 29 Jan 2015 05:05:04 +0000 (21:05 -0800)]
ExplodeIterator: Set explicit visiblity on functions

Change-Id: I407280a432098d13ad75ff2d3468aa6a7d653da7

9 years agoMove ExplodeIterator into includes/libs/
Kunal Mehta [Thu, 29 Jan 2015 04:59:50 +0000 (20:59 -0800)]
Move ExplodeIterator into includes/libs/

Change-Id: Ibb3b36dbce223454b9cd485743d7e7845f729bfb

9 years agoreplacers: Make Replacer abstract, and add abstract Replacer::replace()
Kunal Mehta [Thu, 29 Jan 2015 04:49:57 +0000 (20:49 -0800)]
replacers: Make Replacer abstract, and add abstract Replacer::replace()

Change-Id: Ib00dc8585e8ba599491e51e0b99a8667c3b4cd63

9 years agoreplacers: Set explicit visiblity on functions
Kunal Mehta [Thu, 29 Jan 2015 04:46:13 +0000 (20:46 -0800)]
replacers: Set explicit visiblity on functions

Change-Id: I4f35ea9b4bd2503bc612dc25dc8d34fc5ca040a0

9 years agoMove "Replacers" into includes/libs/replacers/
Kunal Mehta [Thu, 29 Jan 2015 04:42:25 +0000 (20:42 -0800)]
Move "Replacers" into includes/libs/replacers/

Split into separate files while we're at it

Change-Id: I0bba4dcea686de088bd96964833fe6fb649a41e9

9 years agoTurn Utf8Test into a PHPUnit test case
Kunal Mehta [Wed, 7 Jan 2015 19:12:09 +0000 (11:12 -0800)]
Turn Utf8Test into a PHPUnit test case

Change-Id: I7e709f475a37a592fb3052f367894ebce32310f3

9 years agoMove includes/normal to includes/libs/normal
Kunal Mehta [Wed, 7 Jan 2015 18:41:51 +0000 (10:41 -0800)]
Move includes/normal to includes/libs/normal

Change-Id: Ib530ad9dbe1d3a33dc53ef8b9620f61d4e1a2d62

9 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Wed, 28 Jan 2015 23:49:10 +0000 (15:49 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 88605a4a7a37a61da76238db6d3fff756e8514f1

Change-Id: Ia6d103bec95019eaece64166172a166f8eabdd09

9 years agoMerge "Output COPYING files as plain text in Special:Version/License/*"
jenkins-bot [Wed, 28 Jan 2015 23:37:59 +0000 (23:37 +0000)]
Merge "Output COPYING files as plain text in Special:Version/License/*"

9 years agoMerge "Add OutputPage::enableOOUI() to set up OOUI stuff when needed"
jenkins-bot [Wed, 28 Jan 2015 23:33:50 +0000 (23:33 +0000)]
Merge "Add OutputPage::enableOOUI() to set up OOUI stuff when needed"

9 years agoMerge "Update and enrich API documentation"
jenkins-bot [Wed, 28 Jan 2015 23:31:37 +0000 (23:31 +0000)]
Merge "Update and enrich API documentation"

9 years agoEscape all return values from ProtectedPagesPager::formatValue
umherirrender [Tue, 27 Jan 2015 20:25:53 +0000 (21:25 +0100)]
Escape all return values from ProtectedPagesPager::formatValue

Bug: T85864
Change-Id: Ifb58bd3823aa633135a701ae3e2ae9c955b422c0

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 28 Jan 2015 21:17:46 +0000 (21:17 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 28 Jan 2015 21:12:34 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I421056addc820a66a5912b9d4c23255302768cba

9 years agoOutput COPYING files as plain text in Special:Version/License/*
Ricordisamoa [Wed, 28 Jan 2015 21:04:31 +0000 (22:04 +0100)]
Output COPYING files as plain text in Special:Version/License/*

The vast majority of them consist of the GNU GPL, which is in
plain text format and not supposed to be converted into wikitext.

Change-Id: Iaa30b8994b8e4034ace61df8202a8b5002093ff2

9 years agoEscape return value from Skin::getUndeleteLink
umherirrender [Tue, 27 Jan 2015 20:35:42 +0000 (21:35 +0100)]
Escape return value from Skin::getUndeleteLink

Bug: T85864
Change-Id: I7a5dfc8ecd2f84da0dce3e1357af462a3c0da23f

9 years agoMerge "Special:AllMessages: Ignore case of first letter when sorting"
jenkins-bot [Wed, 28 Jan 2015 20:52:05 +0000 (20:52 +0000)]
Merge "Special:AllMessages: Ignore case of first letter when sorting"

9 years agoMerge "Only try to load UtfNormalDefines.php once"
jenkins-bot [Wed, 28 Jan 2015 20:45:22 +0000 (20:45 +0000)]
Merge "Only try to load UtfNormalDefines.php once"

9 years agoMerge "Fix doc for ManualLogEntry::setParameters()"
jenkins-bot [Wed, 28 Jan 2015 20:43:32 +0000 (20:43 +0000)]
Merge "Fix doc for ManualLogEntry::setParameters()"

9 years agoOnly try to load UtfNormalDefines.php once
Kunal Mehta [Wed, 7 Jan 2015 18:27:01 +0000 (10:27 -0800)]
Only try to load UtfNormalDefines.php once

It's already loaded in Defines.php, so no need to do it again

Change-Id: Ie6f3bf3fbbcbaadd85cfc8e54527b93e98f7b898

9 years agoUpdate and enrich API documentation
Siebrand Mazeland [Tue, 28 Oct 2014 17:37:47 +0000 (18:37 +0100)]
Update and enrich API documentation

As discussed previously with Brad. I've done the first 10% or so of the
documentation. Once this has been merged, I'll continue with the rest.

Change-Id: Iaef77a14b2bc184ca28bac02087e67744d4573d4

9 years agoFix doc for ManualLogEntry::setParameters()
Brad Jorsch [Wed, 28 Jan 2015 19:15:13 +0000 (11:15 -0800)]
Fix doc for ManualLogEntry::setParameters()

Numbered-and-named parameters are "number:type:name" (where "type" is
often empty), not "number:name".

Change-Id: I417a3d6caf929a94ffed5e315692950295b3be0d

9 years agoKill hitcounter remains
raymond [Wed, 28 Jan 2015 16:26:44 +0000 (17:26 +0100)]
Kill hitcounter remains

Followup to Ieeb558f9523c11965cbc1941cad4f316c00c85c5
No need to create the table and drop it then

Change-Id: I11409c6e5a76d65365c5652039c584e249dbf556

9 years agoPass user to Title::userCan in InfoAction
umherirrender [Wed, 28 Jan 2015 18:16:44 +0000 (19:16 +0100)]
Pass user to Title::userCan in InfoAction

Change-Id: Id4dac8ca3b36839abdb184d0ad538b2400aa80ff

9 years agoDon't split regex string unnecessarily
Sam Reed [Tue, 27 Jan 2015 06:02:56 +0000 (06:02 +0000)]
Don't split regex string unnecessarily

Change-Id: Id5912e64916ce5c7be2991478c32531596917540

9 years agoAdd plainlinks class to <h2> in Special:Version
JuneHyeon Bae [Wed, 28 Jan 2015 11:18:08 +0000 (20:18 +0900)]
Add plainlinks class to <h2> in Special:Version

Make "Parser extension tags" and "Parser function hooks" <h2> external
links to plainlink by adding plainlinks class to <h2>.

Bug: T70426
Change-Id: Ibbef62ff5bb0457eb25b9964c190c3e8283b2610

9 years agoFully escape return value from FileDuplicateSearchPage::formatResult
umherirrender [Tue, 27 Jan 2015 20:47:55 +0000 (21:47 +0100)]
Fully escape return value from FileDuplicateSearchPage::formatResult

Also avoids unneeded recreation of a title object

Bug: T85864
Change-Id: I0298887e2ee5da9c1694393fb06cfa5eed0e46d3

9 years agoMake Sanitizer::removeHTMLtags() and ::removeHTMLComments public
Siebrand Mazeland [Wed, 14 Jan 2015 18:25:21 +0000 (19:25 +0100)]
Make Sanitizer::removeHTMLtags() and ::removeHTMLComments public

The functions are used in at least 5 extensions in Gerrit, so not private
at all.

Change-Id: Id6d7b82d7333184ff2b1dcd592a80af30a50a889

9 years agoMerge "SpecialMovepage: Correctly apply target namespace to subpages"
jenkins-bot [Wed, 28 Jan 2015 13:42:26 +0000 (13:42 +0000)]
Merge "SpecialMovepage: Correctly apply target namespace to subpages"

9 years agoMerge "Import: Fix error reporting"
jenkins-bot [Wed, 28 Jan 2015 13:37:59 +0000 (13:37 +0000)]
Merge "Import: Fix error reporting"

9 years agoSpecialMovepage: Correctly apply target namespace to subpages
Rohan [Fri, 1 Aug 2014 14:21:12 +0000 (19:51 +0530)]
SpecialMovepage: Correctly apply target namespace to subpages

Previously, moving a page from a subject namespace to a talk namespace
(or vice-versa), resulted in the subpages being moved to the new page
name, but still in the old namespace.

Bug: T44024
Change-Id: Iefc5b495e777840dc6a2fe1226b8869d807f2d94

9 years agoMerge "Run clearSearchIndex when mysql in rebuildTextIndex"
jenkins-bot [Tue, 27 Jan 2015 21:48:39 +0000 (21:48 +0000)]
Merge "Run clearSearchIndex when mysql in rebuildTextIndex"