lhc/web/wiklou.git
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 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 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 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::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 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

10 years agoMerge "action=feedcontributions no longer has one item more than limit"
jenkins-bot [Tue, 31 Dec 2013 20:45:31 +0000 (20:45 +0000)]
Merge "action=feedcontributions no longer has one item more than limit"

10 years agoMerge "Add RunningStat class, tests"
jenkins-bot [Tue, 31 Dec 2013 19:59:33 +0000 (19:59 +0000)]
Merge "Add RunningStat class, tests"

10 years agoAdd RunningStat class, tests
Ori Livneh [Tue, 31 Dec 2013 06:42:34 +0000 (22:42 -0800)]
Add RunningStat class, tests

RunningStat computes the central tendency, shape, and extrema of a set of
points online, in constant space. It uses a neat one-pass algorithm for
calculating variance, described here:
  <en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm>

This particular implementation adapts a sample C++ implementation by John D.
Cook to PHP. See <http://www.johndcook.com/standard_deviation.html> and
  <http://www.johndcook.com/skewness_kurtosis.html>.

RunningStat instances can be combined. The resultant RunningStat has the same
state it would have had if it had been used to accumulate each point. This
property is attractive because it allows separate threads of execution to
process a stream in parallel. More importantly, individual points can be
accumulated in stages, without loss of fidelity, at intermediate points in the
aggregation process. JavaScript profiling samples can be accumulated in the
user's browser and be combined with measurements from other browsers on the
profiling data aggregator. Functions that are called multiple times in the
course of a profiled web request can be accumulated in MediaWiki prior to being
transmitted to the profiling data aggregator.

Usage will be introduced in a dependent commit.

Change-Id: Ifedda276dfe8e0783cb8c4a95626e2aedd4ad368

10 years agoMerge "Remove version check for mysql 4.1 from Maintenance scripts"
jenkins-bot [Tue, 31 Dec 2013 19:20:37 +0000 (19:20 +0000)]
Merge "Remove version check for mysql 4.1 from Maintenance scripts"

10 years agochanged memcached server parsing to allow for local unix domain socket connections
Joel Natividad [Mon, 30 Dec 2013 20:58:24 +0000 (15:58 -0500)]
changed memcached server parsing to allow for local unix domain socket connections

* This works with local memcached (e.g. unix:///var/run/memcached/memcached.sock:0 )
  and noticeably increases memcached mediawiki performance

Change-Id: Ie08c151caa09eb0a4269df88965d71c2367c398b

10 years agoaction=feedcontributions no longer has one item more than limit
umherirrender [Tue, 31 Dec 2013 16:44:43 +0000 (17:44 +0100)]
action=feedcontributions no longer has one item more than limit

The extra one is used for navigation on Special:Contributions, but that
is not needed on the rss feed.

Bug: 57874
Change-Id: Id56b0da7e921df9cbdb09e90611d226bf224804d

10 years agoLogEntry: Make newFromRow work with RC object
nullzero [Tue, 31 Dec 2013 06:42:35 +0000 (01:42 -0500)]
LogEntry: Make newFromRow work with RC object

LogEntry::newFromRow is supposed to give a RCDatabaseLogEntry
if the given row is a RC log entry. The previous code only did
this if an array was passed as the $row argument.

This adds a type cast and fixes the function so that the proper
LogEntry subclass is returned no matter what variable type is
passed to the function.

Bug: 52053
Change-Id: I6f64358837b37c54d00a7544e9e8a92c216bbe89

10 years agoMerge "Make SpecialWatchlist extend SpecialRecentChanges (temporarily)"
jenkins-bot [Tue, 31 Dec 2013 09:41:08 +0000 (09:41 +0000)]
Merge "Make SpecialWatchlist extend SpecialRecentChanges (temporarily)"

10 years agoRemove version check for mysql 4.1 from Maintenance scripts
tonythomas01 [Tue, 31 Dec 2013 07:07:57 +0000 (12:37 +0530)]
Remove version check for mysql 4.1 from Maintenance scripts

Removed version check for mysql from initEditCount.php and
storage/fixBug20757.php. Mediawiki needs MYSQL Ver 5.0.2 or
later, so the check is unnecessary.
Removed white spaces

Bug: 59126
Change-Id: I29e2ca8764fad8bf4d15bba307e80f3aacea1db7

10 years agoMerge "wfRunHooks() return value no longer implies whether variable value was found"
jenkins-bot [Tue, 31 Dec 2013 09:16:41 +0000 (09:16 +0000)]
Merge "wfRunHooks() return value no longer implies whether variable value was found"

10 years agowfRunHooks() return value no longer implies whether variable value was found
vishnu [Sat, 28 Dec 2013 14:14:50 +0000 (19:44 +0530)]
wfRunHooks() return value no longer implies whether variable value was found

Bug: 12837
Change-Id: I459923deee4fa294f78f277620f229fc2a84d266

10 years agoAdd @since tag to SpecialPage::getPageTitle
Kunal Mehta [Tue, 31 Dec 2013 07:03:23 +0000 (23:03 -0800)]
Add @since tag to SpecialPage::getPageTitle

Change-Id: I7b0706475e4c400f411f6463c4b77d65bfd23d57

10 years agoMake MagicWordArray compatible with PCRE 8.34+
Kevin Israel [Sun, 22 Dec 2013 06:24:07 +0000 (01:24 -0500)]
Make MagicWordArray compatible with PCRE 8.34+

In PCRE 8.34, a subpattern's name must not start with a digit; work around
this by replacing digits in the synonym's index with letters. Amazingly,
this part of the name seems to have the sole purpose of ensuring uniqueness;
none of the matching functions actually use it for anything.

Adding a single-letter prefix was considered, though it would risk breaking
extension code that may have used 29- or 30- character magic word IDs.
(PCRE limits subpattern names to 32 characters.) Likewise, moving the magic
word's ID to the front would not work if it were to start with a digit.

Bug: 58640
Change-Id: Ic69f9000addbf18c4747105187e6f13191828fbb

10 years agoMerge "Format functions in CacheTime"
jenkins-bot [Mon, 30 Dec 2013 23:38:46 +0000 (23:38 +0000)]
Merge "Format functions in CacheTime"

10 years agoMerge "With mysqli, avoid setting the charset twice"
jenkins-bot [Mon, 30 Dec 2013 23:22:31 +0000 (23:22 +0000)]
Merge "With mysqli, avoid setting the charset twice"

10 years agoMerge "Replace usage of deprecated Title::escapeLocalURL()"
jenkins-bot [Mon, 30 Dec 2013 23:18:05 +0000 (23:18 +0000)]
Merge "Replace usage of deprecated Title::escapeLocalURL()"

10 years agoWith mysqli, avoid setting the charset twice
Aaron Schulz [Fri, 27 Dec 2013 22:40:15 +0000 (14:40 -0800)]
With mysqli, avoid setting the charset twice

* This uses MYSQLI_SET_CHARSET_NAME to set the charset to utf8/binary
* This replaces a live WMF hack to skip the extra round trip

Change-Id: I1718e013fcdc95163d111d460f0dd6d2190a99b1

10 years agoMerge "Define $showAll when special page is included"
jenkins-bot [Mon, 30 Dec 2013 23:16:21 +0000 (23:16 +0000)]
Merge "Define $showAll when special page is included"

10 years agoMove non-API release notes out of the API section
Brad Jorsch [Mon, 30 Dec 2013 22:02:11 +0000 (17:02 -0500)]
Move non-API release notes out of the API section

The API section is for the web API, not for generic internal APIs.

Change-Id: I02561fb1c1a6dff756b87720153ab332ed67475a

10 years agoAdded $purgeBlobs flag to LocalisationCacheRecache hook
Aaron Schulz [Sat, 28 Dec 2013 08:58:41 +0000 (00:58 -0800)]
Added $purgeBlobs flag to LocalisationCacheRecache hook

* This helps replace the WMF live hack to skip calling clear()

Change-Id: I37bd6cf87e72b6d32e4c6c261abe2a0ef43d067e

10 years agoFormat functions in CacheTime
umherirrender [Mon, 30 Dec 2013 21:00:22 +0000 (22:00 +0100)]
Format functions in CacheTime

The function body should stay on it's own line

Change-Id: I1651ab2520ae278dd72a2f28718151280ddbba54

10 years agoRemoved trailing whitespace from ParserCache.php
tonythomas01 [Mon, 30 Dec 2013 20:14:32 +0000 (01:44 +0530)]
Removed trailing whitespace from ParserCache.php

Follow up from Change I705a056665.

Change-Id: I31bdede4347b1d55be113e8ba7c44f3683c2ab46

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 30 Dec 2013 19:59:53 +0000 (19:59 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I822d3da8b027b6ff507c1b9a838e679522bf3a5b

10 years agoReturn void for LogPager::limitPerformer and limitTitle
Siebrand Mazeland [Fri, 27 Dec 2013 12:57:02 +0000 (13:57 +0100)]
Return void for LogPager::limitPerformer and limitTitle

Previously, return values were inconsistent, and according to Chad,
no callers are interested in a return value.

Change-Id: Ib55e7a1c775953f8e90af4b4dedca403c33ac42d

10 years agoMerge "Removed const ParserCache::try116cache"
jenkins-bot [Mon, 30 Dec 2013 19:13:13 +0000 (19:13 +0000)]
Merge "Removed const ParserCache::try116cache"

10 years agoRemoved const ParserCache::try116cache
tonythomas01 [Mon, 30 Dec 2013 18:54:29 +0000 (00:24 +0530)]
Removed const ParserCache::try116cache

Version 1.16 is long ago and there seems no need to keep the const
ParserCache::try116cache in core.
Removed the if(self:: try116cache) block

Bug: 59127
Change-Id: I705a056665441f81516a4dbb6fe317a44da91d43

10 years agoRevert "Update type hint for CreditsAction::getAuthor()"
Reedy [Mon, 30 Dec 2013 18:11:07 +0000 (18:11 +0000)]
Revert "Update type hint for CreditsAction::getAuthor()"

This reverts commit 8a9a1eff3e117a4f0572c88285f64472213dd962.

Change-Id: I689645c812b1a28821a3d6854bc7737fc677e29e

10 years agoMerge "Fix typo - fuction -> function"
jenkins-bot [Mon, 30 Dec 2013 18:10:27 +0000 (18:10 +0000)]
Merge "Fix typo - fuction -> function"

10 years agoUpdate type hint for CreditsAction::getAuthor()
Siebrand Mazeland [Mon, 30 Dec 2013 15:41:36 +0000 (16:41 +0100)]
Update type hint for CreditsAction::getAuthor()

This function calls $page->getUserText() and $page->getTimestamp(). These
functions are not specified in the interface Page (which actually specifies
nothing at all). Page is only implemented by WikiPage and Article. Article
does not implement getUserText() and getTimestamp(). WikiPage does.
CreditsAction::getAuthor() cannot ever be given an Article, because that
would cause a fatal error "call to undefined method".

Change-Id: I0ba29622b7307845345ce645cb63b53614aaf2ab

10 years agoFix typo - fuction -> function
umherirrender [Mon, 30 Dec 2013 17:48:11 +0000 (18:48 +0100)]
Fix typo - fuction -> function

Change-Id: I5a82849af85296b324d460ed21d9a547c391d341

10 years agoMerge "API: Include variant name in meta=siteinfo"
jenkins-bot [Mon, 30 Dec 2013 17:46:49 +0000 (17:46 +0000)]
Merge "API: Include variant name in meta=siteinfo"

10 years agoMerge "Show a warning on page deletion if a page is linked to"
jenkins-bot [Mon, 30 Dec 2013 17:18:19 +0000 (17:18 +0000)]
Merge "Show a warning on page deletion if a page is linked to"

10 years agoMerge "Fixed locking in JobQueueAggregatorRedis"
jenkins-bot [Mon, 30 Dec 2013 16:46:21 +0000 (16:46 +0000)]
Merge "Fixed locking in JobQueueAggregatorRedis"

10 years agoRemove @todo that has since been done
grunny [Mon, 30 Dec 2013 13:16:52 +0000 (23:16 +1000)]
Remove @todo that has since been done

This todo note was done a few days after it was added in
commit e5aa994d2eb36e0d0b5d63290e419df3a2cdf5cd.

Change-Id: Iea1674fc28cca68f02b15d9a6513dd3e62fbc395

10 years agoRemove ProfilerSimple::getCpuTime
Ori Livneh [Sun, 29 Dec 2013 10:13:12 +0000 (02:13 -0800)]
Remove ProfilerSimple::getCpuTime

Deprecated in 1.20, in change I12d1bcb43. I couldn't find any callers.

Change-Id: Ia5a6e02ae3a4bd749c9c7ee9fb32f708b0a3b513

10 years agoShow a warning on page deletion if a page is linked to
Amir E. Aharoni [Thu, 23 May 2013 23:22:17 +0000 (02:22 +0300)]
Show a warning on page deletion if a page is linked to

Developed at Hackathon TLV 2013. Based on Ronen Gilead-Raz and Vladimir
Krapp's patch.

Bug: 35485
Change-Id: I623235736aa735232d6a727702d764538b0b65e7

10 years agoMerge "Declare visibility for class properties in DatabaseOracle.php"
jenkins-bot [Mon, 30 Dec 2013 00:01:38 +0000 (00:01 +0000)]
Merge "Declare visibility for class properties in DatabaseOracle.php"

10 years agoFixed locking in JobQueueAggregatorRedis
Aaron Schulz [Sun, 29 Dec 2013 21:44:33 +0000 (13:44 -0800)]
Fixed locking in JobQueueAggregatorRedis

* The old code would still bump the lock TTL on failure,
  so if processes kept trying to acquire it and the one
  that had it crashed, nothing would ever do anything.

Change-Id: If3fe7b75364204f399fb4caf8bd39204ab51b353

10 years agoMerge "Fixed backwards JobQueueFederated::doIsEmpty() method"
jenkins-bot [Sun, 29 Dec 2013 22:31:52 +0000 (22:31 +0000)]
Merge "Fixed backwards JobQueueFederated::doIsEmpty() method"

10 years agoFixed backwards JobQueueFederated::doIsEmpty() method
Aaron Schulz [Sun, 29 Dec 2013 22:22:22 +0000 (14:22 -0800)]
Fixed backwards JobQueueFederated::doIsEmpty() method

Change-Id: I6b7dfb76621e9b6407829de7faf86495325512c8

10 years agoFix more concatenation errors
Brad Jorsch [Sun, 29 Dec 2013 20:08:46 +0000 (15:08 -0500)]
Fix more concatenation errors

Errors were introduced in I763f79c6 and Id5fd7180.

Change-Id: Ieb5189636eb3df54290aaf998834988c81099eb3

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sun, 29 Dec 2013 19:37:29 +0000 (19:37 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoDefine $showAll when special page is included
Siebrand Mazeland [Sun, 29 Dec 2013 19:31:15 +0000 (20:31 +0100)]
Define $showAll when special page is included

Change-Id: I9018efe345283f5577edbcc652d62e735eaaa1b2

10 years agoMerge "Update documentation for ApiQueryWatchlist::parseRCType()"
jenkins-bot [Sun, 29 Dec 2013 19:32:31 +0000 (19:32 +0000)]
Merge "Update documentation for ApiQueryWatchlist::parseRCType()"

10 years agoMerge "Declare visibility for class properties in DatabaseMssql"
jenkins-bot [Sun, 29 Dec 2013 19:30:35 +0000 (19:30 +0000)]
Merge "Declare visibility for class properties in DatabaseMssql"

10 years agoMerge "Declare visibility for class properties in DatabaseUtility.php"
jenkins-bot [Sun, 29 Dec 2013 19:28:48 +0000 (19:28 +0000)]
Merge "Declare visibility for class properties in DatabaseUtility.php"

10 years agoMerge "Update documentation for QueryPage::execute()"
jenkins-bot [Sun, 29 Dec 2013 19:25:19 +0000 (19:25 +0000)]
Merge "Update documentation for QueryPage::execute()"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 29 Dec 2013 19:04:26 +0000 (19:04 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie5a14015e8dd20feecfac6962a80c7758a291442

10 years agoMerge "mediawiki.action.edit.collapsibleFooter.js use $.cookie()"
jenkins-bot [Sun, 29 Dec 2013 18:35:46 +0000 (18:35 +0000)]
Merge "mediawiki.action.edit.collapsibleFooter.js use $.cookie()"

10 years agoMerge "Fix string concatenation in api documentation"
jenkins-bot [Sun, 29 Dec 2013 17:55:58 +0000 (17:55 +0000)]
Merge "Fix string concatenation in api documentation"

10 years agoFix string concatenation in api documentation
aude [Sun, 29 Dec 2013 17:40:14 +0000 (18:40 +0100)]
Fix string concatenation in api documentation

Change-Id: I4f94172a5e4ad43dd88c21e01148fd94783aca54

10 years agomediawiki.action.edit.collapsibleFooter.js use $.cookie()
Fomafix [Sun, 29 Dec 2013 16:54:01 +0000 (16:54 +0000)]
mediawiki.action.edit.collapsibleFooter.js use $.cookie()

Change-Id: I3e2950c905f35b533e01c20d800b83d18e199d28