lhc/web/wiklou.git
11 years agoMerge "Added line to rel notes about CacheHelper class"
awjrichards [Fri, 3 Aug 2012 23:19:01 +0000 (23:19 +0000)]
Merge "Added line to rel notes about CacheHelper class"

11 years agoMerge "Bug 38676 - password-change-forbidden isn't properly localized"
awjrichards [Fri, 3 Aug 2012 23:14:27 +0000 (23:14 +0000)]
Merge "Bug 38676 - password-change-forbidden isn't properly localized"

11 years agoMerge "use FileRepo api to delete and check for files"
Aaron Schulz [Fri, 3 Aug 2012 23:05:21 +0000 (23:05 +0000)]
Merge "use FileRepo api to delete and check for files"

11 years agoMerge "Make rebuildLocalisationCache.php also obey --memory-limit if set."
IAlex [Fri, 3 Aug 2012 21:42:59 +0000 (21:42 +0000)]
Merge "Make rebuildLocalisationCache.php also obey --memory-limit if set."

11 years agoMerge "Fixes to Special:Mostlinkedtemplates."
Reedy [Fri, 3 Aug 2012 21:04:30 +0000 (21:04 +0000)]
Merge "Fixes to Special:Mostlinkedtemplates."

11 years agoMerge "Use WebRequest instead of $_SERVER in ApiMain."
Reedy [Fri, 3 Aug 2012 20:59:04 +0000 (20:59 +0000)]
Merge "Use WebRequest instead of $_SERVER in ApiMain."

11 years agoMerge "Change from wgMiserMode to isCached on Special:WithoutInterwikis"
IAlex [Fri, 3 Aug 2012 20:27:26 +0000 (20:27 +0000)]
Merge "Change from wgMiserMode to isCached on Special:WithoutInterwikis"

11 years agoMerge "Introduce default expiry time for special:block (bug 32178)"
Aaron Schulz [Fri, 3 Aug 2012 19:09:50 +0000 (19:09 +0000)]
Merge "Introduce default expiry time for special:block (bug 32178)"

11 years agoMerge "(bug 38351) Image alignment should follow the page content language"
Catrope [Fri, 3 Aug 2012 18:22:42 +0000 (18:22 +0000)]
Merge "(bug 38351) Image alignment should follow the page content language"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 3 Aug 2012 16:16:10 +0000 (16:16 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ieac1b68dd05ab55e1129fb94f32354fc86143aa2

11 years agoChange from wgMiserMode to isCached on Special:WithoutInterwikis
umherirrender [Fri, 3 Aug 2012 11:03:08 +0000 (13:03 +0200)]
Change from wgMiserMode to isCached on Special:WithoutInterwikis

This makes it clearer why the input from is not needed.
It does not change anything, because isCached checks isExpensive and
wgMiserMode and isExpensive is true here.

Change-Id: Ib5f775d5ff20b53b91732ca544ec273543afe7d1

11 years agolink to HTMLForm doc on the wiki
Antoine Musso [Thu, 2 Aug 2012 16:26:08 +0000 (18:26 +0200)]
link to HTMLForm doc on the wiki

URL provided by Clément Dietschy.

Change-Id: Ibea0266618c09b2dfbac5c356beba93dd8bebba2

11 years agoFixes to Special:Mostlinkedtemplates.
Alexandre Emsenhuber [Thu, 2 Aug 2012 20:36:45 +0000 (22:36 +0200)]
Fixes to Special:Mostlinkedtemplates.

- Don't execute the LinkBatch if there are no rows.
- Checks for invalid titles and output a message
  if this is the case.

Change-Id: Ibd3794fbe165b13f3b386a9dabe4b6fabb7ba1d8

11 years agoMerge "Fix bug causing API to list anons as autoconfirmed in certain cases"
Reedy [Thu, 2 Aug 2012 23:20:54 +0000 (23:20 +0000)]
Merge "Fix bug causing API to list anons as autoconfirmed in certain cases"

11 years agoMerge "Fix jquery.localize tests, change number of expected assertions"
Krinkle [Thu, 2 Aug 2012 23:19:31 +0000 (23:19 +0000)]
Merge "Fix jquery.localize tests, change number of expected assertions"

11 years ago(bug 38351) Image alignment should follow the page content language
robin [Wed, 1 Aug 2012 03:34:32 +0000 (05:34 +0200)]
(bug 38351) Image alignment should follow the page content language

The alignment of image thumbs should follow the page content language instead of the wiki content language.
For this it needs the parser context, and because it makes sense to have it as first parameter, I renamed makeImageLink2() to makeImageLink(), the 2 seemed to be redundant anyway.
The old function name keeps the old behaviour, but can be removed quite soon since almost no extension is using it.

Change-Id: I0c35b06a85528dcc43fdd0578dc9b327c495cf4a

11 years agoMake rebuildLocalisationCache.php also obey --memory-limit if set.
Reedy [Thu, 2 Aug 2012 22:35:20 +0000 (23:35 +0100)]
Make rebuildLocalisationCache.php also obey --memory-limit if set.

Same as https://gerrit.wikimedia.org/r/17473 for runJobs.php

Change-Id: I352df6c2f46606fe575ef5f52a39175b4aad9f75

11 years ago* (bug 38953) --memory-limit switch not working for runJobs.php.
Reedy [Thu, 2 Aug 2012 22:17:50 +0000 (23:17 +0100)]
* (bug 38953) --memory-limit switch not working for runJobs.php.

In runJobs.php the memory limit was hardcoded to 150M, so passing
--memory-limit would have no difference. Changed to using what was
passed as --memory-limit if something was, else just use the 150M
as usual

Change-Id: I3e3bafc6a0fe4e88792a65f01b432c8f4f6677cf

11 years ago(bug 38904) prop=revisions&rvstart=... should not blow up when continuing
Brad Jorsch [Wed, 1 Aug 2012 02:45:13 +0000 (22:45 -0400)]
(bug 38904) prop=revisions&rvstart=... should not blow up when continuing

A query using prop=revisions in enum mode will return a query-continue
using rvstartid. If the original query included rvstart, the client will
therefore send both the rvstart from the original query and the
rvstartid from the query-continue. And the API will then return an error
that rvstart and rvstartid may not both be used in the same query.

Since there is no way for the API to instruct the client to ''not'' send
the rvstart when continuing, we'll just use rvcontinue instead. Then the
module can ignore both rvstart and rvstartid to get the intended
continuation.

Change-Id: I145215996b8a7818196cdfb583a1fdacae973fee

11 years agoFix bug causing API to list anons as autoconfirmed in certain cases
Catrope [Thu, 2 Aug 2012 20:48:49 +0000 (13:48 -0700)]
Fix bug causing API to list anons as autoconfirmed in certain cases

On a stock install, the autoconfirmed requirements default to zero, so
anons qualify for autoconfirmed. They don't actually get it because
User::getEffectiveGroups() only checks for autopromote groups for
logged-in users. However, ApiQueryUsers::getAutoGroups() (which
duplicates this logic for some reason) didn't use the same rule and
applied autopromote groups to anons too, which caused discrepancies
betwen the API output and wgUserGroups.

Krinkle noticed this because a QUnit test for mw.user.getGroups() was
failing while logged out: the API response included autoconfirmed but
wgUserGroups didn't.

Change-Id: I0b781c11e06d3cc7176b2fb3ba06979d3637f970

11 years agoFix jquery.localize tests, change number of expected assertions
Reedy [Thu, 2 Aug 2012 20:15:13 +0000 (21:15 +0100)]
Fix jquery.localize tests, change number of expected assertions

jquery.localize: Handle basic replacements (1, 4, 5)

Expected 3 assertions, but 4 were run

Change-Id: I95d89d8ff37befd54735edd565db8d0184a8e39a

11 years agoMerge "(bug 35526) Make jquery.tablesorter use a stable sort"
Catrope [Thu, 2 Aug 2012 20:06:33 +0000 (20:06 +0000)]
Merge "(bug 35526) Make jquery.tablesorter use a stable sort"

11 years ago(bug 35526) Make jquery.tablesorter use a stable sort
Brad Jorsch [Fri, 13 Jul 2012 18:56:17 +0000 (14:56 -0400)]
(bug 35526) Make jquery.tablesorter use a stable sort

In r86337, jquery.tablesorter was changed from using the standard
Javascript Array.sort to a custom merge sort, with the justification
that it eliminates an eval and merge sort is stable. However, the
implementation used is not, in fact, stable, and making an in-place
merge sort stable reportedly kills performance.

Instead, let's just go back to using Array.sort, but with a closure
(basically the same comparison function used by the merge sort) rather
than an eval and using the already-calculated "position" as a tiebreaker
when two rows are otherwise equal to make it stable.

Change-Id: Idc50127d3bfec2b1727f397a9780b359fd56055e

11 years agoAllow manipulation of wl_notificationtimestamp via the API
Brad Jorsch [Mon, 18 Jun 2012 20:33:19 +0000 (16:33 -0400)]
Allow manipulation of wl_notificationtimestamp via the API

It should be possible to query the notificationtimestamp as a page info
property, rather than only by querying the recent changes for the
watchlist. It should also be possible to clear or adjust the
notificationtimestamp via the API.

This patch does just that.

Change-Id: I8e2c0769e93802a6a09936899a41c07f9c4c9f25

11 years ago* (bug 38231) Add xml parse tree to action=parse.
Reedy [Sat, 7 Jul 2012 15:07:29 +0000 (16:07 +0100)]
* (bug 38231) Add xml parse tree to action=parse.

Change-Id: I4db3950c937e6299c6f3adc9b90137ac642c607c

11 years agoMerge "Add feature to disable rollback edit count"
Catrope [Thu, 2 Aug 2012 19:45:57 +0000 (19:45 +0000)]
Merge "Add feature to disable rollback edit count"

11 years agoMerge "Don't manually quote stuff"
Siebrand [Thu, 2 Aug 2012 19:39:28 +0000 (19:39 +0000)]
Merge "Don't manually quote stuff"

11 years agoDon't manually quote stuff
Reedy [Thu, 2 Aug 2012 19:36:21 +0000 (20:36 +0100)]
Don't manually quote stuff

Minor parameter documentation stuffs

Change-Id: Ie21cbfcf878de4efbf93f1d29900fe9d5f4c7ed2

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Thu, 2 Aug 2012 19:33:47 +0000 (21:33 +0200)]
Improve documentation of maintenance scripts.

Change-Id: I52ebe4d741109aef19cd8fa252243e2b6440565f

11 years agoMerge "Update languagesWithVariants"
Nikerabbit [Thu, 2 Aug 2012 19:11:03 +0000 (19:11 +0000)]
Merge "Update languagesWithVariants"

11 years agoHTMLForm mutators can now be chained
Antoine Musso [Tue, 24 Jul 2012 09:45:22 +0000 (11:45 +0200)]
HTMLForm mutators can now be chained

This make HTMLForm mutator to return $this for easy method chaining such
as:

form = new HTMLForm( $someFields );
$form->setMethod( 'get' )
 ->setWrapperLegendMsg( 'message-key' )
 ->suppressReset()
 ->prepareForm()
 ->displayForm();

prepareForm()->displayForm(); should be at the very end apparently
though it is not enforced by the object.

Change-Id: Iebaa83a1da3c89e5ab729a889e54844535619d54

11 years agoMerge "Fix ApiWatchTest"
Reedy [Thu, 2 Aug 2012 16:26:37 +0000 (16:26 +0000)]
Merge "Fix ApiWatchTest"

11 years agoMerge "debug log group for DNS blacklist lookup results"
Reedy [Thu, 2 Aug 2012 16:13:27 +0000 (16:13 +0000)]
Merge "debug log group for DNS blacklist lookup results"

11 years agodoxygen filter need to use a full path
Antoine Musso [Thu, 2 Aug 2012 14:19:27 +0000 (16:19 +0200)]
doxygen filter need to use a full path

When running mwdocgen.php outside of maintenance, the input filter was
not found. Giving the full path fix the issue.

Issue introduced by I4ead1bd1 / ab59fad.

Change-Id: I5e28209eba1afd24d60b2dc940b9f5dfb1b4f34c

11 years agoMerge "Support deleting all rows"
Demon [Thu, 2 Aug 2012 12:24:11 +0000 (12:24 +0000)]
Merge "Support deleting all rows"

11 years agoMark the history link on page deletion as known.
Alexandre Emsenhuber [Thu, 2 Aug 2012 12:06:20 +0000 (14:06 +0200)]
Mark the history link on page deletion as known.

Two reasons:
- the page must exists to reach this part of the code
- it's useless to have special classes (redirect, stub)
  since this a link to the history and not to the
  content itself

Change-Id: I59af2f237e0539842cc7777ddd44ba5ac500b070

11 years agoMerge "(bug 25095) Special:Categories should also include the first relevant item...
Demon [Thu, 2 Aug 2012 10:59:20 +0000 (10:59 +0000)]
Merge "(bug 25095) Special:Categories should also include the first relevant item when "from" is filled"

11 years agoUpdate languagesWithVariants
robin [Thu, 2 Aug 2012 10:17:58 +0000 (12:17 +0200)]
Update languagesWithVariants

Add Uzbek (uz) to LanguageConverter::languagesWithVariants
It has a converter since gerrit change 15690

Change-Id: Ie9511453a50eaed9ad6c03355badc4daa5b06e0a

11 years ago@since to subclasses of MWException
Alexandre Emsenhuber [Tue, 31 Jul 2012 09:16:40 +0000 (11:16 +0200)]
@since to subclasses of MWException

Change-Id: I9f87ba2ab00e4a68313a19823a20b10d55073e84

11 years agodebug log group for DNS blacklist lookup results
Antoine Musso [Tue, 24 Jul 2012 08:47:19 +0000 (10:47 +0200)]
debug log group for DNS blacklist lookup results

The 'beta' project uses DNS blacklist lookup to automatically block open
proxy and active spammers. This patch simply creates the new
'dnsblacklist' debug group so we can easily log the lookup result.

Change-Id: Idfc9fb2d3db4a0bb5387c76fdef07bf9e74eeff4

11 years ago(bug 25095) Special:Categories should also include the first relevant item when ...
Alexandre Emsenhuber [Wed, 9 May 2012 20:18:58 +0000 (22:18 +0200)]
(bug 25095) Special:Categories should also include the first relevant item when "from" is filled

Second attempt after that the first one was reverted in I119160d59c4fca0d069adef60151b30d53b582a1.

Change-Id: If301c7cac3fafbcdd6f3ff8e0e822b0db29f09a2

11 years agoAdd feature to disable rollback edit count
jan [Wed, 1 Aug 2012 16:52:30 +0000 (18:52 +0200)]
Add feature to disable rollback edit count

This change replaces I85f480726b41871cdf5349a19e3f650285d1dda6 (includes
the change of Catrope).

Add a feature to disable the rollback edit count (change
9bae2198c950040f9f9139893a23a1012d54d8d6) on special pages. Default it
will be disabled on Recentchanges and Watchlist.

Change-Id: Ifbbf802472ce678694b2b3ba4ef441344cc1d572

11 years agoRevert "(bug 260) Wrap <pre> overflow properly."
Tim Starling [Thu, 2 Aug 2012 04:48:06 +0000 (14:48 +1000)]
Revert "(bug 260) Wrap <pre> overflow properly."

Due to bug 38800. Just reverting to prevent accidental deployment in
1.20wmf9. I would set a fixme status instead if there was such a thing.

The problem with this is that it breaks formatting of thousands of
Wikipedia articles due to interaction with SyntaxHighlight_GeSHi. I'm
sure some satisfactory solution can be found which fixes both bugs, but
leaving this commit deployed is not a good interim solution.

This reverts commit 782b9f177404f02417c03abaf96b371e1462f160.

Change-Id: I1977f093563b5658def9ba57a6ea6cfa9796f795

11 years agoMerge "[FileBackend] Skip over some illegal paths and output the error."
Catrope [Wed, 1 Aug 2012 23:52:14 +0000 (23:52 +0000)]
Merge "[FileBackend] Skip over some illegal paths and output the error."

11 years ago[FileBackend] Skip over some illegal paths and output the error.
Aaron Schulz [Sat, 28 Jul 2012 17:38:25 +0000 (10:38 -0700)]
[FileBackend] Skip over some illegal paths and output the error.

Change-Id: Ib32aadc6398168e4a63279d7da61a0dd1e1a6483

11 years agoMerge "Add localonly= to prop duplicatefiles and imageinfo"
Catrope [Wed, 1 Aug 2012 23:47:35 +0000 (23:47 +0000)]
Merge "Add localonly= to prop duplicatefiles and imageinfo"

11 years agoBetter inline styling for badge.
Kaldari [Wed, 1 Aug 2012 23:03:35 +0000 (16:03 -0700)]
Better inline styling for badge.

Change-Id: Ie92a18478c0f9b62fceff39f54a9524432eec921

11 years agoMerge "bug 36073 Use mw-imagepage-linkstoimage-ns as a class instead of an ID"
Catrope [Wed, 1 Aug 2012 21:54:27 +0000 (21:54 +0000)]
Merge "bug 36073 Use mw-imagepage-linkstoimage-ns as a class instead of an ID"

11 years agoMerge "Change File::compare to use getName, not getTitle"
Aaron Schulz [Wed, 1 Aug 2012 19:39:10 +0000 (19:39 +0000)]
Merge "Change File::compare to use getName, not getTitle"

11 years agobug 36073 Use mw-imagepage-linkstoimage-ns as a class instead of an ID
Derk-Jan Hartman [Mon, 16 Jul 2012 23:10:01 +0000 (01:10 +0200)]
bug 36073 Use mw-imagepage-linkstoimage-ns as a class instead of an ID

This avoids multiple defines of the same ID on a File page.

Change-Id: I0f8ae37d74f2ec519361b2af164e115f6efa4ac6

11 years agoMerge "memcached: better error messaging"
Aaron Schulz [Wed, 1 Aug 2012 19:06:53 +0000 (19:06 +0000)]
Merge "memcached: better error messaging"

11 years ago(bug 38492) let doxygen document variables
Antoine Musso [Wed, 1 Aug 2012 16:23:56 +0000 (18:23 +0200)]
(bug 38492) let doxygen document variables

We are using '@var' to document our variables and class properties,
which is unfortunately not working since '@var' is really meant to
document a function or method.

The way to fix it is to use an input filter that will rewrite our PHP
source code to pretends variables are typed. Aka something like:

 /**
  * A title object
  * @var Title
  */
 var $title;

Will be made:

 /**
  * A title object
  * @var Title
  */
 Title $title;

That is incorrect PHP code but it is properly recognized by Doxygen.

This patch as a side effect, all variables and properties will end up
being documented in addition of type hinting.

Use a hack authored by Goran Rakic at:
http://stackoverflow.com/a/8472180/276152

Change-Id: I4ead1bd1feace44496b45ed8c55f5e52c59e7694

11 years agoAdd localonly= to prop duplicatefiles and imageinfo
umherirrender [Wed, 1 Aug 2012 17:51:23 +0000 (19:51 +0200)]
Add localonly= to prop duplicatefiles and imageinfo

When looking only for local files, the localonly param skipped the
mabye expensive look up inside the file repos.

Change-Id: Ib8f38d6abf9238a349bbfd617a36933bdfe74b5c

11 years agoChange File::compare to use getName, not getTitle
umherirrender [Wed, 1 Aug 2012 17:40:10 +0000 (19:40 +0200)]
Change File::compare to use getName, not getTitle

For files the file name with underscores is often used,
than the compare method should do that also.
This matches than the ORDER BY img_name done by some query.

Change-Id: Ia1b89577538bdfdf751c7b9584e7c008a8c2bb1e

11 years agomemcached: better error messaging
Antoine Musso [Fri, 13 Jul 2012 16:20:00 +0000 (18:20 +0200)]
memcached: better error messaging

MemcachedClient output a generic error message: "Error parsing memcached
response\n" whenever it is not able to read from the socket. It is also
lacking the remote peer it is reading from.

This patch add a new message when fgets( <socket> ) return false, which
means we could not read from the file pointer. It also get the stream
remote name for debugging purposes.

Change-Id: I9b8a25a03af0d730aa3b4830a44b1ea739343274

11 years agoMerge "autoloader entry for UserNotLoggedIn class"
Nikerabbit [Wed, 1 Aug 2012 11:15:08 +0000 (11:15 +0000)]
Merge "autoloader entry for UserNotLoggedIn class"

11 years ago(bug 37830) new $wgRequirePasswordforEmailChange
Reedy [Fri, 22 Jun 2012 16:29:48 +0000 (17:29 +0100)]
(bug 37830) new $wgRequirePasswordforEmailChange

$wgRequirePasswordforEmailChange to control whether password
confirmation is required for changing an email address or not.

Change-Id: Iaef440ef56d391bf9e68d15899fc81c6050722fb

11 years agoautoloader entry for UserNotLoggedIn class
Antoine Musso [Wed, 1 Aug 2012 10:46:54 +0000 (12:46 +0200)]
autoloader entry for UserNotLoggedIn class

I have forgot to add an autoloader entry for the new exception class
named UserNotLoggedIn (introduced by Id8127299 / b1c1448d).

Change-Id: Ib7226c8532fd695edf78f0e4c33b91edbf8ed52e

11 years agoMerge "Namespace gender aliases for Lithuanian (lt)"
Siebrand [Wed, 1 Aug 2012 08:30:49 +0000 (08:30 +0000)]
Merge "Namespace gender aliases for Lithuanian (lt)"

11 years agoNamespace gender aliases for Lithuanian (lt)
Niklas Laxström [Tue, 31 Jul 2012 22:03:54 +0000 (22:03 +0000)]
Namespace gender aliases for Lithuanian (lt)

http://translatewiki.net/wiki/Summary:Support/Gender_in_Lithuanian_namespace_names

Change-Id: If0a30180fb103ee1b56781a5fd1587b48e100da8

11 years ago(bug 38151) Implement mw.user.getRights and getGroups
Alex Monk [Thu, 5 Jul 2012 16:27:41 +0000 (17:27 +0100)]
(bug 38151) Implement mw.user.getRights and getGroups

* Also deprecate name() and anonymous()
  in favour of getName() and isAnon() (to match User.php), just
  like getRights and getGroups are now as well.

* Added unit tests for all.

Change-Id: I5970be9e8593589018152f4878f168b9b85ca5d5

11 years agoMerge "Revert "AJAXify watchlist editor""
Krinkle [Wed, 1 Aug 2012 03:19:28 +0000 (03:19 +0000)]
Merge "Revert "AJAXify watchlist editor""

11 years agoRevert "AJAXify watchlist editor"
Krinkle [Wed, 1 Aug 2012 03:19:12 +0000 (03:19 +0000)]
Revert "AJAXify watchlist editor"

Doesn't properly work on Special:EditWatchlist, some of the titles being unwatched are not fading out and staying behind.

There's also a small code quality issue unaddressed. Please re-submit for further review.

This reverts commit b46ec8fde5dfd3e80fa3861a01f1aac6f5a7b5ba

11 years agoMerge "(bug 30625) Return warnings, if they exist, despite ignorewarnings"
Catrope [Wed, 1 Aug 2012 00:48:19 +0000 (00:48 +0000)]
Merge "(bug 30625) Return warnings, if they exist, despite ignorewarnings"

11 years agoMerge "(bug 18834) Add an edit count to rollback link"
Catrope [Wed, 1 Aug 2012 00:44:29 +0000 (00:44 +0000)]
Merge "(bug 18834) Add an edit count to rollback link"

11 years agoMerge "(bug 27395) Write PHPUnit test suite for CSSJanus"
Catrope [Wed, 1 Aug 2012 00:26:48 +0000 (00:26 +0000)]
Merge "(bug 27395) Write PHPUnit test suite for CSSJanus"

11 years agoMerge "AJAXify watchlist editor"
Catrope [Wed, 1 Aug 2012 00:24:46 +0000 (00:24 +0000)]
Merge "AJAXify watchlist editor"

11 years ago(bug 31644) [MERGE DEPENDENCY] Let WikiMap url builders return full urls instead...
Derk-Jan Hartman [Tue, 31 Jul 2012 21:06:51 +0000 (23:06 +0200)]
(bug 31644) [MERGE DEPENDENCY] Let WikiMap url builders return full urls instead of canonical urls

* This commit depends on a commit of globalusage https://gerrit.wikimedia.org/r/17117
* This allows GlobalUsage, CentralAuth and AbuseLog extensions to use protocol relative URLs.

Change-Id: I7e65bd029f359c36770aa48e6663f26a671b92c0

11 years ago(bug 18834) Add an edit count to rollback link
jan [Sun, 29 Jul 2012 16:57:11 +0000 (18:57 +0200)]
(bug 18834) Add an edit count to rollback link

Add an edit count to rollback link to show how many edits will be
rollbacked. When the count is over 10 the text "more than 10 edits" will
be outputed.

Change-Id: I5c4050e0a9197d4c505e85685a9780c97138d427

11 years agoMerge "Some fixes to our jQuery UI skin for buttons"
Trevor Parscal [Tue, 31 Jul 2012 20:25:55 +0000 (20:25 +0000)]
Merge "Some fixes to our jQuery UI skin for buttons"

11 years agoMerge "[FileBackend] Made swift handle unknown content types better."
Catrope [Tue, 31 Jul 2012 20:13:35 +0000 (20:13 +0000)]
Merge "[FileBackend] Made swift handle unknown content types better."

11 years ago(bug 27395) Write PHPUnit test suite for CSSJanus
Timo Tijhof [Tue, 31 Jul 2012 08:02:04 +0000 (01:02 -0700)]
(bug 27395) Write PHPUnit test suite for CSSJanus

Change-Id: If40c5de54bffae6e5ac8fac81754a53a40c652b1

11 years agoAdded line to rel notes about CacheHelper class
jeroendedauw [Tue, 31 Jul 2012 18:38:25 +0000 (20:38 +0200)]
Added line to rel notes about CacheHelper class

Change-Id: I994edc0e13ff28a31aac4457ea25ae9cefddd67f

11 years agoSupport deleting all rows
jeroendedauw [Tue, 31 Jul 2012 18:33:10 +0000 (20:33 +0200)]
Support deleting all rows

Change-Id: I36ee33580261f39cb0ba69473f5afac9a5135853

11 years ago[FileBackend] Made swift handle unknown content types better.
Aaron [Tue, 31 Jul 2012 17:53:27 +0000 (10:53 -0700)]
[FileBackend] Made swift handle unknown content types better.

Change-Id: I50a5c17c40152a9e469a54bdd70a8408c57ebd50

11 years agoIntroduce default expiry time for special:block (bug 32178)
Waldir Pimenta [Wed, 6 Jun 2012 19:50:19 +0000 (20:50 +0100)]
Introduce default expiry time for special:block (bug 32178)

Minor side change 1: fix preservation of infinite expiry time when reblocking:
the hardcoded value "indefinite" did not match with the default value
specified in ipboptions "infinite"

Minor side change 2: fix link in includes/Message.php's documentation

Change-Id: Icb1edabd8bb3dd1020c023b27b1270b9d2735b06

11 years agoMerge "Add hint for pipe-separated list to action=help"
Catrope [Tue, 31 Jul 2012 16:56:18 +0000 (16:56 +0000)]
Merge "Add hint for pipe-separated list to action=help"

11 years agoMerge "Fix logic error from Ia74ac399 (2ee4653)."
Reedy [Tue, 31 Jul 2012 16:50:09 +0000 (16:50 +0000)]
Merge "Fix logic error from Ia74ac399 (2ee4653)."

11 years agoMerge "* oracle DB schema update to current (changes relevant to 1.19 will be backpor...
Demon [Tue, 31 Jul 2012 16:30:33 +0000 (16:30 +0000)]
Merge "* oracle DB schema update to current (changes relevant to 1.19 will be backported) * fixed an updater bug from 1.19 (will be backported)"

11 years agoFix logic error from Ia74ac399 (2ee4653).
Alexandre Emsenhuber [Tue, 31 Jul 2012 11:18:03 +0000 (13:18 +0200)]
Fix logic error from Ia74ac399 (2ee4653).

The "views" part of the table should only
be displayed if view counters are *not*
disabled (and not the opposite).

Change-Id: I4859f396cc9e2eb7b9f4eff6502efc459a3410fd

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 31 Jul 2012 08:06:11 +0000 (08:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6556bddc4204ecebff39db8c8d01e8a169e62fc0

11 years agoAdded placeholder-msg support and more documentation to jquery.localize
Trevor Parscal [Mon, 30 Jul 2012 21:43:58 +0000 (14:43 -0700)]
Added placeholder-msg support and more documentation to jquery.localize

* Added examples of all options (prefix, keys and params)
* Added example of raw attribute being used to bypass escaping
* Added documentation to code where it seemed clarification was needed
* Reduce duplication and simplified  some unnecessarily complex statements
* Added test for new placeholder-msg attribute support
* Made adding more attributes in the future easier
* Moved message wrapper function out of the localize function so we aren't defining it each time localize is used

Change-Id: I77593acf4c1b3974d502a1a8382cca9267af2d41

11 years agoMerge "(bug 37390) Clean up QUnit test suites"
Trevor Parscal [Mon, 30 Jul 2012 23:54:39 +0000 (23:54 +0000)]
Merge "(bug 37390) Clean up QUnit test suites"

11 years ago(bug 37390) Clean up QUnit test suites
Timo Tijhof [Mon, 30 Jul 2012 23:46:50 +0000 (16:46 -0700)]
(bug 37390) Clean up QUnit test suites

* Use new QUnit 1.8.0+ pattern:
 - no-globals (only QUnit itself)
 - assert-object pattern
 - Remove pointless '-- Initial check' assertions.
   I introduced this pattern last year for no particular reason and
   everybody just copied it. There is no reason for it, it works fine
   without it. And the rest of the world that uses QUnit doesn't do
   it either. Exceptions are caught by QUnit and error handling there
   is much better than a dull '!ok()' assertion.

* .jshintrc:
 - Tolerate "mulistr" (this is used in many extensions, test suites
   as well as in MediaWiki core)
   "foo\
   bar"
 - Use "jquery: true" instead of "jQuery" so that JSHint can optimize
   for jQuery edge cases.

Misc issues fixed:
 * Trailing comma's in jquery.tablesorter.test
 * Missing semi-colon in testrunner.js
 * Remove backwards-compatible line for "equals()" and "same()".
   These have been deprecated in QUnit since 2009 (which is way
   before we even started looking at QUnit).
   Inside QUnit itself is a deprecation notice, I don't know why
   I added this compatibility line, it is stupid and overrides the
   nice deprecation-warning that QUnit has built in for it).
 * Use QUnit.push inside assertTrue and assertFalse.
   QUnit assertion methods must not call each other, in order to keep
   the call stack length as expected so that QUnit can report the
   file and line number of the caller of the assertion in case of
   failure etc.

Change-Id: I5cded6e8c32dba39170a02bdd3236c8b7b04d269

11 years agoMerge "Fix at end navigation condition for query pages"
Aaron Schulz [Mon, 30 Jul 2012 22:30:12 +0000 (22:30 +0000)]
Merge "Fix at end navigation condition for query pages"

11 years agoMerge "Realign $magicWords array in LanguageEn.php"
Aaron Schulz [Mon, 30 Jul 2012 22:17:16 +0000 (22:17 +0000)]
Merge "Realign $magicWords array in LanguageEn.php"

11 years agoMerge "Move some readonly around"
Aaron Schulz [Mon, 30 Jul 2012 22:16:43 +0000 (22:16 +0000)]
Merge "Move some readonly around"

11 years agoMerge "Make MWHttpRequest::__construct() protected."
Aaron Schulz [Mon, 30 Jul 2012 22:15:42 +0000 (22:15 +0000)]
Merge "Make MWHttpRequest::__construct() protected."

11 years agoAJAXify watchlist editor
Eranroz [Sun, 3 Jun 2012 14:39:04 +0000 (17:39 +0300)]
AJAXify watchlist editor

This patch makes the watchlist editor to use pagination. That would
avoid old browsers crashing (bug 20483).
Patch also add some AJAX operations to the editor, for example to remove
items from watchlist (bug 32151).

The AJAX support is an ALTERNATIVE to the form based method, to keep
support for non javascript users.

This change contains a required change in the API for watch operation,
to allow batch operation, by support titles parameter. The old title
(single page) parameter is still used to keep backward compatibility.

Change-Id: I1d8c66db9ba6456858ef655397935a2b3a421632

11 years agoClean up badger.{css,js} from PageTriage, generalise it and move it into core.
Andrew Garrett [Mon, 30 Jul 2012 21:16:56 +0000 (14:16 -0700)]
Clean up badger.{css,js} from PageTriage, generalise it and move it into core.

Change-Id: I0f5e754146359448eb125456e240cf5768d4f541

11 years ago(bug 37331) Modules sometimes execute twice in Firefox
Catrope [Tue, 24 Jul 2012 20:24:56 +0000 (13:24 -0700)]
(bug 37331) Modules sometimes execute twice in Firefox

This seems to have been caused by a weird race condition that caused the
loader to run while the module in question was also running; could also
have been caused by the module calling mw.loader, but that didn't seem
to be the case here.

The fix is to set .state='ready' before executing the module rather than
after. We can't do this in debug mode (where we're loading raw files and
can't execute things at will), but we have to do this in production
mode to prevent these freakish double executions.

Change-Id: I7e8dbd361fb265e520d3935e3a1fc7e3b6710b66

11 years agoMove some readonly around
umherirrender [Mon, 30 Jul 2012 16:46:01 +0000 (18:46 +0200)]
Move some readonly around

Checking first permission and than read only is better, than user
without permissions does not retry it when read only is over.

Moving disallowUserJS to top so javascript is always not possible, same
is already done on Special:ChangePassword

Change-Id: Ia27ee177b67f1151fd1178b24744b65da8e756fd

11 years agoMerge "Localize comma separators in jump-to-nav."
Siebrand [Mon, 30 Jul 2012 15:53:58 +0000 (15:53 +0000)]
Merge "Localize comma separators in jump-to-nav."

11 years agoMerge "(bug 38362) Special:Listuser now includeable"
Siebrand [Mon, 30 Jul 2012 15:40:26 +0000 (15:40 +0000)]
Merge "(bug 38362) Special:Listuser now includeable"

11 years agoMake MWHttpRequest::__construct() protected.
Liangent [Mon, 30 Jul 2012 15:18:44 +0000 (23:18 +0800)]
Make MWHttpRequest::__construct() protected.

This class is not for direct initialization, and
new MWHttpRequest(...)->execute() doesn't work at all.

Change-Id: I557723c218cd8e8f27283d01141c890263da095d

11 years agoAdd @since 1.20 to getDirMarkEntity
Amir E. Aharoni [Mon, 30 Jul 2012 08:51:47 +0000 (11:51 +0300)]
Add @since 1.20 to getDirMarkEntity

Change-Id: Ib74b68a85e470ef23685802af93c3ec66d50e1ed

11 years agoMerge "Follow-up Ifa9c55b7 (58852d8): Change one more item to getWatchedItem()"
Demon [Mon, 30 Jul 2012 01:52:37 +0000 (01:52 +0000)]
Merge "Follow-up Ifa9c55b7 (58852d8): Change one more item to getWatchedItem()"

11 years agoMerge "No need to call parseTitle() directly in MediaWiki::__construct()."
Demon [Mon, 30 Jul 2012 01:48:42 +0000 (01:48 +0000)]
Merge "No need to call parseTitle() directly in MediaWiki::__construct()."

11 years agoMerge "Don't unset() $wgOut in AjaxDispatcher."
Demon [Mon, 30 Jul 2012 01:45:17 +0000 (01:45 +0000)]
Merge "Don't unset() $wgOut in AjaxDispatcher."

11 years agoMerge "Fix for Ic74c7ba7 (c8c50eb): there's no reason to pass $this by reference."
Demon [Mon, 30 Jul 2012 01:44:23 +0000 (01:44 +0000)]
Merge "Fix for Ic74c7ba7 (c8c50eb): there's no reason to pass $this by reference."