lhc/web/wiklou.git
11 years ago(bug 35993) API gettoken parameter is deprecated (release notes complement)
Dereckson [Wed, 26 Dec 2012 17:15:43 +0000 (18:15 +0100)]
(bug 35993) API gettoken parameter is deprecated (release notes complement)

Added in HISTORY (section API changes):
* (bug 35993) Deprecated gettoken parameter - support will be removed in 1.22.

This is a follow-up for change I369ddc74.

Change-Id: Ie78e1061353725793dbba2876037fb32cb9035a8

11 years agoMerge "Update CREDITS"
IAlex [Thu, 3 Jan 2013 19:47:33 +0000 (19:47 +0000)]
Merge "Update CREDITS"

11 years agoMerge "(bug 43116) Don't run database updates for shared tables unless --doshared...
jenkins-bot [Thu, 3 Jan 2013 18:39:39 +0000 (18:39 +0000)]
Merge "(bug 43116) Don't run database updates for shared tables unless --doshared is provided"

11 years agoAdd test for substitution of params with multiple digits
Niklas Laxström [Wed, 2 Jan 2013 17:06:23 +0000 (17:06 +0000)]
Add test for substitution of params with multiple digits

Change-Id: I293bcdeecd5ee83cf05887aa06dc86b5589398eb

11 years agoMerge "Add new hook LinksUpdateAfterInsert to LinksUpdate"
Kaldari [Thu, 3 Jan 2013 01:56:51 +0000 (01:56 +0000)]
Merge "Add new hook LinksUpdateAfterInsert to LinksUpdate"

11 years agoMerge "Use Html::rawElement() instead of hardcoded string in Special:Contributions"
jenkins-bot [Thu, 3 Jan 2013 01:37:38 +0000 (01:37 +0000)]
Merge "Use Html::rawElement() instead of hardcoded string in Special:Contributions"

11 years agoMerge "(bug 42915) make MovePage aware of whether redirects are supported."
jenkins-bot [Thu, 3 Jan 2013 01:35:54 +0000 (01:35 +0000)]
Merge "(bug 42915) make MovePage aware of whether redirects are supported."

11 years agoMerge "Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error"
jenkins-bot [Thu, 3 Jan 2013 01:27:06 +0000 (01:27 +0000)]
Merge "Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error"

11 years agoMerge "[FileBackend] Improved some header related docs."
IAlex [Wed, 2 Jan 2013 22:02:42 +0000 (22:02 +0000)]
Merge "[FileBackend] Improved some header related docs."

11 years agoMerge "[JobQueue] Clarified documentation a bit."
IAlex [Wed, 2 Jan 2013 22:00:15 +0000 (22:00 +0000)]
Merge "[JobQueue] Clarified documentation a bit."

11 years agoMerge "Pass $user from WikiPage::getContent to Revision::getContent"
IAlex [Wed, 2 Jan 2013 21:45:19 +0000 (21:45 +0000)]
Merge "Pass $user from WikiPage::getContent to Revision::getContent"

11 years agoMerge "Cleaned up and optimized wfBaseConvert();"
jenkins-bot [Wed, 2 Jan 2013 21:38:58 +0000 (21:38 +0000)]
Merge "Cleaned up and optimized wfBaseConvert();"

11 years agoAdd new hook LinksUpdateAfterInsert to LinksUpdate
bsitu [Mon, 31 Dec 2012 22:30:32 +0000 (14:30 -0800)]
Add new hook LinksUpdateAfterInsert to LinksUpdate

This will allow extensions to do some work based on the links inserted

Change-Id: Ia522de65ff17e28c6a8cd9997cf6225100fefc9e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 2 Jan 2013 20:39:32 +0000 (20:39 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I74352251601ed9c9fbc16dbf7b51ae168631722f

11 years ago[JobQueue] Clarified documentation a bit.
Aaron Schulz [Wed, 2 Jan 2013 20:12:59 +0000 (12:12 -0800)]
[JobQueue] Clarified documentation a bit.

Change-Id: I065efd6b41a42d2d39b034c3488d2f00c27d7ac5

11 years agoPass $user from WikiPage::getContent to Revision::getContent
umherirrender [Wed, 2 Jan 2013 19:22:58 +0000 (20:22 +0100)]
Pass $user from WikiPage::getContent to Revision::getContent

Change-Id: If909ad6049869e2bf38789bd429f08dc3a264cae

11 years agoAdd release note for I1a3c7ac6
Brad Jorsch [Wed, 2 Jan 2013 18:36:43 +0000 (13:36 -0500)]
Add release note for I1a3c7ac6

Change-Id: I9aee1a7e65ab0e235cc7c79fbecf5a0b458b0275

11 years agoMerge "(bug 43315) Cursor of enhancedchangelist wrong for non-toggle lines"
jenkins-bot [Wed, 2 Jan 2013 17:21:19 +0000 (17:21 +0000)]
Merge "(bug 43315) Cursor of enhancedchangelist wrong for non-toggle lines"

11 years agoDon't use isset() to check whether an existing variable is null
Alexandre Emsenhuber [Tue, 1 Jan 2013 21:13:30 +0000 (22:13 +0100)]
Don't use isset() to check whether an existing variable is null

Change-Id: I7b4207e91b6fa33ba31b1308f5e71f923def687e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 1 Jan 2013 20:04:18 +0000 (20:04 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0a954d32095fc9562dd97301a7985dd64d262e78

11 years agoFixing find hooks script call error in docs/hooks.txt
Dereckson [Tue, 1 Jan 2013 16:44:02 +0000 (17:44 +0100)]
Fixing find hooks script call error in docs/hooks.txt

- maintenance/findhooks.php -> maintenance/findHooks.php
- ./maintenance/... -> php maintenance/... (*)

* Our maintenance files aren't released as executable, so this kind of
instruction could be confusing for UNIX system administration novices.

Change-Id: I5e1e76c46b3a8a4c7168c0b5715ede648044bd44

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 31 Dec 2012 20:05:45 +0000 (20:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I40c4740df64cf5454f8680f792d9847fa179c2ad

11 years agoMerge "use video/webm instead of audio/webm for webm"
jenkins-bot [Mon, 31 Dec 2012 18:16:45 +0000 (18:16 +0000)]
Merge "use video/webm instead of audio/webm for webm"

11 years agoMerge "(bug 40340) Fix cache issues with changing user groups"
jenkins-bot [Mon, 31 Dec 2012 17:46:30 +0000 (17:46 +0000)]
Merge "(bug 40340) Fix cache issues with changing user groups"

11 years agoMerge "(bug 34876) improve $.makeCollapsible performance on the initial collapsing"
jenkins-bot [Mon, 31 Dec 2012 16:14:59 +0000 (16:14 +0000)]
Merge "(bug 34876) improve $.makeCollapsible performance on the initial collapsing"

11 years ago* Oracle Schema update to latest
freakolowsky [Mon, 31 Dec 2012 14:12:11 +0000 (15:12 +0100)]
* Oracle Schema update to latest
* fixed makeSelectOptions (bug 43533)

Change-Id: Ib146a5073de18f2b20a22f34bd60222b230c9514

11 years agoWrong namespace in BackupDumperPageTest::testFullTextPlain
umherirrender [Mon, 31 Dec 2012 12:23:20 +0000 (13:23 +0100)]
Wrong namespace in BackupDumperPageTest::testFullTextPlain

The problem here is, that title objects are created before wgContLang is
changed, so the title can contains wrong namespace names.

1) BackupDumperPageTest::testFullTextPlain
Text of node title
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Diskussion:BackupDumperTestP1'
+'Talk:BackupDumperTestP1'

Change-Id: I975c0f6ae7e6f51b038fe41edda2f54cd8c97eb6

11 years agoAdd some missing parent::tearDown()
umherirrender [Mon, 31 Dec 2012 12:54:06 +0000 (13:54 +0100)]
Add some missing parent::tearDown()

Change-Id: Ibcdf5d440043cef25b4aa9fb08b61ec4a2c558d1

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 30 Dec 2012 19:03:03 +0000 (19:03 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic569ea4b8d4d716bd5310134de8305f5e52048b5

11 years agoMerge "Add LanguageZh_hans::formatDuration() for Chinese."
jenkins-bot [Sun, 30 Dec 2012 09:34:04 +0000 (09:34 +0000)]
Merge "Add LanguageZh_hans::formatDuration() for Chinese."

11 years agowfMerge() now works if $wgDiff3 contains spaces
btongminh [Sat, 29 Dec 2012 20:39:54 +0000 (21:39 +0100)]
wfMerge() now works if $wgDiff3 contains spaces

Change-Id: Ia18012ee87fe45e292cf08542f5b0680d0b85371

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sat, 29 Dec 2012 19:56:11 +0000 (19:56 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Correct isset() and associated checks in Revision::__construct()"
jenkins-bot [Sat, 29 Dec 2012 19:34:18 +0000 (19:34 +0000)]
Merge "Correct isset() and associated checks in Revision::__construct()"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 29 Dec 2012 19:24:47 +0000 (19:24 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib9a9723b78d650f64fe030afbfeadde050259829

11 years agoMerge "Do correct average year length arithmetic."
IAlex [Sat, 29 Dec 2012 19:18:05 +0000 (19:18 +0000)]
Merge "Do correct average year length arithmetic."

11 years agoUse Html::rawElement() instead of hardcoded string in Special:Contributions
Alexandre Emsenhuber [Sat, 29 Dec 2012 15:47:22 +0000 (16:47 +0100)]
Use Html::rawElement() instead of hardcoded string in Special:Contributions

Since there is generally no classes in the list items, this avoids having a
lot of useless class="" in the output.

Change-Id: I804af2269def1f06d023145c9ced6f1afa0d0c71

11 years agoDo correct average year length arithmetic.
Liangent [Sat, 29 Dec 2012 14:07:21 +0000 (22:07 +0800)]
Do correct average year length arithmetic.

We have ( 24 * 3 + 25 ) leap years in total every 400 years in the
Gregorian calendar.

Change-Id: I2ad9036473afa914ecf8ddcf99ce27e316178f76

11 years ago(bug 39062) Show revs without rev_parent_id in Special:Contributions.
Brian Wolff [Thu, 27 Dec 2012 07:28:17 +0000 (03:28 -0400)]
(bug 39062) Show revs without rev_parent_id in Special:Contributions.

This is a follow-up to Ifd63cdf1 (c8e0ec3f)

Currently if rev_parent_id is not populated on a row we just
output an empty bullet - <li class=""></li>. (Which can
happen if an update is performed properly. There are (were?) some
examples of this on en wikipedia. I was just talking to a user
who had some of his revisions not be populated for that field,
so it can happen.) Heck there's even code that checks for this
case inside the if statement (before this commit) that stops
non rev_parent_id rows from being processed.

This seems very very wrong to me. Change the check for if a revision
is valid to look for rev_id (which is the primary key, so
going to be there, and always has been there).

Also in the
case we don't have a valid revision and can't format it
(For example, an ext made a hook that added random rows
to the Special:Contribs query, but forgot to format some),
instead of outputting an empty bullet, output just an
html comment, (and a debug log entry).

Thank you to Isarra for reporting this issue.

Change-Id: I7ef562d6e829877dd8ea4ffb1e7e04b46c943ec1

11 years agoMerge "API list=alltransclusions, rm unique+gen & continue restrict"
jenkins-bot [Fri, 28 Dec 2012 22:00:34 +0000 (22:00 +0000)]
Merge "API list=alltransclusions, rm unique+gen & continue restrict"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 28 Dec 2012 21:01:40 +0000 (21:01 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Icf200b83397e2d0c7d01269a063d23759c397b95

11 years agoAPI list=alltransclusions, rm unique+gen & continue restrict
Yuri Astrakhan [Fri, 28 Dec 2012 18:46:11 +0000 (13:46 -0500)]
API list=alltransclusions, rm unique+gen & continue restrict

* list=alltransclusions added to enumerate every instance of page embedding
* list=alllinks & alltransclusions now allow both 'from' and 'continue' in
  the same query. When both are present, 'from' is simply ignored.
* list=alllinks & alltransclusions now allow 'unique' in generators, to yield
  a list of all link/template target pages instead of source pages.

Change-Id: I4137e2d790f988e0cef638703d9d6961a47fe662

11 years agoMerge "ApiOptionsTest: Group medium (takes more than 2 seconds)."
Timo Tijhof [Fri, 28 Dec 2012 17:26:48 +0000 (17:26 +0000)]
Merge "ApiOptionsTest: Group medium (takes more than 2 seconds)."

11 years agoApiOptionsTest: Group medium (takes more than 2 seconds).
Timo Tijhof [Fri, 28 Dec 2012 17:23:02 +0000 (18:23 +0100)]
ApiOptionsTest: Group medium (takes more than 2 seconds).

Various jobs are failing in Jenkins due to this test exceeding
the maximum execution time of 2 seconds.

https://integration.mediawiki.org/ci/job/mediawiki-core-phpunit-api/684/console

Follows-up 13f0f58fb7c95f.

Change-Id: I41a9a571a50e538de514586618d58438c5dd6148

11 years ago(bug 41733) Hide usermessage element from printable view.
umherirrender [Thu, 27 Dec 2012 19:17:50 +0000 (20:17 +0100)]
(bug 41733) Hide usermessage element from printable view.

Change-Id: Iefa8158d28c8a78f21ad8155eba11d4870573b59

11 years agouse video/webm instead of audio/webm for webm
Jan Gerber [Fri, 28 Dec 2012 16:02:36 +0000 (16:02 +0000)]
use video/webm instead of audio/webm for webm

StreamFile::contentTypeFromPath via MimeMagic::guessTypesForExtension
returns the first mime type for a given extension listed in
includes/mime.types. This is used to set the mime type of files in
SWIFT. While audio/webm is a valid mime type for .webm files,
we only have videos with .webm right now. moving video/webm
up to make it the default mime type.

This fixes issues with players that will only show a video if
type is video/webm: Bug 43476

Change-Id: Ib4868995a9b2f474e656ecc4b23a18201fbeb572

11 years ago(bug 40340) Fix cache issues with changing user groups
Timo Tijhof [Wed, 19 Sep 2012 00:24:35 +0000 (02:24 +0200)]
(bug 40340) Fix cache issues with changing user groups

* migrateUserGroup.php: Call User::invalidateCache

* While at it, also fix the issue where User::clearInstanceCache
  did not clear cache for User::getGroups.

  Although it does clear the caches of methods used to calculate
  other group-related lists (such as User::getEffectiveGroups),
  the one for the query from user_groups was still cached in
  $this->mGroups.

  Presumably this was forgotten when this pattern was introduced
  as the instance cache precedes the user_group table.

Change-Id: I22abdba00f8ccf587a3d7696e57970ed4653afc8

11 years agoAdd plural support for protocols in 'linksearch-text'
Siebrand Mazeland [Thu, 27 Dec 2012 22:54:54 +0000 (23:54 +0100)]
Add plural support for protocols in 'linksearch-text'

Change-Id: I6b043b4b3f7bba585abe6bd44d29a300a35d697c

11 years agoCorrect isset() and associated checks in Revision::__construct()
Alexandre Emsenhuber [Fri, 28 Dec 2012 12:03:06 +0000 (13:03 +0100)]
Correct isset() and associated checks in Revision::__construct()

isset() checks that the member is set *and* its value is not null,
so there's no point doing a second is_null() check.
This also fixes an E_NOTICE when rev_parent_id is not set since
is_null() was called on it after isset() returned false.

Change-Id: I07bf670236413436d23ee5d87d032608b25769ce

11 years ago(bug 42949) API shouldn't assume all exceptions are MWException
Brad Jorsch [Tue, 11 Dec 2012 14:12:08 +0000 (09:12 -0500)]
(bug 42949) API shouldn't assume all exceptions are MWException

Since I20525253, the exception-handling code in ApiMain has
inadvertently assumed that all thrown exceptions will be subclasses of
MWException. This change restores the check for MWException while
preserving the new check for not UsageException introduced in that
commit.

Change-Id: I5016143a07c871bae910e93b22fefe61a959780c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 27 Dec 2012 20:56:20 +0000 (20:56 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I734196d547973e07c8b129523ce693c318c4ee1a

11 years agoFollow-up I9c7aa3b2 (b28c7a8): fix one more validation error
Alexandre Emsenhuber [Thu, 27 Dec 2012 18:49:41 +0000 (19:49 +0100)]
Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error

"size" attribute of <input> is not allowed when type is "file".

Change-Id: Id8291d2c2e2ddc3e0c462c0eaa3817634d088c6b

11 years agoFix typo in ResourceLoaderFileModule.
Matthew Flaschen [Thu, 27 Dec 2012 18:05:53 +0000 (13:05 -0500)]
Fix typo in ResourceLoaderFileModule.

Change-Id: Ia4460fb8bba7e08f235016fa8b59adf97e48a4d3

11 years ago(bug 43116) Don't run database updates for shared tables unless --doshared is provided
Alexandre Emsenhuber [Thu, 27 Dec 2012 17:37:40 +0000 (18:37 +0100)]
(bug 43116) Don't run database updates for shared tables unless --doshared is provided

Added DatabaseUpdater::doTable() to check whether updates should executed on the given table.

Change-Id: I83fd722b604f9bc8a834681d234a0d80964dedc5

11 years agoFix some validation errors on Special:Import
umherirrender [Thu, 27 Dec 2012 16:26:24 +0000 (17:26 +0100)]
Fix some validation errors on Special:Import

Fixed errors are:
* Duplicate ID mw-import-table
* Duplicate ID mw-interwiki-rootpage
* The for attribute of the label element must refer to a form control
(2x)

Added also a id for another input element for easy user scripting

Change-Id: I9c7aa3b2af2d49cf3aed42a057ab13aa1275ee90

11 years agoUse NS_* constant for default namespace in api
umherirrender [Thu, 27 Dec 2012 13:54:16 +0000 (14:54 +0100)]
Use NS_* constant for default namespace in api

Change-Id: Ic46e7fe1877c4067b1b6bbea71216c0cdf594cb2

11 years agoMerge "allow OldChangesListRecentChangesLine hook to return false and omit line from RC"
IAlex [Thu, 27 Dec 2012 13:39:27 +0000 (13:39 +0000)]
Merge "allow OldChangesListRecentChangesLine hook to return false and omit line from RC"

11 years agoRemove unused globals
Platonides [Thu, 27 Dec 2012 13:04:53 +0000 (14:04 +0100)]
Remove unused globals

Change-Id: Ie1920c5b6f0a38c7e697a493aef88e54873c07ab

11 years ago(bug 43315) Cursor of enhancedchangelist wrong for non-toggle lines
umherirrender [Thu, 27 Dec 2012 09:36:06 +0000 (10:36 +0100)]
(bug 43315) Cursor of enhancedchangelist wrong for non-toggle lines

The class mw-enhancedchanges-arrow was also used for non-toggle lines,
which have now the cursor. Now using mw-enhancedchanges-arrow-space for
the space and mw-enhancedchanges-arrow for the cursor.

Also fix bad aligned lines, when javascript is disabled. Here the
problem was, that only the arrows are display:noned, but the placeholder
space of single lines must also be display:noned.

Change-Id: Iba13987ced4c3e327026df2cb96b92a777e2032f

11 years agoallow OldChangesListRecentChangesLine hook to return false and omit line from RC
aude [Fri, 9 Nov 2012 16:17:48 +0000 (16:17 +0000)]
allow OldChangesListRecentChangesLine hook to return false and omit line from RC

- this enables an extension to do some processing on the RC line,
and if processing fails or for other reason, the extension has the
option to not output the line at all in Special:RecentChanges and
Special:Watchlist.

Change-Id: Ibf3a217afba5b4ad7992919399710fe3da301025

11 years agoCleaned up and optimized wfBaseConvert();
Tyler Anthony Romeo [Tue, 25 Dec 2012 20:32:04 +0000 (15:32 -0500)]
Cleaned up and optimized wfBaseConvert();

* Added code to use BCMath or GMP if they are
  loaded, since they are both significantly faster.
  A parameter was added that can be used to force
  usage of a specific engine (mainly for testing).
* Made an array of base digits rather than using
  strpos() every time.
* Used casting instead of intval(), since the latter
  is six times slower.

Also added unit tests for wfBaseConvert as well as
a benchmarking class that measures the difference
between using GMP, BCMath, and pure PHP.

Change-Id: I841717be2b29a0b7fc57a13fde5cc0642cda82df

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 26 Dec 2012 20:38:24 +0000 (20:38 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I2abbe72f8a76d574a436a4b29755e3f3b889d94e

11 years agoMerge "Add mobile target to modules needed for mw.msg()"
Brion VIBBER [Wed, 26 Dec 2012 19:28:52 +0000 (19:28 +0000)]
Merge "Add mobile target to modules needed for mw.msg()"

11 years agoMerge "(bug 24692) Make the padding support RTL languages"
jenkins-bot [Wed, 26 Dec 2012 11:27:04 +0000 (11:27 +0000)]
Merge "(bug 24692) Make the padding support RTL languages"

11 years agoMerge "Creating new GetDoubleUnderscoreIDs hook"
Ori.livneh [Tue, 25 Dec 2012 23:33:18 +0000 (23:33 +0000)]
Merge "Creating new GetDoubleUnderscoreIDs hook"

11 years agoCreating new GetDoubleUnderscoreIDs hook
Kaldari [Tue, 25 Dec 2012 06:40:41 +0000 (22:40 -0800)]
Creating new GetDoubleUnderscoreIDs hook

Creating a new hook so that doubleunderscore (behaviour switch) magic
words can be defined from Extensions (so that I can solve bug 6754
from an extension rather than from core, as requested).

Change-Id: I734a4a1639be61052924838b19ed9db93a28e50b

11 years agoMerge "(bug 25398) Remove upgrade1_5.php"
Brian Wolff [Tue, 25 Dec 2012 22:35:43 +0000 (22:35 +0000)]
Merge "(bug 25398) Remove upgrade1_5.php"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 25 Dec 2012 19:46:58 +0000 (19:46 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie29068d717b09723f85975886e4478b145862d63

11 years ago(bug 24692) Make the padding support RTL languages
Amir E. Aharoni [Fri, 21 Dec 2012 22:41:15 +0000 (00:41 +0200)]
(bug 24692) Make the padding support RTL languages

Change-Id: I5be38f001dcc13a57e213fdbb505f05623070af3

11 years ago(bug 25398) Remove upgrade1_5.php
Antoine Musso [Sun, 18 Nov 2012 14:18:56 +0000 (15:18 +0100)]
(bug 25398) Remove upgrade1_5.php

The script has stopped working for quiet sometime now. If one still has
a 1.4 (or previous) wiki, it should upgrade to 1.5 first.  I do not
think it is worth anytime to try to port the updater nor to mention a
release note entry.

Change-Id: Ic0e366e2c7086e371d486b05ca222f2853f64ccb

11 years agoMade wfBaseconvert actually work with $lowercase=false.
Aaron Schulz [Tue, 25 Dec 2012 08:26:26 +0000 (00:26 -0800)]
Made wfBaseconvert actually work with $lowercase=false.

* This used to return false for any non-digit input characters.

Change-Id: Ie7fca2669724dea29f4733bbc77a559d4f48a5b1

11 years agoAllow setting a form message prefix in FormSpecialPage
aude [Mon, 24 Dec 2012 13:34:44 +0000 (13:34 +0000)]
Allow setting a form message prefix in FormSpecialPage

Change-Id: Iff14a626853c98190a1aba8263b8a7ec79e9b9b5

11 years agoRELEASE-NOTES entries for I7761a635 (af72dd6) and I2b2ca3da (24584ca)
Alexandre Emsenhuber [Mon, 24 Dec 2012 11:10:14 +0000 (12:10 +0100)]
RELEASE-NOTES entries for I7761a635 (af72dd6) and I2b2ca3da (24584ca)

Change-Id: Ib4bcf9811a5727d8d2835aed78d58eca1d77cb7e

11 years agoMerge "(bug 43382) Alt+shortcut key does not work in Chrome/Linux"
jenkins-bot [Mon, 24 Dec 2012 22:02:22 +0000 (22:02 +0000)]
Merge "(bug 43382) Alt+shortcut key does not work in Chrome/Linux"

11 years ago(bug 43382) Alt+shortcut key does not work in Chrome/Linux
Santhosh Thottingal [Mon, 24 Dec 2012 14:36:01 +0000 (20:06 +0530)]
(bug 43382) Alt+shortcut key does not work in Chrome/Linux

For chrome in linux, the shortcut keys given are ALT+[KEY].
This works, but fails for keys like E, F, D etc.
ALT+E or ALT+F opens the settings menu, ALT+D highlights URL.
To make it work always with all keys , it should be presented as
ALT+SHIF+[KEY] as done for Windows.

Change-Id: I87a9d498ac99d381c31c94b03d6cc72fa265e839

11 years ago(bug 43379) History page fail gracefully if rev_len unavailable
Brian Wolff [Mon, 24 Dec 2012 07:20:06 +0000 (03:20 -0400)]
(bug 43379) History page fail gracefully if rev_len unavailable

If the length of a revision is unavailable, do not show
the page size (or char difference) instead of pretending
it is 0 and showing wrong info.

Change-Id: I2b2ca3da480e9222911ff6a91f3ab1ca4a8b9ba1

11 years agoMerge "(bug 34581) RemoveUnusedAccounts: Ignore newuser log."
IAlex [Mon, 24 Dec 2012 10:34:58 +0000 (10:34 +0000)]
Merge "(bug 34581) RemoveUnusedAccounts: Ignore newuser log."

11 years agoFixing some variable names and comment formatting - no functional changes
Kaldari [Tue, 27 Nov 2012 19:09:04 +0000 (11:09 -0800)]
Fixing some variable names and comment formatting - no functional changes

Changing $_ to $number; changing $numberpart to $integerpart

Also adding a unit test for the commafy function

Change-Id: Iaf6dd027bd70722d316d1a9c10c9913fff8300ce

11 years agoMerge "(bug 42269) namespaceDupes.php has to use the interwiki cache"
Brian Wolff [Mon, 24 Dec 2012 05:47:52 +0000 (05:47 +0000)]
Merge "(bug 42269) namespaceDupes.php has to use the interwiki cache"

11 years ago(bug 34581) RemoveUnusedAccounts: Ignore newuser log.
Jools Wills [Fri, 21 Dec 2012 21:58:00 +0000 (21:58 +0000)]
(bug 34581) RemoveUnusedAccounts: Ignore newuser log.

Patch-Source: https://bugzilla.wikimedia.org/attachment.cgi?id=11554
Change-Id: I7761a635261881f5a7ff7aaa8f8513d3d3a2149b

11 years agoMerge "Fix database access in ApiSetNotificationTimestamp"
Reedy [Sun, 23 Dec 2012 23:27:03 +0000 (23:27 +0000)]
Merge "Fix database access in ApiSetNotificationTimestamp"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 23 Dec 2012 21:30:18 +0000 (21:30 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie228538204b005bd62307a130258c23ec2e74606

11 years agoMerge "Hook to allow manipulation of image data"
jenkins-bot [Sun, 23 Dec 2012 18:01:30 +0000 (18:01 +0000)]
Merge "Hook to allow manipulation of image data"

11 years agoUpdate CREDITS
Dereckson [Sun, 23 Dec 2012 14:33:15 +0000 (15:33 +0100)]
Update CREDITS

* Fixing change I94131a69 according Matma Rex comments.
* Adding contributors with 4 changes merged.

Change-Id: I9a5190e244bd8f584dfc35963d46651b9c37e92d

11 years agoHook to allow manipulation of image data
nischayn22 [Wed, 7 Nov 2012 05:19:57 +0000 (10:49 +0530)]
Hook to allow manipulation of image data

Adds a new hook, ThumbnailBeforeProduceHTML, to ThumbnailImage::toHtml
method, in order to permit the user to manipulate the image and link
attributes before the HTML is rendered. For details see bug 41835

Note: Patch given by Victor <vdanilchenko@vistaprint.net>

Change-Id: Ib94967997e1303522d0081c7387e29af9c0ef0f0

11 years agoMerge "Improve usage of which and that"
jenkins-bot [Sun, 23 Dec 2012 16:36:14 +0000 (16:36 +0000)]
Merge "Improve usage of which and that"

11 years agoMerge "Only variables can be passed by reference..."
IAlex [Sun, 23 Dec 2012 07:19:21 +0000 (07:19 +0000)]
Merge "Only variables can be passed by reference..."

11 years agoMerge "Suppress warnings around copy call"
IAlex [Sun, 23 Dec 2012 07:10:26 +0000 (07:10 +0000)]
Merge "Suppress warnings around copy call"

11 years agoUpdate CREDITS
Dereckson [Sun, 23 Dec 2012 03:08:04 +0000 (04:08 +0100)]
Update CREDITS

* Adding Ryan Kaldari, Ori Livneh and Patrick Reilly as developers
* Adding every contributor with 5+ changes merged in core as patch contributors

[ Notes ]

(1) This operation has been facilitated by a script to compare CREDIT
    entries and the Gerrit contributors base.

    Query used: status:merged project:mediawiki/core NOT owner:L10n-bot

(2) Contributors with at least one patch merged will be added later.
    If you're concerned, to speed the process, see the next note.

(3) Names sources used:
- WMF staff & contractors list
- Name used in Git commits
- Name on meta. or mediawiki. user page

Change-Id: I94131a691ef9e0b5f999aba63169157d9e5b433b

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 22 Dec 2012 21:54:30 +0000 (21:54 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I518f7ce098fc59f3f34d2898138421895024270c

11 years agoFix database access in ApiSetNotificationTimestamp
Brad Jorsch [Sat, 22 Dec 2012 19:54:03 +0000 (14:54 -0500)]
Fix database access in ApiSetNotificationTimestamp

ApiBase::getDB() doesn't take a parameter indicating whether DB_SLAVE or
DB_MASTER is wanted. Use wfGetDB() instead.

Change-Id: Ic2057a1561ad31a0638eea6bae887982a4fe8d80

11 years agoAdd LanguageZh_hans::formatDuration() for Chinese.
Liangent [Wed, 5 Dec 2012 07:18:45 +0000 (15:18 +0800)]
Add LanguageZh_hans::formatDuration() for Chinese.

Change-Id: Idf308e82887fc1d964e08b28904e026d0b2e4217

11 years agoOnly variables can be passed by reference...
Reedy [Wed, 12 Dec 2012 20:23:47 +0000 (20:23 +0000)]
Only variables can be passed by reference...

Change-Id: Ifc0f9a25148e8728b3b57885ca241853f0c2a894

11 years agoSuppress warnings around copy call
Reedy [Mon, 17 Dec 2012 21:18:50 +0000 (21:18 +0000)]
Suppress warnings around copy call

Attempt to shut some noise in production logs

Change-Id: I4bac4027d82e4194b6ec46658d52f49038db573c
Warning:  copy(/mnt/thumbs2/wikipedia/commons/thumb/8/8c/Map_of_USA_AK_full.png/120px-Map_of_USA_AK_full.png) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in /usr/local/apache/common-local/php-1.21wmf6/includes/filebackend/FSFileBackend.php on line 254

11 years agoDocumentation improvements in ChangesList.php
Alexandre Emsenhuber [Sat, 22 Dec 2012 12:27:19 +0000 (13:27 +0100)]
Documentation improvements in ChangesList.php

Change-Id: I7e2a35d2f15ed72338779b39e7dd64f4ee5a3989

11 years agoMerge "(bug 36751) InstantCommons doesn't follow redirects"
Reedy [Sat, 22 Dec 2012 18:04:49 +0000 (18:04 +0000)]
Merge "(bug 36751) InstantCommons doesn't follow redirects"

11 years ago(bug 36751) InstantCommons doesn't follow redirects
btongminh [Sat, 22 Dec 2012 15:36:16 +0000 (16:36 +0100)]
(bug 36751) InstantCommons doesn't follow redirects

This fixes r56837: now redirects are only skipped if the redirects query
parameter is not set. This was presumably the intent of that commit, see
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/56837#code-comments

Change-Id: I27485bba9fe196211baeeb84238e4a397c620a1d

11 years agoSimplify Xml::encodeJsCall
jeroendedauw [Sat, 22 Dec 2012 00:01:27 +0000 (01:01 +0100)]
Simplify Xml::encodeJsCall

Change-Id: Idf2838a1b32170ca6336eb4a67f16cd3335218f9

11 years agoAdditional list tests for Parsoid.
Subramanya Sastry [Fri, 21 Dec 2012 23:06:30 +0000 (17:06 -0600)]
Additional list tests for Parsoid.

Change-Id: I166850e241af6c2e678d92aacb5ac767b4353397

11 years agoMerge "Use wfWikiID() instead of $wgDBname in wfIncrStats()"
jenkins-bot [Fri, 21 Dec 2012 20:47:57 +0000 (20:47 +0000)]
Merge "Use wfWikiID() instead of $wgDBname in wfIncrStats()"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 21 Dec 2012 20:06:18 +0000 (20:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I1a79e5cdde73006f67e0b43d760cf14ba76256c2