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

11 years agoMerge "applying code conventions and cleanup in mediawiki.special.*"
jenkins-bot [Sun, 16 Dec 2012 21:38:27 +0000 (21:38 +0000)]
Merge "applying code conventions and cleanup in mediawiki.special.*"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 16 Dec 2012 20:58:30 +0000 (20:58 +0000)]
Merge "Localisation updates from translatewiki.net."

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

Change-Id: Iecaef86923bb32e102dd69ec12651824565bc3ed

11 years ago(bug 41342) jquery.suggestions: Call cancel before fetching.
MatmaRex [Sun, 9 Dec 2012 20:08:49 +0000 (21:08 +0100)]
(bug 41342) jquery.suggestions: Call cancel before fetching.

This caused race conditions in the calling code, if it used AJAX
and they completed in different order than they were started.

For example in mediawiki.searchSuggest, when one slowly types
"wikipedia", 9 requests get sent (suggestions for "w", "wi",
"wik", etc.), but they might not necessarily arrive in the same
order, especially on slow (e.g. mobile) connections.

Then you get the race condition effect - suggestions for
"wikipedia" flash briefly and then are replaced by suggestions for
"wik", even though the bolding is correct.

This commit fixes the issue by using a function that was already
present, that calls the callback as well as clearing the internal
timeout, which for some reason wasn't used in this code path.

Change-Id: I880a61e5e45a64bea6d679ed160c4be3da085dfa

11 years agoMerge "Remove nocreatetitle"
jenkins-bot [Sun, 16 Dec 2012 19:13:11 +0000 (19:13 +0000)]
Merge "Remove nocreatetitle"

11 years agoRemove nocreatetitle
Amir E. Aharoni [Sun, 16 Dec 2012 17:31:16 +0000 (19:31 +0200)]
Remove nocreatetitle

This message was removed from OutputPage in commit 3801a3cd
and it doesn't appear to be used elsewhere.

Change-Id: Iba5de5ba6f6e699bac5b1e21efd8869006398f1b

11 years agoapplying code conventions and cleanup in mediawiki.special.*
MatmaRex [Sun, 16 Dec 2012 14:15:49 +0000 (15:15 +0100)]
applying code conventions and cleanup in mediawiki.special.*

Using standard closures per [[CC/JS]], typos in comments, indentation
inconsistencies, some other minor changes.

Change-Id: I53eef75006d87c8b55d6780d36165317066d1368

11 years ago(bug 28401) Make RC en RCL honour options for rss/atom
mrbluesky [Thu, 13 Dec 2012 21:59:02 +0000 (22:59 +0100)]
(bug 28401) Make RC en RCL honour options for rss/atom

RecentChanges and RecentChangesLinked should link to atom/rss feeds using the same options as specified for the pages themselves. E.g. if somebody is looking at Special:RecentChanges&hideliu=1&namespace=1 the feed(s) should link to Special:RecentChanges&feed=atom&hideliu=1&namespace=1. All options available on RC and RCL are already supported by their feeds, except the maximum number of changes in feeds is bound by $wgFeedLimit.

Change-Id: I8fb00ccd7efdd962a8a42f0bce3eac5177e2cfbd

11 years agoMake wfSuppressWarnings kill E_STRICT in PHP 5.4+
Brian Wolff [Thu, 13 Dec 2012 22:16:22 +0000 (18:16 -0400)]
Make wfSuppressWarnings kill E_STRICT in PHP 5.4+

Since PHP 5.4+ E_STRICT is now included in E_ALL. Hence
wfSuppressWarnings was not filtering E_STRICT.

There was some complaints on project:support_desk about
timezone warnings popping up. See also bug 43092

Change-Id: Ie1ace158dac1733e6b2b2c1d533004d9bcab8c80

11 years agoTrimming 'addedwatchtext'. The previous text was too long and overly detailed.
Kaldari [Fri, 14 Dec 2012 23:11:30 +0000 (15:11 -0800)]
Trimming 'addedwatchtext'. The previous text was too long and overly detailed.

Change-Id: If7c5ba8e2a7dd7e6e628118a72f3c4527528e4c4

11 years agoMoved LocalisationCache under /cache.
Aaron Schulz [Fri, 14 Dec 2012 21:18:43 +0000 (13:18 -0800)]
Moved LocalisationCache under /cache.

Change-Id: I54b230376ed682d6a6b7d6fa4fd5ab133c8c8b1b

11 years ago(Bug 35987) Clarify change password on Special:ChangeEmail
Pranav Ravichandran [Fri, 27 Apr 2012 04:16:00 +0000 (04:16 +0000)]
(Bug 35987) Clarify change password on Special:ChangeEmail

Continuing Ravichandran's work, I fixed issues raised by IAlex.

Change-Id: Ib8bec70bf0aa451d26971569214b4b13c2abddff

11 years agoMerge "drop "@fixed" annotations in CologneBlue skin"
jenkins-bot [Sun, 16 Dec 2012 00:23:29 +0000 (00:23 +0000)]
Merge "drop "@fixed" annotations in CologneBlue skin"

11 years agoxLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 15 Dec 2012 23:44:58 +0000 (23:44 +0000)]
xLocalisation updates from translatewiki.net.

Change-Id: I1167ecea2f384d226f18dcba864e6ea69c40381d

11 years agodrop "@fixed" annotations in CologneBlue skin
MatmaRex [Sat, 15 Dec 2012 23:27:23 +0000 (00:27 +0100)]
drop "@fixed" annotations in CologneBlue skin

These were only useful for me when I was refactoring the code,
and are not needed anymore.

Change-Id: I30aca1619817102a412f9d3cf83da8cf52fa62af

11 years agoAdd new message key from I28ef70f7 to maintenane file
raymond [Sat, 15 Dec 2012 22:44:55 +0000 (23:44 +0100)]
Add new message key from  I28ef70f7 to maintenane file

Change-Id: I56c3d200ff22b12c395ccfefba9c163f250f6348

11 years agouse null rather then false and doc fix
jeroendedauw [Thu, 6 Dec 2012 22:36:42 +0000 (23:36 +0100)]
use null rather then false and doc fix

Change-Id: Ifb8798a66d32da36fc8134e2039ec880c0f1dc1a

11 years agoRemoved commas before 'because'
Amir E. Aharoni [Sat, 15 Dec 2012 17:23:46 +0000 (19:23 +0200)]
Removed commas before 'because'

If I understand correctly, a comma is not needed before because
in these messages. It's possible that I'm wrong, however, so
if you know English punctuation well, please review this.
You can also ask your grammar-sensitive friends.

Change-Id: Ic9c1e42be28ce6d23bdbd15714f1c512a888ed75

11 years agoMerge "Add some entries removed in I41f1995d back."
jenkins-bot [Sat, 15 Dec 2012 10:01:54 +0000 (10:01 +0000)]
Merge "Add some entries removed in I41f1995d back."

11 years agoMerge "(bug 42787) Make import robust against corrupt content."
jenkins-bot [Sat, 15 Dec 2012 01:14:53 +0000 (01:14 +0000)]
Merge "(bug 42787) Make import robust against corrupt content."

11 years agoUse $IP instead of relative paths.
Aaron Schulz [Sat, 15 Dec 2012 00:06:36 +0000 (16:06 -0800)]
Use $IP instead of relative paths.

Change-Id: Ic49ed466d3974c1640378831f0db61fda89f4e9e

11 years agoUse $IP instead of hard-coded relative path.
Aaron Schulz [Fri, 14 Dec 2012 22:06:20 +0000 (14:06 -0800)]
Use $IP instead of hard-coded relative path.

Change-Id: I6e631116ca73896527eee7a607204071c1467414

11 years agoMerge "jquery.badge: Add ability to display the number zero."
Bsitu [Fri, 14 Dec 2012 22:10:52 +0000 (22:10 +0000)]
Merge "jquery.badge: Add ability to display the number zero."

11 years agojquery.badge: Add ability to display the number zero.
Timo Tijhof [Fri, 14 Dec 2012 21:13:23 +0000 (22:13 +0100)]
jquery.badge: Add ability to display the number zero.

This is needed by Echo extension.

Follows-up Id5e7cbb1.

Change-Id: I88c5f819c42d9fe1468be6b2cf74413d7d6d6907

11 years ago[LockManager] Moved ScopedLock to its own file.
Aaron Schulz [Fri, 14 Dec 2012 21:06:39 +0000 (13:06 -0800)]
[LockManager] Moved ScopedLock to its own file.

Change-Id: I7430604d3a23a25e8b82036b022336a73cbbc996

11 years agoMerge "Revert "Adding ability of jQuery badge to display the number zero if requested.""
Krinkle [Fri, 14 Dec 2012 21:02:17 +0000 (21:02 +0000)]
Merge "Revert "Adding ability of jQuery badge to display the number zero if requested.""

11 years agoRevert "Adding ability of jQuery badge to display the number zero if requested."
Krinkle [Fri, 14 Dec 2012 21:02:06 +0000 (21:02 +0000)]
Revert "Adding ability of jQuery badge to display the number zero if requested."

This reverts commit b170b56f09d1ec5ab5e34e997447546239e008fd

11 years agoMerge "(bug 37714) Use log type in target object when deleting logs of the same type"
CSteipp [Fri, 14 Dec 2012 20:58:31 +0000 (20:58 +0000)]
Merge "(bug 37714) Use log type in target object when deleting logs of the same type"

11 years agoMerge "Test a newline-only template parameter"
Subramanya Sastry [Fri, 14 Dec 2012 20:46:07 +0000 (20:46 +0000)]
Merge "Test a newline-only template parameter"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 14 Dec 2012 20:39:51 +0000 (20:39 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoTest a newline-only template parameter
Gabriel Wicke [Fri, 14 Dec 2012 19:54:55 +0000 (11:54 -0800)]
Test a newline-only template parameter

Change-Id: I99f17767e0aed915e84962a72403ebfb3b1307be

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

Change-Id: I55a9766a29e8bb5513bcb472cad30c4ed979283c

11 years agoMerge "Adding ability of jQuery badge to display the number zero if requested."
Bsitu [Fri, 14 Dec 2012 20:12:04 +0000 (20:12 +0000)]
Merge "Adding ability of jQuery badge to display the number zero if requested."

11 years agoMerge "Changed LoginForm::addNewaccountInternal() to return Status."
jenkins-bot [Fri, 14 Dec 2012 19:48:35 +0000 (19:48 +0000)]
Merge "Changed LoginForm::addNewaccountInternal() to return Status."

11 years agoAdd link to localisation instructions in the installer
Federico Leva [Fri, 14 Dec 2012 17:50:05 +0000 (18:50 +0100)]
Add link to localisation instructions in the installer

The installer didn't give any clue on how to localise MediaWiki,
while localisation is the main "customisation" need for a wiki.
"Localisation" now does have some human-redable sections with pointers.

Change-Id: Ia08eaababcaaf281cae6d8b509cead3a66a62111

11 years agoMerge "(minor) Always use getSites() to get sites."
jenkins-bot [Fri, 14 Dec 2012 16:35:08 +0000 (16:35 +0000)]
Merge "(minor) Always use getSites() to get sites."

11 years agoMerge "Removed references to DB ignoreErrors() function."
jenkins-bot [Fri, 14 Dec 2012 15:49:53 +0000 (15:49 +0000)]
Merge "Removed references to DB ignoreErrors() function."

11 years agoMerge "(bug 42639) Fix API action=options for multiselect prefs"
jenkins-bot [Fri, 14 Dec 2012 14:55:04 +0000 (14:55 +0000)]
Merge "(bug 42639) Fix API action=options for multiselect prefs"

11 years agoMerge "(bug 42089) meta=siteinfo should output the default content model"
Daniel Kinzler [Fri, 14 Dec 2012 10:29:28 +0000 (10:29 +0000)]
Merge "(bug 42089) meta=siteinfo should output the default content model"

11 years agoMerge "(bug 40679) Set $wgSecureLogin to false for $wgServers with schemes."
jenkins-bot [Fri, 14 Dec 2012 02:08:45 +0000 (02:08 +0000)]
Merge "(bug 40679) Set $wgSecureLogin to false for $wgServers with schemes."

11 years ago(bug 40679) Set $wgSecureLogin to false for $wgServers with schemes.
Tyler Anthony Romeo [Mon, 8 Oct 2012 04:21:08 +0000 (00:21 -0400)]
(bug 40679) Set $wgSecureLogin to false for $wgServers with schemes.

When $wgServer has a scheme, force $wgSecureLogin to false in order
to stop infinite redirects when trying to go to the login page.

Change-Id: I5792eb1a54c7b6279aad0531cedf9f7b4bf94e6e

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

Change-Id: I3c615ab20c29b64a6302763124df9f976ba0fa91

11 years ago(bug 42089) meta=siteinfo should output the default content model
umherirrender [Thu, 13 Dec 2012 20:05:15 +0000 (21:05 +0100)]
(bug 42089) meta=siteinfo should output the default content model

Adding MWNamespace::getNamespaceContentModel which returns the namespace
content model from the global, if set

Change-Id: Ie012fd0ff846d50cae8081fc32b76900dbcad209

11 years agoChanged LoginForm::addNewaccountInternal() to return Status.
parent5446 [Tue, 7 Aug 2012 14:46:31 +0000 (10:46 -0400)]
Changed LoginForm::addNewaccountInternal() to return Status.

Rather than calling mainLoginForm() and returning false,
the addNewaccountInternal() function now returns a Status
on failure. mainLoginForm() is then called in addNewAccount()
and addNewAccountMailPassword() instead. This allows for
processing of the account creation form without submitting
anything to $wgOut.

Change-Id: I402c6bebcfe276233cc1f9e16efbe55a034b2181

11 years agoMerge "Test wiki tables with a lot of comments"
Subramanya Sastry [Thu, 13 Dec 2012 17:13:14 +0000 (17:13 +0000)]
Merge "Test wiki tables with a lot of comments"

11 years agoMake --wiki work with phpunit.php.
daniel [Mon, 10 Dec 2012 11:03:13 +0000 (12:03 +0100)]
Make --wiki work with phpunit.php.

This introduces --wiki as a dummy paramter to the PHPUnit job, so it no
longer complains and errors our. The parameter is already picked up
correctly be Maintenance.php.

I have a wiki family setup with a Wikibase repo and client using the
same install base, and the same LanguageSettings.php. Different
databases etc are triggered based on the request URI or, for maintenance
scripts, by the --wiki paramters.

I can run maintenance scripts etc against the client setup using --wiki
client. But how do I run unit tests against the client setup? If I try:

  $ phpunit.php --wiki client
  unrecognized option --wiki
  $

That's because after Maintenances.inc (correctly) processes the command
line parameters, phpunit also tries to process them - and complains,
because it doesn't know --wiki.

This change introduces --wiki as a dummy parameter to phpunit to work
around this. With this patch applied, I can run unit tests against my
client setup using phpunit.php --wiki client as expected.

Change-Id: I6cf319cdbdf55a541c986838d370aa324994ae78

11 years agoTest wiki tables with a lot of comments
Gabriel Wicke [Thu, 13 Dec 2012 01:36:53 +0000 (17:36 -0800)]
Test wiki tables with a lot of comments

Change-Id: I222071df9d3a69ea4f0f8eaebc2242e038ff2391

11 years agoMerge "Upstream: Upgrade jQuery JSON from 2.3 to 2.4.0."
Trevor Parscal [Thu, 13 Dec 2012 00:35:55 +0000 (00:35 +0000)]
Merge "Upstream: Upgrade jQuery JSON from 2.3 to 2.4.0."

11 years ago[JobQueue] Kill ORDER BY in job claim function.
Aaron Schulz [Wed, 12 Dec 2012 23:37:21 +0000 (15:37 -0800)]
[JobQueue] Kill ORDER BY in job claim function.

* Although indexed, this slows down for some reason. This started
  to waste master CPU time for wmf wikis with hundreds of thousands
  of jobs. Given how the DB scans the index, the function still
  works correctly without the ORDER BY.

Change-Id: I6ba6cc65d0023de3b9d9df0cfcd6a403289c9848

11 years agoMerge "Revert "(bug 29115) Add redirect target value on page info""
Reedy [Wed, 12 Dec 2012 21:52:57 +0000 (21:52 +0000)]
Merge "Revert "(bug 29115) Add redirect target value on page info""

11 years agoRevert "(bug 29115) Add redirect target value on page info"
Reedy [Wed, 12 Dec 2012 21:51:54 +0000 (21:51 +0000)]
Revert "(bug 29115) Add redirect target value on page info"

This reverts commit 0c6ba8c61d73f995d32e5c8348833ebedd90ea4a

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

Change-Id: I1b38848d117f1d4c376bbe35a7394b8172ebf8f5

11 years agoMerge "Fixed SiteArray serialization"
Daniel Kinzler [Wed, 12 Dec 2012 20:14:18 +0000 (20:14 +0000)]
Merge "Fixed SiteArray serialization"

11 years agoUpstream: Upgrade jQuery JSON from 2.3 to 2.4.0.
Timo Tijhof [Wed, 12 Dec 2012 20:13:03 +0000 (21:13 +0100)]
Upstream: Upgrade jQuery JSON from 2.3 to 2.4.0.

* http://code.google.com/p/jquery-json/downloads/list

Change-Id: I882f232063d320370451003631c6fa369f08059f

11 years agoAdding ability of jQuery badge to display the number zero if requested.
Kaldari [Wed, 12 Dec 2012 01:09:47 +0000 (17:09 -0800)]
Adding ability of jQuery badge to display the number zero if requested.

This is needed by Echo extension.

Change-Id: Id5e7cbb1aacbad1624474a6d9fac9b95cd1bc275

11 years ago(bug 37714) Use log type in target object when deleting logs of the same type
Alex Monk [Sat, 13 Oct 2012 13:52:49 +0000 (14:52 +0100)]
(bug 37714) Use log type in target object when deleting logs of the same type

Change-Id: I8d721ef5784df624dc0de57adcdf75a4bc3fb604

11 years agoMerge "(bug 42832) Fixed cookie security when not wpStickHTTPS."
jenkins-bot [Wed, 12 Dec 2012 19:05:03 +0000 (19:05 +0000)]
Merge "(bug 42832) Fixed cookie security when not wpStickHTTPS."

11 years agoFixed SiteArray serialization
jeroendedauw [Wed, 12 Dec 2012 19:00:03 +0000 (20:00 +0100)]
Fixed SiteArray serialization

Change-Id: I9844236b8720d96f99aef788ab023c522f993045

11 years agoMerge "(bug 42211) Fix the display of some user rights log entries"
jenkins-bot [Wed, 12 Dec 2012 18:35:05 +0000 (18:35 +0000)]
Merge "(bug 42211) Fix the display of some user rights log entries"

11 years ago(bug 42832) Fixed cookie security when not wpStickHTTPS.
Tyler Anthony Romeo [Fri, 7 Dec 2012 19:54:20 +0000 (14:54 -0500)]
(bug 42832) Fixed cookie security when not wpStickHTTPS.

When a user goes to a secure login page, but does not
want to stick to HTTPS, reset the session so that all
session cookies are not secure otherwise the session
won't be setup on HTTP.

Change-Id: I54ba02b723442f6d8b585f0f86a572b56be06596

11 years ago(minor) Always use getSites() to get sites.
daniel [Wed, 12 Dec 2012 14:13:23 +0000 (15:13 +0100)]
(minor) Always use getSites() to get sites.

Change-Id: If6acf458a762a3de6096f35f231d50ba59ed3256

11 years agoMerge "(Bug 42616) Remove extra newline from redirect wikitext"
Daniel Kinzler [Wed, 12 Dec 2012 13:25:48 +0000 (13:25 +0000)]
Merge "(Bug 42616) Remove extra newline from redirect wikitext"

11 years ago(bug 42787) Make import robust against corrupt content.
daniel [Wed, 12 Dec 2012 11:47:40 +0000 (12:47 +0100)]
(bug 42787) Make import robust against corrupt content.

This catches serialization exceptions caused by corrupt or mis-reported
non-text content.

Change-Id: I28ef70f716b1aade1b837ca480c49b1826fa9e26

11 years ago(bug 41146) DatabaseOracle no more rely on mbstring
lupo [Fri, 16 Nov 2012 12:52:55 +0000 (13:52 +0100)]
(bug 41146) DatabaseOracle no more rely on mbstring

DatabaseOracle class has been using mb_check_encoding which might not
always be available.  We now rely on the StringUtils::isUtf8() method
implemented by I4cf4dfe2.

Change-Id: I5a9ffa23e3e738e4886d61e85974b0af25058308

11 years agoabstract utf8 validation fallback
Antoine Musso [Fri, 16 Nov 2012 12:47:10 +0000 (13:47 +0100)]
abstract utf8 validation fallback

Language class had a code snippet to verify whether a text is valid
UTF-8 though that could not be used from another place. The snippet use
mb_check_encoding() and fallback to some regex whenever mbstring is not
available.

* introduce StringUtils::isUtf8() which is mostly code moved out of the
  language class.
* Enhance regex readability by using an expanded regex (//x)
* Made the regex to recognize longer sequences
* Add some unit tests to the mbstring and the PHP native implementation
* An optional second parameter can be passed to isUtf8() to force the
  use of our PHP implementation. This is used for unit testing.

Change-Id: I4cf4dfe2eb02f046db1726f4654ba649e01419f2

11 years ago(minor) use wfDebugLog consistently.
daniel [Mon, 10 Dec 2012 10:59:02 +0000 (11:59 +0100)]
(minor) use wfDebugLog consistently.

ExternalStoreDB used a mixture of wfDebug() and wfDebugLog().

Change-Id: Ifea99cce5accd01bce85b9d877a8d8fc5ddbd98a

11 years ago(bug 24620) Add types and test for LogFormatter
jan [Mon, 22 Oct 2012 09:00:15 +0000 (11:00 +0200)]
(bug 24620) Add types and test for LogFormatter

This change adds types to LogFormatter like "msg" so log values
(parameters for the log message) can be formated as e.g. a message in
user or content language.

This change adds tests for LogFormatter, too. Tested are the normal log
params, the log params with type and the output of the comment.

This change repairs the changes I6a56c204 and I7218a173

Change-Id: Ief3665056b3bb613ff709821306017ee7967c444

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 11 Dec 2012 22:57:52 +0000 (22:57 +0000)]
Merge "Localisation updates from translatewiki.net."

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

Change-Id: I381b6e39f31bfea58a55241342c8401750e0c04d

11 years ago[Upload] Improvements to async stash uploading.
Aaron Schulz [Tue, 11 Dec 2012 22:29:33 +0000 (14:29 -0800)]
[Upload] Improvements to async stash uploading.

* Added a "stage" field to the status info. This lets clients detect
  if the process failed to even start much more quickly.
* Actually unset the status from $_SESSION if set to false.

Change-Id: I29703f14625b1b10e6413db27a3964324b4679e6

11 years agoRemoved references to DB ignoreErrors() function.
Aaron Schulz [Tue, 11 Dec 2012 19:24:12 +0000 (11:24 -0800)]
Removed references to DB ignoreErrors() function.

Change-Id: I9441d897d45bca189c17b8bcca4ea7b3469af8b0