lhc/web/wiklou.git
10 years agoMerge "Replace deprecated File::sha1Base36 call"
jenkins-bot [Mon, 23 Jun 2014 23:47:47 +0000 (23:47 +0000)]
Merge "Replace deprecated File::sha1Base36 call"

10 years agoMerge "Use quickUserCan instead of userCan for searches"
jenkins-bot [Mon, 23 Jun 2014 23:18:45 +0000 (23:18 +0000)]
Merge "Use quickUserCan instead of userCan for searches"

10 years agoMerge "Add support for testing transparent tags"
jenkins-bot [Mon, 23 Jun 2014 22:53:15 +0000 (22:53 +0000)]
Merge "Add support for testing transparent tags"

10 years agoMerge "Rename Parser_DiffTest class to ParserDiffTest"
jenkins-bot [Mon, 23 Jun 2014 22:51:38 +0000 (22:51 +0000)]
Merge "Rename Parser_DiffTest class to ParserDiffTest"

10 years agoMerge "Do not mention deprecated RawPage in hooks.txt"
jenkins-bot [Mon, 23 Jun 2014 22:11:25 +0000 (22:11 +0000)]
Merge "Do not mention deprecated RawPage in hooks.txt"

10 years agoMerge "Don't allow some E_NOTICE messages to end up in the LocalSettings.php"
jenkins-bot [Mon, 23 Jun 2014 20:53:28 +0000 (20:53 +0000)]
Merge "Don't allow some E_NOTICE messages to end up in the LocalSettings.php"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 23 Jun 2014 19:45:05 +0000 (19:45 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I7936dc2fe8dffaa2cd2143e5fa0844de9d1061e4

10 years agoMerge "Fix rendering of centered caption-less images"
jenkins-bot [Mon, 23 Jun 2014 19:32:27 +0000 (19:32 +0000)]
Merge "Fix rendering of centered caption-less images"

10 years agoMerge "Fix typo in Special:MIMESearch causing minor part to be ignored."
jenkins-bot [Mon, 23 Jun 2014 19:25:36 +0000 (19:25 +0000)]
Merge "Fix typo in Special:MIMESearch causing minor part to be ignored."

10 years agoMerge "Hide the caption of frameless or inline images in Parsoid HTML"
jenkins-bot [Mon, 23 Jun 2014 19:18:48 +0000 (19:18 +0000)]
Merge "Hide the caption of frameless or inline images in Parsoid HTML"

10 years agoMerge "Remove SpecialPage::getFile"
jenkins-bot [Mon, 23 Jun 2014 19:08:49 +0000 (19:08 +0000)]
Merge "Remove SpecialPage::getFile"

10 years agoMerge "GlobalVarConfig shouldn't throw exceptions for null-valued config settings"
jenkins-bot [Mon, 23 Jun 2014 19:08:21 +0000 (19:08 +0000)]
Merge "GlobalVarConfig shouldn't throw exceptions for null-valued config settings"

10 years agoReplace deprecated File::sha1Base36 call
umherirrender [Mon, 23 Jun 2014 19:02:09 +0000 (21:02 +0200)]
Replace deprecated File::sha1Base36 call

Change-Id: I0a2485f1a9426183e1b1c5a5b6e95966f23da237

10 years agoCorrect comment about getPropsFromPath/sha1Base36 in sql files
umherirrender [Mon, 23 Jun 2014 18:58:37 +0000 (20:58 +0200)]
Correct comment about getPropsFromPath/sha1Base36 in sql files

The function of class File are deprecated, so change comment to FSFile.

Change-Id: I2350b2d6d6b09d4d2f6d64ab04891e0911595cb0

10 years agoRemove SpecialPage::getFile
umherirrender [Mon, 23 Jun 2014 18:37:36 +0000 (20:37 +0200)]
Remove SpecialPage::getFile

Left over from I0e78453544abb5de7935b046c838ae5b3c4da802, where the
private property was removed.

Change-Id: Id75661aa0b16bc99ae8618b6698015d052adb91d

10 years agoDo not mention deprecated RawPage in hooks.txt
umherirrender [Mon, 23 Jun 2014 18:28:47 +0000 (20:28 +0200)]
Do not mention deprecated RawPage in hooks.txt

Replaced by RawAction

Change-Id: Ic7d24ccf41c2571c76da486c6513b2dd325b8fd0

10 years agoFix rendering of centered caption-less images
Gabriel Wicke [Mon, 23 Jun 2014 17:18:58 +0000 (10:18 -0700)]
Fix rendering of centered caption-less images

These were not actually centered before. Setting the display mode to table as
for captioned thumbs fixes this issue.

Bug: 51245

Change-Id: I18e0c173109a2184f9785f7f2a390a4582c7a881

10 years agoMerge "Removed setLang() too from IContextSource subclasses"
jenkins-bot [Mon, 23 Jun 2014 17:48:38 +0000 (17:48 +0000)]
Merge "Removed setLang() too from IContextSource subclasses"

10 years agoMerge "Database search fixes:"
jenkins-bot [Mon, 23 Jun 2014 17:37:05 +0000 (17:37 +0000)]
Merge "Database search fixes:"

10 years agoHide the caption of frameless or inline images in Parsoid HTML
Gabriel Wicke [Fri, 13 Jun 2014 20:10:03 +0000 (13:10 -0700)]
Hide the caption of frameless or inline images in Parsoid HTML

Bug: 51245
Change-Id: Ia88bf58e647e2e53b83e86c841d45001f9fb0333

10 years agoGlobalVarConfig shouldn't throw exceptions for null-valued config settings
Brad Jorsch [Mon, 23 Jun 2014 17:03:53 +0000 (13:03 -0400)]
GlobalVarConfig shouldn't throw exceptions for null-valued config settings

Use array_key_exists rather than isset to test $GLOBALS.

Bug: 66986
Change-Id: I9beabd79e1d52966b9184c9647af5a2a31c19276

10 years agoMerge "ApiParse: Add disableeditsection parameter"
jenkins-bot [Mon, 23 Jun 2014 13:57:23 +0000 (13:57 +0000)]
Merge "ApiParse: Add disableeditsection parameter"

10 years agoMerge "Expose $wgLocalInterwikis via the API"
jenkins-bot [Mon, 23 Jun 2014 13:55:00 +0000 (13:55 +0000)]
Merge "Expose $wgLocalInterwikis via the API"

10 years agoMerge "Typo in documentation: wgMaxShell not wgShellMax"
jenkins-bot [Mon, 23 Jun 2014 13:18:12 +0000 (13:18 +0000)]
Merge "Typo in documentation: wgMaxShell not wgShellMax"

10 years agoMerge "Make the deprecation notice actually useful by listing the class"
jenkins-bot [Mon, 23 Jun 2014 13:15:00 +0000 (13:15 +0000)]
Merge "Make the deprecation notice actually useful by listing the class"

10 years agoTypo in documentation: wgMaxShell not wgShellMax
rillke [Mon, 23 Jun 2014 13:02:37 +0000 (15:02 +0200)]
Typo in documentation: wgMaxShell not wgShellMax

Change-Id: I02f2437c33e87ea389e4bbb753af0c6cc18b4410

10 years agoMerge "Use user name for $6 of message 'revision-info'"
jenkins-bot [Mon, 23 Jun 2014 12:14:10 +0000 (12:14 +0000)]
Merge "Use user name for $6 of message 'revision-info'"

10 years agoMerge "Add authorship info and tweaks to $wgExtensionCredits for core skins"
jenkins-bot [Mon, 23 Jun 2014 00:56:05 +0000 (00:56 +0000)]
Merge "Add authorship info and tweaks to $wgExtensionCredits for core skins"

10 years agoRename Parser_DiffTest class to ParserDiffTest
withoutaname [Sun, 22 Jun 2014 20:13:46 +0000 (13:13 -0700)]
Rename Parser_DiffTest class to ParserDiffTest

Change-Id: I5fca44a3fffbc60a66be32fad9ed6d1713056d81

10 years agoRemoved setLang() too from IContextSource subclasses
withoutaname [Fri, 20 Jun 2014 23:09:15 +0000 (16:09 -0700)]
Removed setLang() too from IContextSource subclasses

getLang() has been removed by e45e0b1a6.

Change-Id: I813f96b78211fbbe5b2e93488fcf1c28878b8d5a

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 22 Jun 2014 19:26:46 +0000 (19:26 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I9778079ddb92602259510e91574e63911bd17dac

10 years agoUse user name for $6 of message 'revision-info'
umherirrender [Fri, 13 Jun 2014 14:59:09 +0000 (16:59 +0200)]
Use user name for $6 of message 'revision-info'

Giving the user id is not useful for GENDER, it needs a user name.
Was added in r53505.

Change-Id: I3420561b1198c8c90b5411dd619205af38291b69

10 years agoMerge "mediawiki.searchSuggest: Enable result caching"
jenkins-bot [Sun, 22 Jun 2014 16:21:26 +0000 (16:21 +0000)]
Merge "mediawiki.searchSuggest: Enable result caching"

10 years agoMerge "jquery.suggestions: Support caching results to save http requests"
jenkins-bot [Sun, 22 Jun 2014 16:21:13 +0000 (16:21 +0000)]
Merge "jquery.suggestions: Support caching results to save http requests"

10 years agoMerge "Only list Create account when permissions allow it"
jenkins-bot [Sun, 22 Jun 2014 16:09:16 +0000 (16:09 +0000)]
Merge "Only list Create account when permissions allow it"

10 years agoMerge "Special:ExpandTemplates: Load RL modules"
jenkins-bot [Sun, 22 Jun 2014 15:25:26 +0000 (15:25 +0000)]
Merge "Special:ExpandTemplates: Load RL modules"

10 years agoSpecial:ExpandTemplates: Load RL modules
Derk-Jan Hartman [Mon, 5 May 2014 00:08:10 +0000 (02:08 +0200)]
Special:ExpandTemplates: Load RL modules

Bug: 39049
Change-Id: I85d0c820d7fb5e3faa0081bf2e8e4672f2887b38

10 years agoMove implementations of Page to separate file
withoutaname [Sun, 22 Jun 2014 01:29:03 +0000 (18:29 -0700)]
Move implementations of Page to separate file

Moved implementations of the Page interface, including subclasses
of WikiPage and Article, to a separate /includes/page file.
Separated PoolWorkArticleView to the includes/poolcounter file.

Change-Id: I4557eab76e0cb12d9d7f93644c5831bdd5b472b0

10 years agoExpose $wgLocalInterwikis via the API
This, that and the other [Sun, 22 Jun 2014 05:26:28 +0000 (15:26 +1000)]
Expose $wgLocalInterwikis via the API

This will hopefully be useful to Parsoid.

Bug: 66709
Change-Id: I67d789172d4c6b786ed781f80e513692b3ae4119

10 years agoRemove info(), purge(), revert() and rollback() from Article.php
withoutaname [Sun, 22 Jun 2014 00:57:41 +0000 (17:57 -0700)]
Remove info(), purge(), revert() and rollback() from Article.php

Deprecated since 1.19 and transferred to Action subclasses

Change-Id: I92c441132946eb5be26c729f70bc32bace4937fb

10 years agoMerge "SpecialVersion: Localize '[no name]'"
jenkins-bot [Sat, 21 Jun 2014 20:14:59 +0000 (20:14 +0000)]
Merge "SpecialVersion: Localize '[no name]'"

10 years agoMerge "Add a 'namemsg' parameter to $wgExtensionCredits for localizable names"
jenkins-bot [Sat, 21 Jun 2014 20:09:32 +0000 (20:09 +0000)]
Merge "Add a 'namemsg' parameter to $wgExtensionCredits for localizable names"

10 years agoDon't allow some E_NOTICE messages to end up in the LocalSettings.php
Mark A. Hershberger [Sat, 21 Jun 2014 18:37:42 +0000 (14:37 -0400)]
Don't allow some E_NOTICE messages to end up in the LocalSettings.php

There is probably a better, more comprehensive way to produce a
LocalSettings.php file so that E_STRICT and E_NOTICE errors don't end
up in the file, or to notify users that there is a problem with the
generated file, at least.   This only attempts to address those issues
reported as a result of c978cee8562f018dab158b41e15266fcf873bf1b.

Bug: 66922
Change-Id: I0fe70446d9fe23aed2a147e20e5ff3851371726d

10 years agoFix typo in Special:MIMESearch causing minor part to be ignored.
Brian Wolff [Sat, 21 Jun 2014 17:19:42 +0000 (14:19 -0300)]
Fix typo in Special:MIMESearch causing minor part to be ignored.

img_minor_mime was being added to wrong part of query info
array, and thus was being ignored.

Whoops.

Change-Id: I55f45f5ae9621ff1319b34a2aa85cb4bd2c96253
Follow-up: c93baa941a5a56b7

10 years agoAdd authorship info and tweaks to $wgExtensionCredits for core skins
Bartosz Dziewoński [Sat, 21 Jun 2014 10:46:48 +0000 (12:46 +0200)]
Add authorship info and tweaks to $wgExtensionCredits for core skins

Change-Id: I13ae94385b629fcd504b84470471e0125f39f22d

10 years agoFix comment for @param
Kartik Mistry [Sat, 21 Jun 2014 11:24:42 +0000 (16:54 +0530)]
Fix comment for @param

Change-Id: I3838ba86c3d0d361643cfcef7f6a64950d941427

10 years agoSpecialVersion: Localize '[no name]'
Bartosz Dziewoński [Sat, 21 Jun 2014 10:50:22 +0000 (12:50 +0200)]
SpecialVersion: Localize '[no name]'

No one noticed this isn't localized because it's basically never shown
in practice, but let's do it properly anyway.

Change-Id: I43a03c54e064e62b1d459773f05536d2d2cd9468

10 years agoAdd a 'namemsg' parameter to $wgExtensionCredits for localizable names
Bartosz Dziewoński [Sat, 21 Jun 2014 10:33:54 +0000 (12:33 +0200)]
Add a 'namemsg' parameter to $wgExtensionCredits for localizable names

Works similarly to 'description' and 'descriptionmsg', but 'name'
is still required because of weird shenanigans Special:Version does.
(And would be a good idea anyway for backwards-compatibility with
older MediaWikis.)

The primary use-case is skins (which have already traditionally had
translateable names in MediaWiki, but weren't always shown on
Special:Version), but there's no reason why regular extensions can't
use this too.

Skins which already have a translated name for Special:Preferences
('skinname-<skin>' messages) can reuse the same message here.

Change-Id: Iae6f770a8fe1968670429c22aefc1ae55e8dba6f

10 years agoMake the deprecation notice actually useful by listing the class
Niklas Laxström [Sat, 21 Jun 2014 10:59:05 +0000 (10:59 +0000)]
Make the deprecation notice actually useful by listing the class

Follows-up Id8a559a

Change-Id: I101e5e864d6c14d2a67721514f02c5166137211f

10 years agoMerge "Fix capitalization of "MonoBook" in findHooks.php"
jenkins-bot [Sat, 21 Jun 2014 09:51:29 +0000 (09:51 +0000)]
Merge "Fix capitalization of "MonoBook" in findHooks.php"

10 years agoMerge "Kill $wgEnableNewpagesUserFilter"
jenkins-bot [Sat, 21 Jun 2014 06:11:54 +0000 (06:11 +0000)]
Merge "Kill $wgEnableNewpagesUserFilter"

10 years agoApiParse: Add disableeditsection parameter
Kunal Mehta [Sat, 21 Jun 2014 06:09:18 +0000 (23:09 -0700)]
ApiParse: Add disableeditsection parameter

To disable edit section links in the parser output

Bug: 62723
Change-Id: I499c4bb0cd85964e78db3362e13a8033a2e9aed0

10 years agoFix capitalization of "MonoBook" in findHooks.php
Kevin Israel [Sat, 21 Jun 2014 02:47:27 +0000 (22:47 -0400)]
Fix capitalization of "MonoBook" in findHooks.php

Follows-up ec1ccf436751 and 4bbd1c44d90f.

Change-Id: I08e4ff78b2bb2a5582ef612b0248e0c7338436a2

10 years agoMerge "Separate MonoBook skin from core"
jenkins-bot [Sat, 21 Jun 2014 02:18:37 +0000 (02:18 +0000)]
Merge "Separate MonoBook skin from core"

10 years agoKill $wgEnableNewpagesUserFilter
This, that and the other [Sat, 21 Jun 2014 02:05:08 +0000 (12:05 +1000)]
Kill $wgEnableNewpagesUserFilter

A temporary WMF hack from 2008 (r34065). No longer needed.

Bug: 58932
Change-Id: Ia25ddc32a0f08587301461c669499e4b8bdf3adb

10 years agoFix some findHooks.php errors
Kevin Israel [Sat, 21 Jun 2014 01:21:46 +0000 (21:21 -0400)]
Fix some findHooks.php errors

* Correct typo in docs/hooks.txt.
* Add a few directories.

Left unfixed is "Undocumented: Special{$this->getName()}BeforeFormDisplay",
which will be addressed separately.

Change-Id: I4fda8960642c23500bd20e0b89c1d1327456313b

10 years agoMerge "Removed deprecated WebRequest::escapeAppendQuery()"
jenkins-bot [Fri, 20 Jun 2014 22:21:08 +0000 (22:21 +0000)]
Merge "Removed deprecated WebRequest::escapeAppendQuery()"

10 years agoRemoved deprecated WebRequest::escapeAppendQuery()
withoutaname [Mon, 16 Jun 2014 07:24:52 +0000 (00:24 -0700)]
Removed deprecated WebRequest::escapeAppendQuery()

This function was deprecated in 1.20 and slated for removal in 1.22;
there were supposed to be warnings given in 1.21 but there does
not seem to be any use of this function otherwise in core.

Change-Id: If70a4e2c1509bf3527d5f8960c14115ce4ab713e

10 years agoSeparate MonoBook skin from core
Bartosz Dziewoński [Wed, 11 Jun 2014 10:41:40 +0000 (12:41 +0200)]
Separate MonoBook skin from core

This makes it behave exactly like a custom skin.

* Renamed directory to reflect skin name.
* Split skin classes to separate PHP files.
* Removed core autoloader entries for skin classes.
* Changed the hack in Setup.php to require_once the skin PHP file, as
  the skin is now registered there.
* Extracted skin-specific localisation messages.
* Extracted skin-specific resources.

Change-Id: Ife9926d12b6baaa84cd2aa9a415f1183415863c8

10 years agoSeparate Vector skin from core
Bartosz Dziewoński [Tue, 10 Jun 2014 22:25:48 +0000 (00:25 +0200)]
Separate Vector skin from core

This makes it behave exactly like a custom skin, with the caveat that
it is still hardcoded in several places :(, most notably lots of
skinStyles in Resources.php, the installer and some tests.

* Renamed directory to reflect skin name.
* Split skin classes to separate PHP files.
* Removed core autoloader entries for skin classes.
* Changed the hack in Setup.php to require_once the skin PHP file, as
  the skin is now registered there.
* Extracted skin-specific localisation messages.
* Extracted skin-specific resources. Did not touch skinStyles yet.
* Hacked up the installer not to fall over entirely if Vector is
  missing.
* Adjusted hardcoded paths in some more places...

Change-Id: Idfffc1430790b3a104cc9835a6367137bcbf0e4e

10 years agoDatabase search fixes:
Chad Horohoe [Fri, 20 Jun 2014 20:43:36 +0000 (13:43 -0700)]
Database search fixes:

- Move filter() function and make it protected, nothing uses it
  outside database-backed searching
- Use per-backend legal search characters rather than assuming the
  static implementation is right

Change-Id: Ic2b830b56137b2dfe68b9b9c3de012151e716952

10 years agoMerge "PrefixSearch (ApiOpenSearch) now supports searching in multiple namespaces"
Chad [Fri, 20 Jun 2014 20:30:18 +0000 (20:30 +0000)]
Merge "PrefixSearch (ApiOpenSearch) now supports searching in multiple namespaces"

10 years agoPrefixSearch (ApiOpenSearch) now supports searching in multiple namespaces
Niklas Laxström [Mon, 2 Jun 2014 18:34:52 +0000 (18:34 +0000)]
PrefixSearch (ApiOpenSearch) now supports searching in multiple namespaces

I thought there was just an issue with capitalization, but in fact the code
explicitly only searched one namespace anyway. Fixed that while taking
capitalization differences in namespaces into account.

Bug: 65752
Bug: 30323
Change-Id: I3487bb69eae1867832e0ec9ece497538eca32a2a

10 years agoMerge "Removed getLang() from IContextSource and subclasses"
jenkins-bot [Fri, 20 Jun 2014 20:22:52 +0000 (20:22 +0000)]
Merge "Removed getLang() from IContextSource and subclasses"

10 years agoMerge "SearchResultSet: remove hasResults(), unused"
jenkins-bot [Fri, 20 Jun 2014 20:15:02 +0000 (20:15 +0000)]
Merge "SearchResultSet: remove hasResults(), unused"

10 years agoMerge "Article: Add RL modules for the ParserOutput when showing CSS/JS page"
jenkins-bot [Fri, 20 Jun 2014 19:59:17 +0000 (19:59 +0000)]
Merge "Article: Add RL modules for the ParserOutput when showing CSS/JS page"

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 20 Jun 2014 19:58:15 +0000 (19:58 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoArticle: Add RL modules for the ParserOutput when showing CSS/JS page
Bartosz Dziewoński [Mon, 5 May 2014 16:58:34 +0000 (18:58 +0200)]
Article: Add RL modules for the ParserOutput when showing CSS/JS page

It previously added only the page HTML, which meant that ResourceLoader
modules associated with the page and other metadata was lost. This
affected the new way of doing things in SyntaxHighlight (Idf4ad439).

We still do not show categories, language links and other things
on the pages (although internally they behave just like in wikitext)

Also needs a fix in DifferenceEngine because our code sucks so much.

Bug: 64859
Change-Id: I5867985693b27ccc9195fddde8b922e67463e836

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 20 Jun 2014 19:43:12 +0000 (19:43 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie8652e0ef6486e4942929361e105f79554ed49a6

10 years agoOutputPage: Add addParserOutputContent() for more fine-grained control
Bartosz Dziewoński [Thu, 8 May 2014 20:10:13 +0000 (22:10 +0200)]
OutputPage: Add addParserOutputContent() for more fine-grained control

We previously had addParserOutput(), which added everything and did
some other magic, and addParserOutputNoText() which, as the same says,
added everything but the text.

I renamed addParserOutputNoText() to addParserOutputMetadata() and
created two more functions:

* addParserOutputText(): This is almost identical to adding the raw
  HTML, but calls the OutputPageBeforeHTML hook like other
  addParserOutput*() methods.

* addParserOutputContent(): Like addParserOutputText(), but also adds
  the ResourceLoader modules and variables associated with the parser
  output. This is important especially for some extensions like
  TemplateData or SyntaxHighlight which add styles to the page to
  enhance the display.

Change-Id: Iead541886fd1ccdbdf1cb06af71b34cd04644985

10 years agoSkinTemplate: Move $stylename to Skin and soft-deprecate
Bartosz Dziewoński [Sat, 31 May 2014 12:49:24 +0000 (14:49 +0200)]
SkinTemplate: Move $stylename to Skin and soft-deprecate

It is *used* by Skin, so let's define and document it there as well.

Also, it was never necessary to set this to anything, but we were
pretending it was. This only served to increase the amount of magic
skin creators have to accept.

Change-Id: I61c6e952ede72bad37db38fefe1299da798914b8

10 years agoRemoved getLang() from IContextSource and subclasses
withoutaname [Mon, 16 Jun 2014 06:52:12 +0000 (23:52 -0700)]
Removed getLang() from IContextSource and subclasses

Change-Id: I94c3df814c06c54c071f371101882dcc71c99417

10 years agoMerge "Some improvements to Special:MergeHistory"
jenkins-bot [Fri, 20 Jun 2014 18:21:15 +0000 (18:21 +0000)]
Merge "Some improvements to Special:MergeHistory"

10 years agoRemove SearchResultTooMany
Chad Horohoe [Fri, 20 Jun 2014 17:34:26 +0000 (10:34 -0700)]
Remove SearchResultTooMany

Only worked for Postgres, and only worked halfway at that. Result
sets could be false for many reasons. No results, bad query, database
went to Mars. We shouldn't assume they're always "too many results."

Leave it up to the normal query error logging and move on.

Change-Id: Ieddd163e440ae54b152541d727c1afdbc4ab4fbd

10 years agoSet MYSQLI_OPT_CONNECT_TIMEOUT in mysqli
Aaron Schulz [Thu, 19 Jun 2014 20:20:26 +0000 (13:20 -0700)]
Set MYSQLI_OPT_CONNECT_TIMEOUT in mysqli

* There is no php.ini setting for this, and it is unclear how
  high the default is. The retry behavior of MediaWiki also
  makes little sense without knowing this value.
* Also removed the retry loop which will mostly result in
  giving up the position in some FIFO queue only to come
  back at the end of the line.

Change-Id: Id24f6635508ba87288a2e40f71d4e8016a1805b0

10 years agoAdd support for testing transparent tags
Jackmcbarn [Fri, 20 Jun 2014 15:36:08 +0000 (11:36 -0400)]
Add support for testing transparent tags

Allow transparent tag hooks to be loaded during parser tests the way that
regular and function tag hooks can be.

Change-Id: I28ac9cc239628c248f72898d247fa1f6e2c308bd

10 years agoMerge "Allow interlanguage link prefixes that are not language codes"
jenkins-bot [Fri, 20 Jun 2014 15:19:32 +0000 (15:19 +0000)]
Merge "Allow interlanguage link prefixes that are not language codes"

10 years agoMerge "Update documentation of what a "section" is"
jenkins-bot [Fri, 20 Jun 2014 14:41:57 +0000 (14:41 +0000)]
Merge "Update documentation of what a "section" is"

10 years agoSearchResultSet: remove hasResults(), unused
Chad Horohoe [Fri, 20 Jun 2014 14:24:09 +0000 (07:24 -0700)]
SearchResultSet: remove hasResults(), unused

SolrStore, MWSearch and CirrusSearch all implement this and are
now free to drop their implementations.

Change-Id: Ia04bd3fc8526c35c3c9590c7fe4e2db2bc120283

10 years agoMerge "Put wfDeprecated() on obsolete use of $wgSpecialPages"
jenkins-bot [Fri, 20 Jun 2014 06:42:26 +0000 (06:42 +0000)]
Merge "Put wfDeprecated() on obsolete use of $wgSpecialPages"

10 years agoFix copy-paste error in wfIsConfiguredProxy()
Kevin Israel [Fri, 20 Jun 2014 05:25:41 +0000 (01:25 -0400)]
Fix copy-paste error in wfIsConfiguredProxy()

It should call IP::isConfiguredProxy(), not IP::isTrustedProxy().

Follows-up e323bc33934d.

Change-Id: I3caf8261f6058aa1a243c055b746b2fa61b1bf49

10 years agoAllow interlanguage link prefixes that are not language codes
This, that and the other [Fri, 20 Jun 2014 01:29:05 +0000 (11:29 +1000)]
Allow interlanguage link prefixes that are not language codes

$wgExtraInterlanguageLinkPrefixes holds a list of interwiki prefixes to be
treated as language codes if $wgInterwikiMagic is true.

To set the display text for the interlanguage links generated by this
code, you need to create MediaWiki:Interlanguage-link-foo, where "foo" is
the interwiki prefix.  To provide a friendly site name for the link title
text, use MediaWiki:Interlanguage-link-sitename-foo.  On the WMF cluster,
these messages could be set using the WikimediaMessages extension.

Information about extra language links (in the site language only) is
provided via the API in meta=siteinfo&prop=interwikimap.

Bug: 32189
Change-Id: I3d04760e2d9fb3320bb71e3d5ad115eed54a899c

10 years agoMerge "Some doc fixes to MediaHandler. No code changes"
jenkins-bot [Fri, 20 Jun 2014 00:51:35 +0000 (00:51 +0000)]
Merge "Some doc fixes to MediaHandler. No code changes"

10 years agoSome doc fixes to MediaHandler. No code changes
Brian Wolff [Fri, 20 Jun 2014 00:16:28 +0000 (21:16 -0300)]
Some doc fixes to MediaHandler. No code changes

Change-Id: I2d79fce7aa55b9a0f2988c09a55594db4e8849f1

10 years agoMerge "Travis CI: Drop 5.3 as a build target"
jenkins-bot [Fri, 20 Jun 2014 00:20:10 +0000 (00:20 +0000)]
Merge "Travis CI: Drop 5.3 as a build target"

10 years agoMerge "Remove use of strencode() in buildLike()"
jenkins-bot [Fri, 20 Jun 2014 00:19:52 +0000 (00:19 +0000)]
Merge "Remove use of strencode() in buildLike()"

10 years agoMerge "ApiExpandTemplates: Start parse before creating frame"
jenkins-bot [Fri, 20 Jun 2014 00:02:58 +0000 (00:02 +0000)]
Merge "ApiExpandTemplates: Start parse before creating frame"

10 years agoTravis CI: Drop 5.3 as a build target
Ori Livneh [Thu, 19 Jun 2014 23:29:56 +0000 (16:29 -0700)]
Travis CI: Drop 5.3 as a build target

On second thought, I'd really much rather only target hhvm-nightly for now. On
the one hand, this is monopolizing / hijacking .travis.yml to a specific
Wikimedia project (HHVM deployment), but on the other hand, it's a big enough
project, so I'd like to ask you (dear reviewer) to consider it, as a short-term
arrangement. There are things like IRC notifications, overall build status,
etc. that are scoped to all configured builds and having 5.3 in there adds
noise. It also sows confusion about where we run our tests. People should
really turn to Jenkins for 5.3 testing. I think we're in the final couple of
months of hardcore sprinting on HHVM. I wouldn't mind opening this up after.

Change-Id: I0131667135ef3ca75d01ac5645dbc89bda306d98

10 years agoUpdate Travis CI build configuration
Ori Livneh [Thu, 19 Jun 2014 03:22:26 +0000 (20:22 -0700)]
Update Travis CI build configuration

* Target 'hhvm-nightly', not 'hhvm'.
* Don't target Zend PHP versions other than 5.3.
  There is value in targetting different versions of the PHP interpreter, but
  in the short term there is more benefit to be had from targetting just HHVM
  and PHP 5.3 (results are produced more quickly and are easier to interpret).
* Don't update submodules manually; Travis does that by default if there is a
  .gitmodules file in the repository root.
  <http://docs.travis-ci.com/user/build-configuration/#Git-Submodules>
* Update Composer before installing PHPUnit.
* Make the wiki name and dbname agree.
* Allow Composer to install whatever is specified in composer.json, rather than
  hard-coding an install of PHPUnit 3.7 (3.7 is incompatible with HHVM).
* Ping freenode#mediawiki-core with the test results, but only when the build
  status changes. We can turn it off if it gets annoying.
* Don't hack include_path or date.timezone ini settings; those were kludges
  needed to get HHVM to run at all at, but they're no longer needed.
* Invoke hhvm via 'php'; Travis ensures that it points to the target
  interpreter.

Verified on my personal fork:
 <https://travis-ci.org/atdt/mediawiki-core/builds/27983653>

Change-Id: I442b40e0d3e31d3cbd963e1219578842f4564004

10 years agoMerge "Made pool counter better handled nested calls"
jenkins-bot [Thu, 19 Jun 2014 21:49:28 +0000 (21:49 +0000)]
Merge "Made pool counter better handled nested calls"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 19 Jun 2014 19:17:52 +0000 (19:17 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I3ee8d9c83834b69ff919de0a9fcfc7d96375fc77

10 years agoMake RECOVER_ORIG preserve extension tags
Jackmcbarn [Thu, 3 Apr 2014 03:52:52 +0000 (23:52 -0400)]
Make RECOVER_ORIG preserve extension tags

Add PPFrame::NO_TAGS, set by PPFrame::RECOVER_ORIG, to preserve extension
tags rather than expanding them.

Bug: 22683
Change-Id: I427333a20d32eb711a7b5d5ac8b780ef89c752a1

10 years agoPut wfDeprecated() on obsolete use of $wgSpecialPages
Max Semenik [Thu, 19 Jun 2014 17:59:21 +0000 (10:59 -0700)]
Put wfDeprecated() on obsolete use of $wgSpecialPages

Gotta remove it some day, this is another step in that direction.

Change-Id: Id8a559a671e1b9229b9d2235bf459f31d575c154

10 years agoMerge "filebackend: Avoid using popen() when "parallelize" is disabled"
jenkins-bot [Thu, 19 Jun 2014 17:56:06 +0000 (17:56 +0000)]
Merge "filebackend: Avoid using popen() when "parallelize" is disabled"

10 years agoMerge "mediawiki.page.image.pagination: Clean up, optimise and fix various bugs"
jenkins-bot [Thu, 19 Jun 2014 14:21:51 +0000 (14:21 +0000)]
Merge "mediawiki.page.image.pagination: Clean up, optimise and fix various bugs"

10 years agomediawiki.page.image.pagination: Clean up, optimise and fix various bugs
Timo Tijhof [Tue, 17 Jun 2014 19:16:46 +0000 (21:16 +0200)]
mediawiki.page.image.pagination: Clean up, optimise and fix various bugs

Follows-up 427b0e15e77f39.

* Remove comment stating the obvious (initialize variable).

* Unset 'xhr' variable in the success handler. This allows it to
  be freed from memory, and prevents us from uselessly trying to
  abort an already finished request.

* Rename 'xhr' to 'jqXhr' as it is not an xhr.

* Use the Promise of jQuery.ajax instead of the long-deprecated
  callback option 'success'.

* Rephrase comment stating that jQuery.load is used (which is
  not true).

* Don't re-query 'table.multipageimage' multiple times. Instead
  query it from the document once and cache it.

* Remove useless 'window.history' check. This is not a new global
  in HTML5. The 'history' global, infamous from history.go() and
  history.back(), has been a part of the web for a very long time.
  We can safely depend on them, just as we depend on 'location',
  'navigator' and 'document'.

* Add an identifier to the history pop-state to prevent an
  exception when dealing with the state object of another
  application. Lots of gadgets use the History API these days
  (as well as extensions like VisualEditor and MultimediaViewer).

* Don't store the location.href inside the pop state data. This
  is not needed because it is already stored by the browser
  natively. A history event contains a url, page title and
  custom data stored as JSON. There is no need to store the url
  again in the custom data.

* Despite the width/height transferring from the old content
  to the spinner container, the scroll position still jumped
  because it wasn't accounting for margin, padding and border.
  Use outerHeight() instead of height().

* Avoid using the DOM to store and retrieve information. Use
  application state instead of a DOM query to know whether we
  have a spinner already. This increases performance but also
  avoids false positives where (unlikely) other similar elements
  and/or spinners from a different script are on the page.

* Properly replace the entire table contents() instead of just
  dropping the <tr> straight into the emptied <table>. This way
  the script makes no assumptions about whether there is a
  caption/thead/tbody or multiple rows etc. Plus it saves another
  recursive DOM query (the one for "tr"). And fixes a potential
  bug if there are nested tables (since it was doing a recursive
  query).

Change-Id: I8b64a0860b73a5dcd8051b5e7a1fcb65107228a6

10 years agoMerge "Delete sr.json, it blocks messages from sr-ec"
jenkins-bot [Thu, 19 Jun 2014 13:55:17 +0000 (13:55 +0000)]
Merge "Delete sr.json, it blocks messages from sr-ec"

10 years agoMerge "Clarify fileexists-extension message"
jenkins-bot [Thu, 19 Jun 2014 12:16:26 +0000 (12:16 +0000)]
Merge "Clarify fileexists-extension message"

10 years agoMerge "Add macronless namespace aliases for Old English"
jenkins-bot [Thu, 19 Jun 2014 12:15:07 +0000 (12:15 +0000)]
Merge "Add macronless namespace aliases for Old English"

10 years agoMerge "Actually define jMY date format for Arab"
jenkins-bot [Thu, 19 Jun 2014 10:39:21 +0000 (10:39 +0000)]
Merge "Actually define jMY date format for Arab"