lhc/web/wiklou.git
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 [Tue, 25 Dec 2012 19:46:58 +0000 (19:46 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie29068d717b09723f85975886e4478b145862d63

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 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 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

11 years agoUse wfWikiID() instead of $wgDBname in wfIncrStats()
Alexandre Emsenhuber [Fri, 21 Dec 2012 08:26:18 +0000 (09:26 +0100)]
Use wfWikiID() instead of $wgDBname in wfIncrStats()

This allows to have distinct stat groups for people using database table prefix and
it makes wfIncrStats() consistent with ProfilerSimpleUDP that already uses wfWikiID().

Change-Id: Iecef9f490df8c5685a4887cc81dcb4a7e4d3172c

11 years ago(bug 43316) Don't fetch revision ID when a page doesn't exist.
Liangent [Fri, 21 Dec 2012 11:56:01 +0000 (19:56 +0800)]
(bug 43316) Don't fetch revision ID when a page doesn't exist.

Fixes I90446b7b.

Change-Id: I429653942bc388b6658b956d36d16398bbcf04e5

11 years agoMerge "Improve documentation of content handler stuff"
jenkins-bot [Fri, 21 Dec 2012 09:35:45 +0000 (09:35 +0000)]
Merge "Improve documentation of content handler stuff"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 20 Dec 2012 21:09:57 +0000 (21:09 +0000)]
Merge "Localisation updates from translatewiki.net."

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

Change-Id: If69487fb62fda379ce9fc2c38ca4dc6fe0c07292

11 years ago(bug 43307) L10n recache needed in LogFormatterTest::tearDown
Brad Jorsch [Thu, 20 Dec 2012 19:55:40 +0000 (14:55 -0500)]
(bug 43307) L10n recache needed in LogFormatterTest::tearDown

LogFormatterTest replaces all extension localization files in
$wgExtensionMessagesFiles with its own, and correctly restores this
variable. But it neglects to refresh the localization cache after
restoring the variable, so subsequent extension tests are missing their
localization.

Change-Id: I74809af47830a5e09c36f8fec20c9c65b1e3aa17

11 years agoImprove documentation of content handler stuff
Alexandre Emsenhuber [Thu, 20 Dec 2012 19:44:47 +0000 (20:44 +0100)]
Improve documentation of content handler stuff

- Split file and class documentation
- Add some missing file/class descriptions
- Add missing @ingroup Content

Change-Id: I7f7e3056570ca13a92f36a408c9b961c938f09a1

11 years agoSet correct context for ImageHistoryPseudoPager
umherirrender [Sun, 9 Dec 2012 18:12:42 +0000 (19:12 +0100)]
Set correct context for ImageHistoryPseudoPager

ContextSource::getContext (ImageHistoryPseudoPager): called and $context
is null. Using RequestContext::getMain() for sanity

Change-Id: I0430791a705f42ca3e5d02692070f0fb0dadc897

11 years agoMerge "(bug 41470) Use numParams in Language::formatDuration"
IAlex [Thu, 20 Dec 2012 19:15:43 +0000 (19:15 +0000)]
Merge "(bug 41470) Use numParams in Language::formatDuration"

11 years ago(bug 42269) namespaceDupes.php has to use the interwiki cache
umherirrender [Thu, 22 Nov 2012 17:14:10 +0000 (18:14 +0100)]
(bug 42269) namespaceDupes.php has to use the interwiki cache

Change-Id: I8fdf3a44bef8044d064db9d4489425e20e04d004

11 years ago(bug 41470) Use numParams in Language::formatDuration
umherirrender [Fri, 7 Dec 2012 08:54:32 +0000 (09:54 +0100)]
(bug 41470) Use numParams in Language::formatDuration

Change-Id: I3f9642d445ef6f3b3c77a824e385ce259210e46e

11 years ago(bug 32434) API allows reblocking the user without reblock parameter.
Szymon Świerkosz [Sat, 14 Apr 2012 21:43:49 +0000 (23:43 +0200)]
(bug 32434) API allows reblocking the user without reblock parameter.

This change adds special case in processing of the block form.
An unused parameter 'AlreadyBlocked' was replaced by 'Reblock'.
Parameter 'PreviousTarget' was added so API user can block him/herself.

Change-Id: I29275eb4b5f425b7382ba8b7dec050209878f81b

11 years agoadd function in ChangesList to getTimestamp without inserting it
aude [Wed, 28 Nov 2012 20:18:39 +0000 (20:18 +0000)]
add function in ChangesList to getTimestamp without inserting it

Change-Id: Iae28a6a36f3ab1de3c74cd9eba88793c85faa322

11 years agoMerge "misc style fix"
IAlex [Thu, 20 Dec 2012 15:15:17 +0000 (15:15 +0000)]
Merge "misc style fix"

11 years agomisc style fix
Antoine Musso [Thu, 20 Dec 2012 15:09:25 +0000 (16:09 +0100)]
misc style fix

* makes booleans lower case
* add spaces before open braces

Change-Id: Id88884e08bc23d7730361ee91646f54f5e16920b

11 years agoMerge "(bug 42168) Nicely handle missing revisions in ApiQueryRevisions."
jenkins-bot [Thu, 20 Dec 2012 14:59:28 +0000 (14:59 +0000)]
Merge "(bug 42168) Nicely handle missing revisions in ApiQueryRevisions."

11 years ago(bug 42168) Nicely handle missing revisions in ApiQueryRevisions.
daniel [Thu, 13 Dec 2012 16:50:45 +0000 (17:50 +0100)]
(bug 42168) Nicely handle missing revisions in ApiQueryRevisions.

ApiQueryRevisions had fatal errors when the Content object of a revision was null.
Should be fixed now.

Change-Id: Ic41d03fc55413ba7ba1c96b4f06d71d79fb7c4eb

11 years agoMerge "[JobQueue] Cleaned up DuplicateJob factory function."
jenkins-bot [Thu, 20 Dec 2012 14:00:39 +0000 (14:00 +0000)]
Merge "[JobQueue] Cleaned up DuplicateJob factory function."

11 years agoMerge "Add missing message in messages.inc and rebuild MessagesEn.php"
jenkins-bot [Thu, 20 Dec 2012 13:40:09 +0000 (13:40 +0000)]
Merge "Add missing message in messages.inc and rebuild MessagesEn.php"

11 years ago(bug 42519) Message "enotif body intro deleted" mentions revision
Federico Leva [Fri, 30 Nov 2012 08:12:47 +0000 (09:12 +0100)]
(bug 42519) Message "enotif body intro deleted" mentions revision

"See current revision" was just a way to call the article URL.
I'm leaving the URL and removing the incorrect definition.
URL is still useful to have something to click and also
to see the talk page, the excerpts from logs, etc.

Also replaced "changes" with the more generic "activity" in enotif_body.

Change-Id: If77117e208b350dc318471dc84cef339d653f10d

11 years agoFix ApiQueryLogEvents::addLogParams for unknown types using the new format
Marius Hoch [Tue, 18 Dec 2012 18:02:08 +0000 (19:02 +0100)]
Fix ApiQueryLogEvents::addLogParams for unknown types using the new format

Fixed ApiQueryLogEvents::addLogParams for unknown (probably extension)
log types which use the new log format (with keys like 4:foo:paramname).
Until now such keys we're directly put into the XML output resulting
in invalid XML (see bug 43221, which will be fixed by this). To prevent
this we just remove everything except the plain parameter name and use that
as key for the output.

Change-Id: I1a3c7ac624eb575b879d068d47d3a13c9972b1a1

11 years agoMerge "[MessageCache] Cleaned message cache load() error handling."
IAlex [Thu, 20 Dec 2012 10:59:59 +0000 (10:59 +0000)]
Merge "[MessageCache] Cleaned message cache load() error handling."

11 years agocleanup WatchedItem class
Antoine Musso [Sat, 17 Nov 2012 14:26:01 +0000 (15:26 +0100)]
cleanup WatchedItem class

* removed $id, $ns, $ti which were set on construction and replace them
  with meaningful accessor getUserId(), getTitleNs and getTitleDBkey()
* removed a commented out hack from September 2004

Change-Id: Iaa9e851516e0522492b0452430c7583fe3526ffc

11 years agoAdd an option to importImages to search subdirectories recursively
Marius Hoch [Wed, 19 Dec 2012 19:29:15 +0000 (20:29 +0100)]
Add an option to importImages to search subdirectories recursively

Change-Id: I73a0d42884c1006492cd3de912eb1dc6dab08c5e

11 years ago(bug 39957) Document $wgUnwatchedPageThreshold var
Ori Livneh [Thu, 20 Dec 2012 09:14:19 +0000 (01:14 -0800)]
(bug 39957) Document $wgUnwatchedPageThreshold var

Added in I1cb6ee22d50d871a8c7083c5b7a091d31cf640f5.

Change-Id: I35df67c66855c9aa1b8ee74ee2c57ff109823634

11 years agofix and provide more documentation in EditPage for mergeContentInto functions
aude [Fri, 26 Oct 2012 03:47:30 +0000 (03:47 +0000)]
fix and provide more documentation in EditPage for mergeContentInto functions

Change-Id: I2a5aed29a6e8ff05ddea5d46f854740b9f3b03b1

11 years agoAdd missing message in messages.inc and rebuild MessagesEn.php
Alexandre Emsenhuber [Thu, 20 Dec 2012 08:07:45 +0000 (09:07 +0100)]
Add missing message in messages.inc and rebuild MessagesEn.php

Change-Id: Ie40b26ba357db133c4aa5f0f42eaa0d56ad49bd5

11 years agoMerge "(bug 39957) Added threshold for showing number of page watchers."
Ori.livneh [Thu, 20 Dec 2012 07:11:44 +0000 (07:11 +0000)]
Merge "(bug 39957) Added threshold for showing number of page watchers."

11 years agoImproving function descriptions in Linker
Kaldari [Wed, 19 Dec 2012 22:20:54 +0000 (14:20 -0800)]
Improving function descriptions in Linker

Change-Id: Id3aff70f8b5813f80e5b44bf14cb8198b2e16d4b

11 years agoMerge "(bug 37195) Doc fix. $from and $until are arrays since 1.17."
IAlex [Thu, 20 Dec 2012 06:43:05 +0000 (06:43 +0000)]
Merge "(bug 37195) Doc fix. $from and $until are arrays since 1.17."

11 years ago(bug 39957) Added threshold for showing number of page watchers.
Tyler Anthony Romeo [Mon, 8 Oct 2012 04:04:07 +0000 (00:04 -0400)]
(bug 39957) Added threshold for showing number of page watchers.

Added configuation variable that allows bypassing the unwatchedpages
permission when the number of people watching a page is greater
than a certain threshold. The default value is false, meaning the
unwatchedpages permission is always required.

Change-Id: I1cb6ee22d50d871a8c7083c5b7a091d31cf640f5

11 years agoFixed comment typo.
Aaron Schulz [Thu, 20 Dec 2012 00:00:29 +0000 (16:00 -0800)]
Fixed comment typo.

Change-Id: I5f68cff001a6059806d1dd5e99db59754290ce71

11 years ago(bug 37195) Doc fix. $from and $until are arrays since 1.17.
Brian Wolff [Wed, 19 Dec 2012 22:59:47 +0000 (18:59 -0400)]
(bug 37195) Doc fix. $from and $until are arrays since 1.17.

This makes $from and $until of the constructor be documented as
arrays instead of strings. It also changes the default to be
an empty array instead of the empty string. In theory this
could use some back-compat code, but the change was made
way back in 1.17 so I don't think there's a point.

Change-Id: I6f995ea925960b90bc4a458db5af4f7aa768c1ae

11 years ago[MessageCache] Cleaned message cache load() error handling.
Aaron Schulz [Wed, 19 Dec 2012 20:49:54 +0000 (12:49 -0800)]
[MessageCache] Cleaned message cache load() error handling.

Change-Id: Ic8d62fa4162b54c776d934bd7106978fb36a6d32

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

Change-Id: I4c875b76b6cdb7d88d5cb6744a4d344d9f9a713b

11 years agoMerge "make rebuildtextindex script aware of content models."
jenkins-bot [Wed, 19 Dec 2012 17:44:45 +0000 (17:44 +0000)]
Merge "make rebuildtextindex script aware of content models."

11 years agoImprove usage of which and that
Amir E. Aharoni [Sat, 15 Dec 2012 17:36:34 +0000 (19:36 +0200)]
Improve usage of which and that

I tried to improve the usage of which and that in messages
and comments here, and also made a few other grammatical changes.
I think that it's an improvement, but I am not a native English
speaker, so it's possible that I made mistakes. Please review
it carefully. It will be great to invite your grammar-loving
friends to check it, too.

Change-Id: Id7d8d97950a32c126378fbb15da5ff616ebf599b

11 years agoMerge "Pass user to LogEventsList::getExcludeClause"
IAlex [Wed, 19 Dec 2012 16:05:16 +0000 (16:05 +0000)]
Merge "Pass user to LogEventsList::getExcludeClause"

11 years agoMerge "(bug 43184) bogus script path in Special:Version"
jenkins-bot [Wed, 19 Dec 2012 16:02:18 +0000 (16:02 +0000)]
Merge "(bug 43184) bogus script path in Special:Version"

11 years agoPass user to LogEventsList::getExcludeClause
umherirrender [Fri, 14 Dec 2012 14:01:32 +0000 (15:01 +0100)]
Pass user to LogEventsList::getExcludeClause

This avoids $wgUser in that method

Also removed the double strencode for logtypes,
that is already done by Database::addQuotes/Database::makeList

Change-Id: I5f7f6da06594d92375f74ca48c04d180505642a9

11 years agoMerge "Fix PEAR part of install-phpunit.sh."
jenkins-bot [Wed, 19 Dec 2012 15:56:50 +0000 (15:56 +0000)]
Merge "Fix PEAR part of install-phpunit.sh."

11 years ago(bug 43184) bogus script path in Special:Version
karun [Mon, 17 Dec 2012 22:48:53 +0000 (09:48 +1100)]
(bug 43184) bogus script path in Special:Version

Corrected display of script path change so that when the script path is
empty, we default to showing / as the path.

Change-Id: I8bb6ff820fa3f8d7c3cdd608f531c0f3c36389ca

11 years agoFixed description for async parameter in upload module
Petr Onderka [Tue, 18 Dec 2012 19:38:04 +0000 (20:38 +0100)]
Fixed description for async parameter in upload module

The description was already present,
but it used incorrect syntax, so it didn't show.

Change-Id: I7522265362f019c73523125df182366dfd274be2

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 18 Dec 2012 20:45:29 +0000 (20:45 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "(bug 39490) Add caching to InfoAction."
jenkins-bot [Tue, 18 Dec 2012 20:42:54 +0000 (20:42 +0000)]
Merge "(bug 39490) Add caching to InfoAction."

11 years ago(bug 39490) Add caching to InfoAction.
Tyler Anthony Romeo [Mon, 8 Oct 2012 03:47:46 +0000 (23:47 -0400)]
(bug 39490) Add caching to InfoAction.

Added caching to InfoAction. The cache key uses the ID of the
latest revision so it is auto-invalidated when the page is
changed. Also, the cache key is deleted whenever the page is
purged.

Change-Id: I90446b7bcb4517959605aa38eacfada2b785060b

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

Change-Id: I8881e68353fccbbd7c4b8da737045747dc5c1c05

11 years agoFix PEAR part of install-phpunit.sh.
Matthew Flaschen [Sat, 15 Dec 2012 00:51:39 +0000 (16:51 -0800)]
Fix PEAR part of install-phpunit.sh.

* Discover additional channel, update, and use alldeps.
* Remove obsolete pear.symfony-project.com
* Per https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Installing_PHPUnit#Using_PEAR

Change-Id: I7f348c967c1526736ec7f34d610d315f8aabd504

11 years agoMerge "(bug 43218) Fixing PHP notice: undefined SERVER_PROTOCOL key"
jenkins-bot [Tue, 18 Dec 2012 14:51:57 +0000 (14:51 +0000)]
Merge "(bug 43218) Fixing PHP notice: undefined SERVER_PROTOCOL key"

11 years ago(bug 43218) Fixing PHP notice: undefined SERVER_PROTOCOL key
Dereckson [Tue, 18 Dec 2012 00:31:03 +0000 (01:31 +0100)]
(bug 43218) Fixing PHP notice: undefined SERVER_PROTOCOL key

Change-Id: I1ce7605a7c8503aed37ed9b3e7c3f3c13083db6f

11 years agoMerge "Update docs"
jenkins-bot [Tue, 18 Dec 2012 14:33:24 +0000 (14:33 +0000)]
Merge "Update docs"

11 years agoDocument ResourceLoaderWikiModule::getPages.
Matthew Flaschen [Tue, 18 Dec 2012 08:31:59 +0000 (03:31 -0500)]
Document ResourceLoaderWikiModule::getPages.

Change-Id: Id3b3df20efcec90dfcc7cd496aecbe74e5cd9915

11 years ago[JobQueue] Cleaned up DuplicateJob factory function.
Aaron Schulz [Tue, 18 Dec 2012 01:11:15 +0000 (17:11 -0800)]
[JobQueue] Cleaned up DuplicateJob factory function.

Change-Id: If2303776bdbc9b78a07907e7b290c2da5af7e493

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 17 Dec 2012 21:10:24 +0000 (21:10 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0ad670d4b2dc9410e0b1021c29d79cd209209b78

11 years agoSuppress warnings around unlink call
Reedy [Mon, 17 Dec 2012 20:27:05 +0000 (20:27 +0000)]
Suppress warnings around unlink call

Attempt to shut a lot of noise in production logs

e.g.
1 Warning:  unlink(/mnt/thumbs2/wikipedia/commons/thumb/f/f2/Members_only_jacket.jpg/800px-Members_only_jacket.jpg) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /usr/lo
cal/apache/common-local/php-1.21wmf6/includes/filebackend/FSFileBackend.php on line 422

Change-Id: I9e1407c4b11301f468f8e291105955ade9a731d0

11 years agoMerge "(bug 43096) Fix querying suppression logs"
jenkins-bot [Mon, 17 Dec 2012 20:16:11 +0000 (20:16 +0000)]
Merge "(bug 43096) Fix querying suppression logs"

11 years agoMerge "(bug 43207) Fix regression in API generator=duplicatefiles"
jenkins-bot [Mon, 17 Dec 2012 20:09:24 +0000 (20:09 +0000)]
Merge "(bug 43207) Fix regression in API generator=duplicatefiles"

11 years ago(bug 43096) Fix querying suppression logs
Alex Monk [Sun, 16 Dec 2012 13:28:50 +0000 (13:28 +0000)]
(bug 43096) Fix querying suppression logs

Change-Id: Ia9709ed5f694e07b7544887b49c99db5ed7063df

11 years agoMerge "use null rather then false and doc fix"
jenkins-bot [Mon, 17 Dec 2012 19:46:59 +0000 (19:46 +0000)]
Merge "use null rather then false and doc fix"

11 years agoMerge "(bug 43177) API: Fix regression in case handling for sha1 params"
jenkins-bot [Mon, 17 Dec 2012 19:45:15 +0000 (19:45 +0000)]
Merge "(bug 43177) API: Fix regression in case handling for sha1 params"

11 years agoMerge "(bug 43137) Don't return the sha1 of revisions through the API if the content...
jenkins-bot [Mon, 17 Dec 2012 19:38:33 +0000 (19:38 +0000)]
Merge "(bug 43137) Don't return the sha1 of revisions through the API if the content is revdel'd"

11 years ago(bug 43207) Fix regression in API generator=duplicatefiles
Brad Jorsch [Mon, 17 Dec 2012 19:11:47 +0000 (14:11 -0500)]
(bug 43207) Fix regression in API generator=duplicatefiles

Prior to change I745cae7a, generator=duplicatefiles would return all the
files that were duplicates of the passed files. Since then, it will
return only one of the input files if any duplicates are found, possibly
one that doesn't even have duplicates.

The problem is the use of a wrong variable.

Change-Id: I8e8493718ab1f7f5cb6ae718790738a7cf3c72c7

11 years ago(bug 43137) Don't return the sha1 of revisions through the API if the content is...
Alex Monk [Fri, 14 Dec 2012 22:33:06 +0000 (22:33 +0000)]
(bug 43137) Don't return the sha1 of revisions through the API if the content is revdel'd

Change-Id: Ic2cad08cdae428d04dbdc31665c531d8a4759cbb

11 years ago(bug 43177) API: Fix regression in case handling for sha1 params
Brad Jorsch [Sun, 16 Dec 2012 22:45:31 +0000 (17:45 -0500)]
(bug 43177) API: Fix regression in case handling for sha1 params

While the change in Ic980fd71 makes sense since MediaWiki stores the
hashes with lowercase letters, historically aisha1 and fasha1 accepted
both upper and lowercase because wfBaseConvert accepts both.

To avoid a backwards compatibility break, let's adjust the code to
explicitly lowercase the input for those parameters. And for good
measure, let's also accept both cases for the corresponding sha1base36
parameters.

Change-Id: I704935193398c722c22a302dc9d23f2c0e2e3e39

11 years agoUpdate docs
Siebrand Mazeland [Mon, 17 Dec 2012 10:23:02 +0000 (11:23 +0100)]
Update docs

Change-Id: I96c04c4ce9384816e120baef3572dfc4fd216b9a

11 years agoFix the little documentation that FormOptions::consumeValue() has
Siebrand Mazeland [Sun, 16 Dec 2012 21:14:01 +0000 (22:14 +0100)]
Fix the little documentation that FormOptions::consumeValue() has

Change-Id: I9a4bfaace4f19ba5e3e8a405118fe1bae3a1696d

11 years ago(bug 42184) Send second variable for large-variable message
Kunal Mehta [Mon, 17 Dec 2012 06:24:11 +0000 (00:24 -0600)]
(bug 42184) Send second variable for large-variable message

Change-Id: Iad4bb0d0ab25248ec6296af4f39401eeb59c306f

11 years agoMerge "ResourceLoader: Move safeFilemtime() to ResourceLoaderModule."
jenkins-bot [Mon, 17 Dec 2012 00:04:22 +0000 (00:04 +0000)]
Merge "ResourceLoader: Move safeFilemtime() to ResourceLoaderModule."

11 years agoResourceLoader: Move safeFilemtime() to ResourceLoaderModule.
Timo Tijhof [Wed, 5 Dec 2012 07:37:48 +0000 (08:37 +0100)]
ResourceLoader: Move safeFilemtime() to ResourceLoaderModule.

This is a useful method not just for inside and sub classes of
ResourceLoaderFileModule (i.e. it could've been useful in
VisualEditor's ResourceLoaderModule class as well)

Also moved up getTargets() to be in the right section (looking at
the file as a whole).

Change-Id: If696ffbdc5aa7f0a51603bcf9d52adab38b9c686