lhc/web/wiklou.git
10 years agoComposer: suggest does not take version, but description
Niklas Laxström [Sun, 5 Jan 2014 12:47:47 +0000 (12:47 +0000)]
Composer: suggest does not take version, but description

Change-Id: I06b4fc1b23ac35dda1ab69769d773c8ab8d9aaf1

10 years agoMerge "Call Language::getLocalisationCache() static"
jenkins-bot [Sun, 5 Jan 2014 11:10:12 +0000 (11:10 +0000)]
Merge "Call Language::getLocalisationCache() static"

10 years agoMerge "Remove methods from SpecialPage deprecated in 1.17 and 1.18"
jenkins-bot [Sun, 5 Jan 2014 04:53:17 +0000 (04:53 +0000)]
Merge "Remove methods from SpecialPage deprecated in 1.17 and 1.18"

10 years agoMerge "Deoptimize SVG versions of enhanced recent changes collapse/show arrows"
jenkins-bot [Sun, 5 Jan 2014 02:13:00 +0000 (02:13 +0000)]
Merge "Deoptimize SVG versions of enhanced recent changes collapse/show arrows"

10 years agoDeoptimize SVG versions of enhanced recent changes collapse/show arrows
Bartosz Dziewoński [Sun, 5 Jan 2014 00:35:24 +0000 (01:35 +0100)]
Deoptimize SVG versions of enhanced recent changes collapse/show arrows

Taken from PS6 of I1fcc2556 (3b304289) which added them.
Apparently we can't even get the MIME type of SVGs right.

Bug: 59234
Change-Id: I6fcc89fddee5f1be5b678304ead303f43d682785

10 years agoProperly peform deletion updates when moving over a redirect
Brad Jorsch [Sat, 4 Jan 2014 23:41:10 +0000 (18:41 -0500)]
Properly peform deletion updates when moving over a redirect

When moving over a redirect, WikiPage::doDeleteUpdates is called to do
things like clean up obsolete entries in `redirect` and other tables.
But it doesn't pass a Content object and the WikiPage doesn't have one
cached, so it winds up not actually doing these updates.

Change-Id: I54c90cebfd6bea07137a77bd70acec02cab51084

10 years agoRemove extra parenthesis on where conditions
umherirrender [Sat, 4 Jan 2014 21:03:02 +0000 (22:03 +0100)]
Remove extra parenthesis on where conditions

No need for parenthesis there, because Database::makeList always add
parenthesis around raw where clauses.

Also replaced hard coded quotes by Database::addQuotes

Change-Id: Idcfea54383ac1ba22daa38fba81b883dc0d883f6

10 years agoCall Language::getLocalisationCache() static
umherirrender [Sat, 4 Jan 2014 20:33:12 +0000 (21:33 +0100)]
Call Language::getLocalisationCache() static

Change-Id: Ibbe03b92f2beebaaf93ba9e3c5bebbf3d7626b7a

10 years agoL10n: gender aliases for user namespaces in French
Dereckson [Sat, 4 Jan 2014 20:12:50 +0000 (21:12 +0100)]
L10n: gender aliases for user namespaces in French

NS_USER:
* M: Utilisateur
* F: Utilisatrice

NS_USER_TALK:
* M: Discussion utilisateur
* F: Discussion utilisatrice

Change-Id: I8fa805473a61677f75b04e2708ad087d99bb3c82

10 years agoImprove TestUser group handling
Brad Jorsch [Thu, 5 Dec 2013 17:41:24 +0000 (12:41 -0500)]
Improve TestUser group handling

There's no need for TestUser to remove all groups only to add some back
on. We should be able to speed things up (see bug 43762) by only
removing the groups that aren't wanted and only adding the ones that
aren't already possessed.

Change-Id: I50dd9b117a8a21c8a6170520b3bbf98e3030ae47

10 years agoMerge "Fix user-friendlyness of block confirmation screen"
jenkins-bot [Sat, 4 Jan 2014 13:27:51 +0000 (13:27 +0000)]
Merge "Fix user-friendlyness of block confirmation screen"

10 years agoFix user-friendlyness of block confirmation screen
m4tx [Mon, 23 Dec 2013 11:37:03 +0000 (12:37 +0100)]
Fix user-friendlyness of block confirmation screen

* "Confirm block" checkbox is now highlighted
* Added "check the box if you're sure" message to the errors at the top

Bug: 58783
Change-Id: I2b496d763a14fe47d7458525cb1e8bb9fa5788f6

10 years agoMerge "Various fixes for EnhancedChangesList"
jenkins-bot [Sat, 4 Jan 2014 11:19:36 +0000 (11:19 +0000)]
Merge "Various fixes for EnhancedChangesList"

10 years agoMerge "Declare visibility for class properties in DatabaseSqlite"
jenkins-bot [Sat, 4 Jan 2014 11:15:05 +0000 (11:15 +0000)]
Merge "Declare visibility for class properties in DatabaseSqlite"

10 years agoRemove methods from SpecialPage deprecated in 1.17 and 1.18
Siebrand Mazeland [Sun, 29 Dec 2013 18:26:50 +0000 (19:26 +0100)]
Remove methods from SpecialPage deprecated in 1.17 and 1.18

No longer used in core or Gerrit extensions. Some patches have been
submitted to remove the last usages. For details see:
* https://gerrit.wikimedia.org/r/#/q/status:open+topic:replace-deprecated,n,z
* https://gerrit.wikimedia.org/r/#/q/status:merged+topic:replace-deprecated,n,z

- SpecialPage::__call() (deprecated in 1.17)
- SpecialPage::executePath() (deprecated in 1.18)
- SpecialPage::exists() (deprecated in 1.18)
- SpecialPage::file() (deprecated in 1.18)
- SpecialPage::func() (deprecated in 1.18)
- SpecialPage::getGroup() (deprecated in 1.18)
- SpecialPage::getPage() (deprecated in 1.18)
- SpecialPage::getPageByAlias() (deprecated in 1.18)
- SpecialPage::getLocalNameFor() (deprecated in 1.18)
- SpecialPage::getRegularPages() (deprecated in 1.18)
- SpecialPage::getRestrictedPages() (deprecated in 1.18)
- SpecialPage::getTitleForAlias() (deprecated in 1.18)
- SpecialPage::getUsablePages() (deprecated in 1.18)
- SpecialPage::includable() (deprecated in 1.18)
- SpecialPage::init()
- SpecialPage::initAliasList() (deprecated in 1.18)
- SpecialPage::initList() (deprecated in 1.18)
- SpecialPage::name() (deprecated in 1.18)
- SpecialPage::removePage() (deprecated in 1.18)
- SpecialPage::resolveAlias() (deprecated in 1.18)
- SpecialPage::resolveAliasWithSubpage() (deprecated in 1.18)
- SpecialPage::restriction() (deprecated in 1.18)
- SpecialPage::setGroup() (deprecated in 1.18)

Change-Id: I5122f0f23255bc1e8b63a7329a6d1653899b7f59

10 years agoMerge "Further cleanup to Special:Version"
jenkins-bot [Sat, 4 Jan 2014 02:08:51 +0000 (02:08 +0000)]
Merge "Further cleanup to Special:Version"

10 years agoFurther cleanup to Special:Version
Matt Walker [Wed, 29 May 2013 02:52:05 +0000 (19:52 -0700)]
Further cleanup to Special:Version

Cleaned up some HTML, added some CSS classes for the version
information, and refactored some of the code.

Also added column headers for the extension descriptions.

Change-Id: I5bbc4d4024620ea57ab1bf778255a487fbc9b378

10 years agoMerge "Add licensing for extensions to Special:Version"
jenkins-bot [Sat, 4 Jan 2014 00:42:28 +0000 (00:42 +0000)]
Merge "Add licensing for extensions to Special:Version"

10 years agoMerge "Don't convert bad curids to the Main Page"
jenkins-bot [Sat, 4 Jan 2014 00:12:12 +0000 (00:12 +0000)]
Merge "Don't convert bad curids to the Main Page"

10 years agoMerge "Do not reveal RevDeled file title"
jenkins-bot [Sat, 4 Jan 2014 00:10:29 +0000 (00:10 +0000)]
Merge "Do not reveal RevDeled file title"

10 years agoMerge "Revert "Optimize all SVGs""
Ori.livneh [Fri, 3 Jan 2014 23:56:23 +0000 (23:56 +0000)]
Merge "Revert "Optimize all SVGs""

10 years agoRevert "Optimize all SVGs"
Ori.livneh [Fri, 3 Jan 2014 23:53:11 +0000 (23:53 +0000)]
Revert "Optimize all SVGs"

On my Mac, calling finfo_file on external-link-ltr-icon.svg gets the correct
MIME-type ("image/svg+xml"), but in production I get  "application/xml".
This is probably due to the version of fileinfo or libmagic that is deployed on
the cluster. Reverting for now.

This reverts commit a9b855eea52ba3b739a9150beb8e69db8afd2143.

Change-Id: Ie4db624ba9f561a467622878d0992847be018b7d

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 3 Jan 2014 20:53:21 +0000 (20:53 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 3 Jan 2014 20:35:25 +0000 (20:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8d9a05eb6ce4136d424c4f2ce7cdc65e8c09b0f6

10 years agoFix doc for Database::upsert
umherirrender [Fri, 3 Jan 2014 20:35:21 +0000 (21:35 +0100)]
Fix doc for Database::upsert

One @params too much

Change-Id: I8cea6228587574ff90060d46b4430b2348a68973

10 years agoAdd licensing for extensions to Special:Version
Matt Walker [Fri, 24 May 2013 11:19:49 +0000 (04:19 -0700)]
Add licensing for extensions to Special:Version

Allow extensions to register a software license and present
this on the Special:Version page. A new $wgExtensionCredits
parameter has been introduced for this purpose: 'license-name'.

This will also automatically pick up the presense of additional
licensing and/or credits files. If ((AUTHORS)|(CREDITS))(\.txt)?
exists in the extension base directory a credits link will be
created. If ((LICENSE)|(COPYING))(\.txt)? exists a license link
will be created.

The API has also been updated to produce VCS information and present
links to the license/credits files.

Bug: 48418
Change-Id: I388f3b630462f1909f30751c987f7af585e98881

10 years agoCall Database::makeInsertOptions from Database::insertSelect
umherirrender [Fri, 3 Jan 2014 15:32:33 +0000 (16:32 +0100)]
Call Database::makeInsertOptions from Database::insertSelect

This allows other database types to modify the options.

Bug: 59233
Change-Id: I45a2c7944057f43453423c8edbe5d173b1fc067d

10 years agoMerge "Revert "Declare visibility for class properties in MySQLMasterPos""
jenkins-bot [Fri, 3 Jan 2014 18:12:02 +0000 (18:12 +0000)]
Merge "Revert "Declare visibility for class properties in MySQLMasterPos""

10 years agoDo not reveal RevDeled file title
Brad Jorsch [Tue, 31 Dec 2013 14:24:13 +0000 (09:24 -0500)]
Do not reveal RevDeled file title

When an file is being uploaded, we tell the user if it has been
uploaded and deleted in the past. But we shouldn't reveal the title
under which that was done if the file was suppressed via RevDel.

Note this introduces a breaking API change: clients may now receive a
"deleted-archive" warning with an empty value if the title was
suppressed.

Bug: 59167
Change-Id: I01a3ac2ba0cbac6b28de26a7f1a1d09b6b02097e

10 years agoMerge "Leading semicolon line-bolding made visible in printable version"
jenkins-bot [Fri, 3 Jan 2014 17:32:10 +0000 (17:32 +0000)]
Merge "Leading semicolon line-bolding made visible in printable version"

10 years agoRevert "Declare visibility for class properties in MySQLMasterPos"
Anomie [Fri, 3 Jan 2014 17:18:20 +0000 (17:18 +0000)]
Revert "Declare visibility for class properties in MySQLMasterPos"

These members are accessed from DatabaseMysqlBase::masterPosWait and
DatabaseBase::masterPosWait, causing errors if the wiki has slave
databases or has fakeSlaveLag set.

This reverts commit d0325927d4a7352590e52690aa30ce63fffb6ab8.

Change-Id: I563bde457274dad2f254145426376b275b597e2a

10 years agoMerge "Declare visibility for class properties of LBFactoryMulti"
jenkins-bot [Fri, 3 Jan 2014 16:42:53 +0000 (16:42 +0000)]
Merge "Declare visibility for class properties of LBFactoryMulti"

10 years agoMerge "Change Title::isExternal to use strict comparsion"
jenkins-bot [Fri, 3 Jan 2014 16:41:12 +0000 (16:41 +0000)]
Merge "Change Title::isExternal to use strict comparsion"

10 years agoMerge "Declare visibility for class properties in DatabasePostgres.php"
jenkins-bot [Fri, 3 Jan 2014 16:31:02 +0000 (16:31 +0000)]
Merge "Declare visibility for class properties in DatabasePostgres.php"

10 years agoMerge "Update documentation for ParserCache::save()"
jenkins-bot [Fri, 3 Jan 2014 16:29:03 +0000 (16:29 +0000)]
Merge "Update documentation for ParserCache::save()"

10 years agoMerge "Fix SearchEngineTest when $wgSearchType is set to non-default"
jenkins-bot [Fri, 3 Jan 2014 16:21:01 +0000 (16:21 +0000)]
Merge "Fix SearchEngineTest when $wgSearchType is set to non-default"

10 years agoMerge "Add fastcgi_finish_request where appropriate"
jenkins-bot [Fri, 3 Jan 2014 16:06:47 +0000 (16:06 +0000)]
Merge "Add fastcgi_finish_request where appropriate"

10 years agoMerge "Typofix: less bunny hoppers"
jenkins-bot [Fri, 3 Jan 2014 13:56:09 +0000 (13:56 +0000)]
Merge "Typofix: less bunny hoppers"

10 years agoTypofix: less bunny hoppers
Niklas Laxström [Fri, 3 Jan 2014 13:45:06 +0000 (13:45 +0000)]
Typofix: less bunny hoppers

Change-Id: Ie3c067b369d794f1be73019b8e4a18f84461a17a

10 years agoMerge "Prevent selection of "Jump to" text"
jenkins-bot [Fri, 3 Jan 2014 13:36:20 +0000 (13:36 +0000)]
Merge "Prevent selection of "Jump to" text"

10 years agoMerge "Remove reference to deleted file"
jenkins-bot [Fri, 3 Jan 2014 12:08:15 +0000 (12:08 +0000)]
Merge "Remove reference to deleted file"

10 years agoRemove reference to deleted file
Bartosz Dziewoński [Fri, 3 Jan 2014 12:01:28 +0000 (13:01 +0100)]
Remove reference to deleted file

It didn't even point to the right location…

Follow-up to I70d20bf2.

Change-Id: I7f909873035b9176ba9b7c2bf41b05d9eede3cc4

10 years agoCLDR 24 update - release notes
Santhosh Thottingal [Fri, 3 Jan 2014 10:55:17 +0000 (16:25 +0530)]
CLDR 24 update - release notes

Follow up: I9930b290d004667a3bb09e5c1663ec2c9c27d8a6

Bug: 56931
Change-Id: Ic37276126dd615c2510c17455a5bbf5d8653045d

10 years agoFix SearchEngineTest when $wgSearchType is set to non-default
aude [Fri, 3 Jan 2014 01:23:16 +0000 (02:23 +0100)]
Fix SearchEngineTest when $wgSearchType is set to non-default

$wgSearchType needs to be controlled for at time the pages get created.
This patch sets the $wgSearchType global.

Also, the 'singleton' is removed from SearchEngine::getSearchTypes, which
appears to provide little or no benefit while binding all tests to the
global variable.

SearchEngine::getSearchTypes() gets called in SearchUpdate which is
run on page edits. This means the first page edit in the entire
test suite causes the global variable to be set and subsequent tests
cannot override it.

These changes allow SearchEngineTest to pass, even if one has CirrusSearch
or other such extensions enabled.

Change-Id: I39050da8659dc69db31125f469f494a5fb4b8fca

10 years agoMerge "MWMessagePack: improvements to test suite, exception handling, array detection"
jenkins-bot [Fri, 3 Jan 2014 09:06:10 +0000 (09:06 +0000)]
Merge "MWMessagePack: improvements to test suite, exception handling, array detection"

10 years agoAdd fastcgi_finish_request where appropriate
Tyler Anthony Romeo [Thu, 21 Nov 2013 23:05:00 +0000 (18:05 -0500)]
Add fastcgi_finish_request where appropriate

When using PHP-FPM to run PHP on a web server, the function
fastcgi_finish_request is provided, which flushes all response
data to the client and closes the connection, allowing PHP
to perform additional work without delaying the client.

This adds fastcgi_finish_request calls in index.php and api.php
where appropriate and if the function exists, so that the connection
is closed once the output is definitely finished.

Change-Id: Ic67a8956545874e94df5198088c0f4aa58ca376e

10 years agoMWMessagePack: improvements to test suite, exception handling, array detection
Ori Livneh [Fri, 3 Jan 2014 05:57:23 +0000 (21:57 -0800)]
MWMessagePack: improvements to test suite, exception handling, array detection

* Throw InvalidArgumentException
* Use data provider in unit tests
* Detect associative arrays without copying

Per Tyler's post-merge review of Id2833c5a9.

Change-Id: Iec6b135238ca5da3002944066843102f0ae8d23d

10 years agoUpdate Russian(ru) plural rules to CLDR 24
Santhosh Thottingal [Fri, 3 Jan 2014 08:16:19 +0000 (13:46 +0530)]
Update Russian(ru) plural rules to CLDR 24

Russian (ru) plural rules have a major change. The 'few' form is
merged with the 'other' form. The current forms are 'one', 'many', 'other'.
In MW ru plural rules were overridden using convertPlural methdod
in LanguagesRu.php with 3 forms.

Effectively forms[1] and forms[2] are swapped.

Followup: I9930b290d004667a3bb09e5c1663ec2c9c27d8a6

Bug: 56931
Change-Id: Ia5779e42315d3f41f52dce2bfffaee0a4297d23b

10 years agoMerge "Move RunningStat from profiler/ to libs/"
jenkins-bot [Fri, 3 Jan 2014 07:19:18 +0000 (07:19 +0000)]
Merge "Move RunningStat from profiler/ to libs/"

10 years agoMerge "Update plural rules to CLDR 24"
jenkins-bot [Fri, 3 Jan 2014 07:17:36 +0000 (07:17 +0000)]
Merge "Update plural rules to CLDR 24"

10 years agoMove RunningStat from profiler/ to libs/
Ori Livneh [Fri, 3 Jan 2014 06:05:07 +0000 (22:05 -0800)]
Move RunningStat from profiler/ to libs/

There is nothing about the class that mandates it be used exclusively for
profiling, or exclusively within the context of MediaWiki. The functionality it
provides is generic. So move it to libs/ to make it easier to discover & reuse.

Change-Id: Iac8f2f8e1c3231ebe76318d72cf6225e25a7b891

10 years agoUpdate plural rules to CLDR 24
Santhosh Thottingal [Wed, 1 Jan 2014 09:05:39 +0000 (14:35 +0530)]
Update plural rules to CLDR 24

Updated plurals.xml with new data from CLDR 24.

This data is according to UTS #35 Rev 33.

Update the CLDRPluralRuleParser.js to version 1.1 from upstream
https://github.com/santhoshtr/CLDRPluralRuleParser

Changes to the plural rules:

* Hebrew override removed since CLDR 24 matches with MW plural rules.

* Updated the syntax of overridden rules to TR35 Rev 33 for
  Lower Sorbian (dsb), Upper Sorbian (hsb), Belarusian in Taraskievica
  orthography (be_tarask), Old Church Slavonic (cu), Bhojpuri (bho),
  Samogitian (sgs).

* Removed Manx (gv) override. See I46ab3dadc7fe08c1e60bbd81a1ee841e166e9608.

* Removed the overriden convertPlural method for Serbian from LanguageSr.php,
  since CLDR 24 matches with MW rules. Updated and added more tests.
  Tests updated for Serbocroatian (sh), too. Old CLDR versions had 4 plural
  rules and MW had only 3. In CLDR 24, the form 'many' was removed and it
  became identical to the MW. Same for Bosnian (bs) and Croatian (hr).
  Also for variants sr-ec and sr-el

* Macedonian (mk) used to count 11 as 'other' form.
  CLDR 24 counts it as 'one'.
  Not overriding, using CLDR 24 here.
  Updated the tests. MW will not override this.

* Armenian (hy) used to count 0 as 'other'.
  Now it is 'one' form.
  Updated the tests. MW will not override this.

* Latvian (lv) used to count only 0 as 'zero' form, but CLDR 24, any number
  satisifying the following formula is counted as zero:
  n % 10 = 0 or n % 100 = 11..19 or v = 2 and f % 100 = 11..19
  Examples: 0, 10~20, 30, 40, 50, 60, 100.
  Updated the tests accordingly. Not overriding it in MW.
  Users will see different plural form for the above numbers.

* Removed Ukranian custom plural rule since it match with MW

* Russian (ru) plural rules have a major change.
  The 'few' form is merged with the 'other' form.
  The current forms are 'one', 'many', 'other'.
  In MW ru plural rules were overridden using convertPlural methdod
  in LanguagesRu.php with 3 forms.
  Effectively forms[1] and forms[2] are swapped.
  This will affect the messages, and such messages
  must be reviewed and updated. This change is not included in this patch and
  wil be done separately.

Russian is the only remaining language class with convertPlural method overridden.

Notable impact on the exising messages:

* For languages ru, uk, be_tarask, sr, For the special case
  of two plural forms and first mapped to 1 and rest to the other form, syntax like
  {{plural:$1|1=one|other}} should be used.

For further information regarding each of the above language changes, see
1. http://unicode.org/cldr/trac/ticket/3727
2. http://goo.gl/H2HEz

CLDR 24 can handle fractions. Ideally it should start working
in MW without any code changes, but MW language test suite
does not have enough tests to confirm.

Followup: e571717e06667228ec8d689be067e00bdd06d34d

Bug: 56931
Change-Id: I9930b290d004667a3bb09e5c1663ec2c9c27d8a6

10 years agoPrevent selection of "Jump to" text
Jackmcbarn [Fri, 3 Jan 2014 02:07:53 +0000 (21:07 -0500)]
Prevent selection of "Jump to" text

When an article's heading and body text are copied together, prevent the
"Jump to" links from being copied.

Bug: 59235
Change-Id: Ibf661e94c748df0c6d65f1dee2815aeb169e7148

10 years agoAdd class implementing MessagePack serialization
Ori Livneh [Fri, 3 Jan 2014 01:07:10 +0000 (17:07 -0800)]
Add class implementing MessagePack serialization

MessagePack is a space-efficient binary data interchange format. I am going to
use it to encode profiling data in ProfilerSimpleUDP. The official PHP
implementation is provided as a C extension, so using it would further
encumber migration to HHVM. This patch adds MWMessagePack, a class implementing
a pack() method for encoding native PHP values as MessagePack byte strings. The
implementation is based on <https://github.com/onlinecity/msgpack-php>, but
revised for clarity and conformity with MediaWiki coding conventions.

Change-Id: Id2833c5a9da659cb13ec1330de9dd57138ada9c8

10 years agoMerge "Added per-node sequential ID method and made SquidUpdate use it"
jenkins-bot [Fri, 3 Jan 2014 00:57:40 +0000 (00:57 +0000)]
Merge "Added per-node sequential ID method and made SquidUpdate use it"

10 years agoDon't convert bad curids to the Main Page
Jackmcbarn [Fri, 3 Jan 2014 00:56:47 +0000 (19:56 -0500)]
Don't convert bad curids to the Main Page

When a curid that doesn't exist is requested, cause the "Bad title" error
to be displayed rather than displaying the Main Page.

Bug: 58885
Change-Id: If54ca35b3799b8cf2f76e7f8a03001caa1fac676

10 years agoMerge "Random documentation tweaks"
jenkins-bot [Fri, 3 Jan 2014 00:50:30 +0000 (00:50 +0000)]
Merge "Random documentation tweaks"

10 years agoAdded per-node sequential ID method and made SquidUpdate use it
Aaron Schulz [Tue, 24 Dec 2013 23:22:58 +0000 (15:22 -0800)]
Added per-node sequential ID method and made SquidUpdate use it

* This replaces a live wmf hack

Change-Id: Ie01fd27386d5d7197968b6a8157b7220ba685f7b

10 years agoMerge "Declare visibility for class properties in MySQLMasterPos"
jenkins-bot [Fri, 3 Jan 2014 00:01:39 +0000 (00:01 +0000)]
Merge "Declare visibility for class properties in MySQLMasterPos"

10 years agoMerge "Change Title::getInterwiki() in conditions to Title::isExternal()"
jenkins-bot [Thu, 2 Jan 2014 23:31:37 +0000 (23:31 +0000)]
Merge "Change Title::getInterwiki() in conditions to Title::isExternal()"

10 years agoRandom documentation tweaks
Siebrand Mazeland [Mon, 30 Dec 2013 17:32:53 +0000 (18:32 +0100)]
Random documentation tweaks

Change-Id: I57c3bde6551c14324cf34e4db003a319d6cebc47

10 years agoMerge "Adding a message for api-error-stasherror"
jenkins-bot [Thu, 2 Jan 2014 22:35:26 +0000 (22:35 +0000)]
Merge "Adding a message for api-error-stasherror"

10 years agoAdding a message for api-error-stasherror
mayankmadan [Thu, 2 Jan 2014 21:31:19 +0000 (03:01 +0530)]
Adding a message for api-error-stasherror

Bug: 54460
Change-Id: I2895fe77d147a9065710912b5c2673ab833dd29f

10 years agoMerge "Stop using the unholy trinity in DatabaseError"
jenkins-bot [Thu, 2 Jan 2014 22:22:36 +0000 (22:22 +0000)]
Merge "Stop using the unholy trinity in DatabaseError"

10 years agoStop using the unholy trinity in DatabaseError
Chad Horohoe [Thu, 2 Jan 2014 18:28:02 +0000 (10:28 -0800)]
Stop using the unholy trinity in DatabaseError

RequestContext::getMain() shifts the blame, but at least
it's one less place in core.

Change-Id: I36ffad0ff2703c3326690eef2c07ef66aa532210

10 years agoUpdate RELEASE-NOTES
Siebrand Mazeland [Tue, 31 Dec 2013 09:51:40 +0000 (10:51 +0100)]
Update RELEASE-NOTES

Follow-up to I02561fb1c1a6. This adds sections for removed classes,
renamed classes, and removed methods.

Change-Id: Ib8358e8bafead9b18588cf8a8b32b230b3f81599

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 2 Jan 2014 20:37:24 +0000 (20:37 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idbf58dc6bad40ceecaea84f944a5558fe62ec775

10 years agoMerge "Remove deprecated convertLinkToAllVariants()"
jenkins-bot [Thu, 2 Jan 2014 20:09:44 +0000 (20:09 +0000)]
Merge "Remove deprecated convertLinkToAllVariants()"

10 years agoRemove deprecated convertLinkToAllVariants()
Chad Horohoe [Thu, 2 Jan 2014 19:35:07 +0000 (11:35 -0800)]
Remove deprecated convertLinkToAllVariants()

Deprecated since 1.17, not used anywhere in core or extensions

Change-Id: Id90ee1765899ea331a65ce372744ed465686c84b

10 years agoMerge "Avoid interacting with LBFactory singleton in tests"
jenkins-bot [Thu, 2 Jan 2014 19:54:34 +0000 (19:54 +0000)]
Merge "Avoid interacting with LBFactory singleton in tests"

10 years agoMerge "Fix bad usage of empty() function"
jenkins-bot [Thu, 2 Jan 2014 19:33:43 +0000 (19:33 +0000)]
Merge "Fix bad usage of empty() function"

10 years agoAllow hiding redirects in Special:ProtectedPages
Jackmcbarn [Thu, 2 Jan 2014 18:45:44 +0000 (13:45 -0500)]
Allow hiding redirects in Special:ProtectedPages

Add a checkbox to hide redirects in Special:ProtectedPages.

Bug: 19233
Change-Id: If1753eddc834f55c301a6e78e0802ee9d94a24b2

10 years agoMerge "Deprecate $wgPasswordSenderName"
jenkins-bot [Thu, 2 Jan 2014 18:14:16 +0000 (18:14 +0000)]
Merge "Deprecate $wgPasswordSenderName"

10 years agoMerge "Return void for LogPager::limitPerformer and limitTitle"
jenkins-bot [Thu, 2 Jan 2014 17:55:23 +0000 (17:55 +0000)]
Merge "Return void for LogPager::limitPerformer and limitTitle"

10 years agoMerge "Update documentation for SpecialPage and SpecialPageFactory"
jenkins-bot [Thu, 2 Jan 2014 17:53:39 +0000 (17:53 +0000)]
Merge "Update documentation for SpecialPage and SpecialPageFactory"

10 years agoMerge "Add JobQueueDB::selectFields and use it"
jenkins-bot [Thu, 2 Jan 2014 17:48:51 +0000 (17:48 +0000)]
Merge "Add JobQueueDB::selectFields and use it"

10 years agoMerge "Declare visibility for class properties of LBFactory and LBFactorySimple"
jenkins-bot [Thu, 2 Jan 2014 17:37:44 +0000 (17:37 +0000)]
Merge "Declare visibility for class properties of LBFactory and LBFactorySimple"

10 years agoMerge "No variable assignment on return statement"
jenkins-bot [Thu, 2 Jan 2014 17:33:42 +0000 (17:33 +0000)]
Merge "No variable assignment on return statement"

10 years agoMerge "jquery.client: Component-wise version comparison in #test with strings"
jenkins-bot [Thu, 2 Jan 2014 16:37:39 +0000 (16:37 +0000)]
Merge "jquery.client: Component-wise version comparison in #test with strings"

10 years agovoid methods don't return anything. Especially when they always throw an exception
Reedy [Thu, 2 Jan 2014 16:21:59 +0000 (16:21 +0000)]
void methods don't return anything. Especially when they always throw an exception

Change-Id: I6c959b44b64fdc38e248e0000a6594c12a10b6b4

10 years agoUpdate documentation for SpecialPage and SpecialPageFactory
Siebrand Mazeland [Sun, 29 Dec 2013 19:20:15 +0000 (20:20 +0100)]
Update documentation for SpecialPage and SpecialPageFactory

Change-Id: Id601b24bb664a5f15951f72cca34182b72b42d87

10 years agoUpdate documentation for ParserCache::save()
Siebrand Mazeland [Mon, 30 Dec 2013 16:11:52 +0000 (17:11 +0100)]
Update documentation for ParserCache::save()

The second parameter is a WikiPage, not an Article. Rename the variable
to $page to avoid confusion.

Change-Id: I4655aa9d8c7469805362c8ec43559bb5f9be4b06

10 years agoAvoid interacting with LBFactory singleton in tests
aude [Sun, 29 Dec 2013 21:00:39 +0000 (22:00 +0100)]
Avoid interacting with LBFactory singleton in tests

Instead test that LBFactory::getLBFactoryClass() does the right thing.

In LBFactory::getLBFactoryClass(), the method now requires a configuration
array as a parameter, and returns the class name as a string.

LBFactory::singleton() now passes in $wgLBFactoryConf into getLBFactoryClass(),
while tests can use test configuration.

Only use of LBFactory::getLBFactoryClass() in core is in LBFactory::singleton().

No extension in gerrit uses getLBFactoryClass() and I can find no use of it
when searching places like Github and Google, so it should be safe to make
such change in LBFactory.

Bug: 59105
Change-Id: I71ae7df16bc5c214b9389125140bca5ce68d274c

10 years agoFix bad usage of empty() function
Alexandre Emsenhuber [Wed, 1 Jan 2014 16:17:50 +0000 (17:17 +0100)]
Fix bad usage of empty() function

Use a strict comparison to null since this member variable is always defined.

Change-Id: Ida7d7ecb2d65458b7f93daa886b3c2b319ffc07e

10 years agoChange Title::isExternal to use strict comparsion
umherirrender [Thu, 2 Jan 2014 11:27:31 +0000 (12:27 +0100)]
Change Title::isExternal to use strict comparsion

Change-Id: Ib4e646f98dc6d17a8cb1ca837dcdc9d48f85e2a7

10 years agoChange Title::getInterwiki() in conditions to Title::isExternal()
umherirrender [Thu, 2 Jan 2014 10:59:10 +0000 (11:59 +0100)]
Change Title::getInterwiki() in conditions to Title::isExternal()

Change-Id: Icce26e6194ae96f262029554e05b49117d5e112e

10 years agoAdd JobQueueDB::selectFields and use it
umherirrender [Thu, 2 Jan 2014 10:44:23 +0000 (11:44 +0100)]
Add JobQueueDB::selectFields and use it

It is good practice to name the selected fields

Change-Id: Ic12fbdbac6e8f48abbd9f5053a69f9553492cead

10 years agoThrow exception for unknown field in SpecialListfiles::formatValue()
Siebrand Mazeland [Fri, 27 Dec 2013 17:02:40 +0000 (18:02 +0100)]
Throw exception for unknown field in SpecialListfiles::formatValue()

Change-Id: I99fedfb28aaf9b09b5d9fee27020601f3c06e8d4

10 years agoNo variable assignment on return statement
umherirrender [Wed, 1 Jan 2014 18:56:08 +0000 (19:56 +0100)]
No variable assignment on return statement

Split the variable assignment and the return statement in two lines for
better readability.

When there was two return statements in one method the logic was swapped
to have only one return statement.

Change-Id: Id7a01b4a2df96036435f9e1a9be5678dd124b0af

10 years agoLeading semicolon line-bolding made visible in printable version
tonythomas01 [Thu, 2 Jan 2014 05:50:57 +0000 (11:20 +0530)]
Leading semicolon line-bolding made visible in printable version

When bolding a line using ";" at the start, the text in &printable=yes shows
the line without bolding, even though text in the printable version does appear
formatted when using ''' for bolding and '' for italics.

Bug: 49752
Change-Id: I84545fe9c9240293818c1f6f938fc3bba7c2aa06

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 1 Jan 2014 19:50:22 +0000 (19:50 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I9b0a5f6786c86abea3e0b1ffed52291eb88447e3

10 years agoUse SpecialPage::getPageTitle() instead of SpecialPage::getTitle()
Alexandre Emsenhuber [Wed, 1 Jan 2014 15:53:40 +0000 (16:53 +0100)]
Use SpecialPage::getPageTitle() instead of SpecialPage::getTitle()

Follow-up I2a3db995c2 (869d547).

Change-Id: Ifc6824bb1c28f4c5ac8a374208b25cbd8b3bf755

10 years agoUpdate docs for Revision::getRevisionText()
Siebrand Mazeland [Thu, 19 Dec 2013 12:32:52 +0000 (13:32 +0100)]
Update docs for Revision::getRevisionText()

Change-Id: I9e4218bec9fd69a50e06ba9fcd8bdf8461163a47

10 years agoUpdate comment for wfMsgExt()
Siebrand Mazeland [Thu, 12 Dec 2013 12:37:37 +0000 (13:37 +0100)]
Update comment for wfMsgExt()

Change-Id: Ia705a5a1bcef6d2b5c94a003b44e7d15b58df249

10 years agoDeprecate $wgPasswordSenderName
theopolisme [Tue, 31 Dec 2013 06:12:09 +0000 (00:12 -0600)]
Deprecate $wgPasswordSenderName

The sender name for system mailings can now be configured
locally by modifying the system message "emailsender". The
new default sender name is simply "{{SITENAME}}". Added to
release notes.

Also modify UserMailer to strip CR/LF linebreaks from header
values to prevent mail header injection now that the sender
name can be modified.

Bug: 32770
Change-Id: Ibfd28cd181365c8c0b5f3e8ffe8f5de8c89844a3

10 years agoMerge "LogEntry: Make newFromRow work with RC object"
jenkins-bot [Wed, 1 Jan 2014 13:28:35 +0000 (13:28 +0000)]
Merge "LogEntry: Make newFromRow work with RC object"

10 years agoRefactor ProfilerSimple
Ori Livneh [Tue, 31 Dec 2013 23:33:07 +0000 (15:33 -0800)]
Refactor ProfilerSimple

This patch refactors ProfilerSimple, moving the code that creates a new
profiling entry and the code that updates an existing entry to discrete
methods. This allows subclasses to supply a different implementation. It will
allow me to introduce a profiler class that uses RunningStat (introduced in
Ifedda276d) without breaking existing APIs and without having to duplicate lots
of code.

Change-Id: Ida7d7d0c1e2a98618b51246861e6af8ec3eb6320

10 years agoMerge "changed memcached server parsing to allow for local unix domain socket connect...
jenkins-bot [Tue, 31 Dec 2013 22:41:34 +0000 (22:41 +0000)]
Merge "changed memcached server parsing to allow for local unix domain socket connections"

10 years agoMerge "Update Special:ChangePassword to use HTMLForm"
jenkins-bot [Tue, 31 Dec 2013 22:05:43 +0000 (22:05 +0000)]
Merge "Update Special:ChangePassword to use HTMLForm"

10 years agoUpdate Special:ChangePassword to use HTMLForm
Alexandre Emsenhuber [Thu, 22 Aug 2013 17:37:23 +0000 (19:37 +0200)]
Update Special:ChangePassword to use HTMLForm

Makes the code shorter and easier to read.

Change-Id: I2a3db995c2c560354376fccb48137996dd9432fd