lhc/web/wiklou.git
11 years agoMerge "Follow-up I47412b67: pass an array of query parameters to Linker::link()"
Nikerabbit [Wed, 8 Aug 2012 09:43:09 +0000 (09:43 +0000)]
Merge "Follow-up I47412b67: pass an array of query parameters to Linker::link()"

11 years agoMerge "(bug 39099) Changed error-levels in Uri.php"
Nikerabbit [Wed, 8 Aug 2012 08:50:00 +0000 (08:50 +0000)]
Merge "(bug 39099) Changed error-levels in Uri.php"

11 years agoFollow-up I47412b67: pass an array of query parameters to Linker::link()
Alexandre Emsenhuber [Wed, 8 Aug 2012 08:42:17 +0000 (10:42 +0200)]
Follow-up I47412b67: pass an array of query parameters to Linker::link()

Spotted by Daniel Werner in that change.

Change-Id: I8ded52b8285b2af0f69cc586abe532ea56cc18bb

11 years agoMerge "Pass the 'returntoquery' parameter on cookie check."
Nikerabbit [Wed, 8 Aug 2012 07:38:04 +0000 (07:38 +0000)]
Merge "Pass the 'returntoquery' parameter on cookie check."

11 years agoMerge "Remove unused variables/function values returned"
IAlex [Wed, 8 Aug 2012 06:13:08 +0000 (06:13 +0000)]
Merge "Remove unused variables/function values returned"

11 years agoMerge ".gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort."
IAlex [Wed, 8 Aug 2012 05:59:51 +0000 (05:59 +0000)]
Merge ".gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort."

11 years agomediawiki.user: Reduce repetition of code
helder.wiki [Wed, 1 Aug 2012 15:21:36 +0000 (12:21 -0300)]
mediawiki.user: Reduce repetition of code

Created a local utility function getUserInfo(), which is called by
both mw.user.getGroups and mw.user.getRights.

This function uses the same API request to get both pieces of
information.

Also reduces the number of jQuery.Callbacks instances by
using it directly instead of jQuery.Deffered with '.always()'.

Change-Id: I590175dba1c9761da19a84efe69a5305220d8eb7

11 years agoMerge "Allow session storage to be configured independently"
Aaron Schulz [Wed, 8 Aug 2012 00:35:59 +0000 (00:35 +0000)]
Merge "Allow session storage to be configured independently"

11 years agoAllow session storage to be configured independently
Tim Starling [Tue, 7 Aug 2012 05:25:46 +0000 (15:25 +1000)]
Allow session storage to be configured independently

* Introduce $wgSessionCacheType to allow the session storage to be
  configured independently of $wgMemc.
* Renamed $wgSessionsInMemcached to $wgSessionsInObjectCache to reflect
  the new versatility.
* Modernized the relevant code, removing the explicit require_once(),
  used the autoloader instead. Moved it to ObjectCacheSessionHandler.
* Tested with memcached, external sharded MySQL and APC, it all seems to
  work just fine.

Change-Id: I473334bb56cafb4e21ac1c1304d69095676fc0c4

11 years ago.gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort.
Timo Tijhof [Tue, 7 Aug 2012 23:58:58 +0000 (01:58 +0200)]
.gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort.

Change-Id: Idddfac5af757aa2869a2db25f10ca7ef6f4820a9

11 years agoRemove unused variables/function values returned
Reedy [Tue, 7 Aug 2012 23:47:25 +0000 (00:47 +0100)]
Remove unused variables/function values returned

Fix trailing whitespace

Change-Id: I53abf75e142f0166032b98e4adb3dabe06643017

11 years ago(bug 39099) Changed error-levels in Uri.php
Tyler Anthony Romeo [Tue, 7 Aug 2012 23:16:22 +0000 (19:16 -0400)]
(bug 39099) Changed error-levels in Uri.php

Switched component aliases and invalid URLs to wfDebug()
instead of wfWarn() so that it fails gracefully. Also
changed Uri::setComponents() to throw an exception for
invalid components instead of warning in order to be
the same as the other methods.

Change-Id: I2f2b552f8b13b7063c6b85b6a02d05eaba470b90
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
11 years agoMerge "Follow-up SVN r98012: pass Title objects to LogEventsList::showLogExtract()."
Aaron Schulz [Tue, 7 Aug 2012 20:58:45 +0000 (20:58 +0000)]
Merge "Follow-up SVN r98012: pass Title objects to LogEventsList::showLogExtract()."

11 years agoMerge "Set form name for HTMLForms in FormAction subclasses."
IAlex [Tue, 7 Aug 2012 20:51:18 +0000 (20:51 +0000)]
Merge "Set form name for HTMLForms in FormAction subclasses."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 7 Aug 2012 20:13:58 +0000 (20:13 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Followup c17651/bug 39032"
Reedy [Tue, 7 Aug 2012 20:12:51 +0000 (20:12 +0000)]
Merge "Followup c17651/bug 39032"

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

Change-Id: I7f355864088419d9fa96788a2b329c858457f183

11 years agoMerge "Added some docs, fixed some docs and made implicit checks explicit"
Aaron Schulz [Tue, 7 Aug 2012 19:45:40 +0000 (19:45 +0000)]
Merge "Added some docs, fixed some docs and made implicit checks explicit"

11 years agoMerge "Linker::link() prints deprecated warning if $query is a string"
Aaron Schulz [Tue, 7 Aug 2012 19:31:42 +0000 (19:31 +0000)]
Merge "Linker::link() prints deprecated warning if $query is a string"

11 years agoFollowup c17651/bug 39032
Reedy [Tue, 7 Aug 2012 18:13:55 +0000 (19:13 +0100)]
Followup c17651/bug 39032

makeHelpMsgHelper made a list of "allowed generators" at the same
time as generating stuff that was used to build the api help docs.

Change-Id: Idcc0b19ff62ab8da95c09c75a5222d3116ed0dc5

11 years agoimprove wfStripIllegalFilenameChars()'s readability
Waldir Pimenta [Tue, 7 Aug 2012 19:09:26 +0000 (20:09 +0100)]
improve wfStripIllegalFilenameChars()'s readability

make the preg_replace regex more readable,
and expand documentation a little.

Change-Id: Id26d9d42be7d3f2780e82da27dd2477d62d8e106

11 years ago(bug 33037) Special:newfiles treat its subpage parameter as a limit
Brian Wolff [Sun, 8 Jul 2012 17:02:35 +0000 (14:02 -0300)]
(bug 33037) Special:newfiles treat its subpage parameter as a limit

This restores the older behaviour of Special:newfiles. This allows
people to easily include variable sized galleries via
{{Special:newfiles/12}} syntax (people could of course previously do
{{special:newfiles|limit=12}} but less people know that.

Also makes IndexPager::setLimit validate the limit in the same way
it validates the limit coming from a url, and makes it so that
calling setLimit takes precedence over its built in determine the limit
code.

p.s. This is my first commit in our great glourious git future, so
let me know if i did anything wrong

Change-Id: I7fc148e56e43b7c453a1a9559ef74b8b3119c6fe

11 years ago(bug 11142) Improve file ext error reporting in API upload
Brad Jorsch [Thu, 19 Jul 2012 16:54:05 +0000 (12:54 -0400)]
(bug 11142) Improve file ext error reporting in API upload

The API action=upload returns a generic error message when one or more
of the file extensions are blacklisted. It should return a more
informative message, and also return the list of blacklisted extensions
in a machine-readable format.

This changeset introduces a new message,
"api-error-filetype-banned-type", which is to
"api-error-filetype-banned" what "filetype-banned-type" is to
"filetype-banned". As a starting point, I've copied (with minor changes)
the existing filetype-banned-type message to
api-error-filetype-banned-type for all languages for which both
api-error-filetype-banned and filetype-banned-type are currently given.

This changeset also incidentally fixes an internal server error with
format=xml when the filetype-banned error is returned by the API.

Change-Id: I6b0c58fbc5b19aa55286c56fa7da2195ea683ae0

11 years agoPass the 'returntoquery' parameter on cookie check.
Alexandre Emsenhuber [Tue, 7 Aug 2012 17:24:03 +0000 (19:24 +0200)]
Pass the 'returntoquery' parameter on cookie check.

Change-Id: I6d80ac4ec6a129f7670b046ec5fe4ab35fc4e352

11 years agoAdded WebRequest::getMethod() to get the HTTP method of the request.
Alexandre Emsenhuber [Tue, 7 Aug 2012 06:33:41 +0000 (08:33 +0200)]
Added WebRequest::getMethod() to get the HTTP method of the request.

This is to replace the usage of $_SERVER['REQUEST_METHOD'].

Change-Id: I45084254c5452b00b0665df78628cfd214e39cab

11 years agoMerge "Allowing Message objects to be passed as error page title."
IAlex [Tue, 7 Aug 2012 16:22:49 +0000 (16:22 +0000)]
Merge "Allowing Message objects to be passed as error page title."

11 years agoAllowing Message objects to be passed as error page title.
Tyler Anthony Romeo [Mon, 6 Aug 2012 21:07:24 +0000 (17:07 -0400)]
Allowing Message objects to be passed as error page title.

Changed OutputPage::showErrorPage() so that the title parameter
can be either a string or a Message object, just like the
message parameter. This allows titles that take parameters.

Change-Id: Icb7f7b0db8599984774f438333b60d66956b6075
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
11 years agoLinker::link() prints deprecated warning if $query is a string
Daniel Werner [Thu, 5 Jul 2012 13:58:42 +0000 (15:58 +0200)]
Linker::link() prints deprecated warning if $query is a string

Change-Id: I47412b67b964ff0d868f181903628de3fd41365a

11 years agoMerge "Add a Uri class."
Aaron Schulz [Tue, 7 Aug 2012 03:37:30 +0000 (03:37 +0000)]
Merge "Add a Uri class."

11 years agoAdd a Uri class.
Daniel Friesen [Mon, 2 Apr 2012 01:54:25 +0000 (18:54 -0700)]
Add a Uri class.

Add a Uri class matching our mw.Uri JS class for handling uris.
This class should be helpful in a bunch of places where we end up doing manual
concatenation of things like the path + '?' + query of a url parsed with wfParseUrl.

[tylerromeo@gmail.com: Removed cat() function, fixed wfWarn() usage for aliases
 and added visibility to all functions. Also added test for aliases.]
Signed-off-by: Tyler Romeo <tylerromeo@gmail.com>
Change-Id: Iefdedb7c80cf1d4aab58050edab3ab44ba868a58

11 years agoMerge "Fix wrong return value in Preprocessor::getChildrenOfType"
Tim Starling [Tue, 7 Aug 2012 00:37:53 +0000 (00:37 +0000)]
Merge "Fix wrong return value in Preprocessor::getChildrenOfType"

11 years agoRefreshLinksJob performance tweaks.
Aaron Schulz [Thu, 2 Aug 2012 04:19:00 +0000 (21:19 -0700)]
RefreshLinksJob performance tweaks.

* Made refreshLinksJob2 always spawn smaller jobs. This can reduce
  the problem of all runners doing the same refresh jobs by increasing the
  granularity of the work to single pages parses per job.
* Avoid master queries when fetching the latest revision for refresh links jobs.
  Also avoid the master for template fetching on parse. A LoadBalancer waitFor()
  call is used instead. The main reason for hitting the master to fetch templates
  was this job itself.
* Fixed bug in refreshLinksJob2 where one missing page would cause all the
  remaining updates for pages to be aborted.
* Factored out some code duplication between the two refresh links job classes.

Change-Id: Ieca51567a888f50a6f15b6c2606323da80d6584b

11 years ago[FileBackend] Fixed curl call broken by 10ec7a1.
Aaron [Mon, 6 Aug 2012 22:02:33 +0000 (15:02 -0700)]
[FileBackend] Fixed curl call broken by 10ec7a1.

Change-Id: I661d2f586d3e3177c2f233153787597095872535

11 years agoMerge "Always save the cache if stuff was added to it - dont require deriving class...
Aaron Schulz [Mon, 6 Aug 2012 21:49:41 +0000 (21:49 +0000)]
Merge "Always save the cache if stuff was added to it - dont require deriving class to call save"

11 years agoMerge "Memcached PHP client improvements"
Aaron Schulz [Mon, 6 Aug 2012 21:45:38 +0000 (21:45 +0000)]
Merge "Memcached PHP client improvements"

11 years agoSet form name for HTMLForms in FormAction subclasses.
Tyler Anthony Romeo [Mon, 6 Aug 2012 21:02:25 +0000 (17:02 -0400)]
Set form name for HTMLForms in FormAction subclasses.

Used FormAction::getName() to set the form name for
FormAction subclasses. Without a form name, HTMLForm
creates weird messages names for certain fields (e.g.,
in a form with sections, HTMLForm will use the message
"$prefix-$key" for the legend, but if no prefix exists,
it just becomes "-$key").

Change-Id: I1c19775e44163f4335e30f1d1f73a6e002cb57ec
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
11 years agoMerge "Fixes to Special:Mostlinkedcategories."
Aaron Schulz [Mon, 6 Aug 2012 20:51:16 +0000 (20:51 +0000)]
Merge "Fixes to Special:Mostlinkedcategories."

11 years agoMerge "Use a better message when a revision is not found."
Aaron Schulz [Mon, 6 Aug 2012 20:44:24 +0000 (20:44 +0000)]
Merge "Use a better message when a revision is not found."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 6 Aug 2012 19:22:37 +0000 (19:22 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If5dfc80fe392a76f111dcfe23cdd2432022bc0ee

11 years agoMerge "[FileBackend] Fixed bogus sync-check status errors."
Aaron [Mon, 6 Aug 2012 17:56:11 +0000 (17:56 +0000)]
Merge "[FileBackend] Fixed bogus sync-check status errors."

11 years ago[FileBackend] Fixed bogus sync-check status errors.
Aaron [Mon, 6 Aug 2012 17:53:44 +0000 (10:53 -0700)]
[FileBackend] Fixed bogus sync-check status errors.

Change-Id: Iefb3a9575e241cfdc3220301a89667d6ad96a307

11 years agoAdd @deperecation stuff to message functions
jeroendedauw [Mon, 6 Aug 2012 17:32:52 +0000 (19:32 +0200)]
Add @deperecation stuff to message functions

Change-Id: I69168ed9d850baf02b3dd7c8bd0e820f3f00f43f

11 years agoMerge "Move message importtext into the fieldset"
IAlex [Mon, 6 Aug 2012 17:09:02 +0000 (17:09 +0000)]
Merge "Move message importtext into the fieldset"

11 years agoMerge "Followup ac8b7d54f81f7b3879a7e21c96b0d182a00618d2 fix broken php detection"
Aaron Schulz [Mon, 6 Aug 2012 16:58:26 +0000 (16:58 +0000)]
Merge "Followup ac8b7d54f81f7b3879a7e21c96b0d182a00618d2 fix broken php detection"

11 years agoMove message importtext into the fieldset
umherirrender [Mon, 6 Aug 2012 16:03:19 +0000 (18:03 +0200)]
Move message importtext into the fieldset

Than it is the same place as message import-interwiki-text

Change-Id: I0eb800b05848cbea123f895180da02cc1b9af913

11 years agoSplit CacheTime into its own file
jeroendedauw [Mon, 6 Aug 2012 14:18:02 +0000 (16:18 +0200)]
Split CacheTime into its own file

Change-Id: Iaa546fc5a30dad4bc0a0dbd0dc18dd2e05bf9d7f

11 years agoAdded some docs, fixed some docs and made implicit checks explicit
jeroendedauw [Mon, 6 Aug 2012 13:56:23 +0000 (15:56 +0200)]
Added some docs, fixed some docs and made implicit checks explicit

Change-Id: Ib8ed516bc1114c58bec6e6213b52658fb34f5c98

11 years agoIn WebRequest, don't use isset() to check that a variable is null
Alexandre Emsenhuber [Mon, 6 Aug 2012 11:02:34 +0000 (13:02 +0200)]
In WebRequest, don't use isset() to check that a variable is null

Change-Id: If4577b911e774e1e0c6a1d90c585bbb027d6b7cd

11 years agoUse a better message when a revision is not found.
Alexandre Emsenhuber [Thu, 2 Aug 2012 09:20:40 +0000 (11:20 +0200)]
Use a better message when a revision is not found.

This comes from
https://translatewiki.net/wiki/Thread:Support/MediaWiki:Missing-article
that asks for a link to the deletion log in the
'missing-article' message.

Instead of simply changing that message I replaced
it with two news messages 'missing-revision' when trying
to view an old revision and 'difference-missing-revision'
when showing a difference. This removes the "lego"
construction of 'missing-article' with 'missingarticle-rev'
and 'missingarticle-diff' submessages.

I had to keep current messages since they are still
used in extensions.

Change-Id: Ibe60c84cfea922a78b3ad22cc48185a109cd617d

11 years agoFollowup ac8b7d54f81f7b3879a7e21c96b0d182a00618d2 fix broken php detection
Daniel Friesen [Mon, 6 Aug 2012 05:56:16 +0000 (22:56 -0700)]
Followup ac8b7d54f81f7b3879a7e21c96b0d182a00618d2 fix broken php detection

Change-Id: Id78f14c220bbaa21b78c0c669a324f6169b3109d

11 years agoMerge "change some rc_new to rc_type == RC_NEW"
Aaron Schulz [Mon, 6 Aug 2012 05:40:44 +0000 (05:40 +0000)]
Merge "change some rc_new to rc_type == RC_NEW"

11 years agoTweak 'disambiguations-text'.
Siebrand Mazeland [Sun, 5 Aug 2012 23:51:22 +0000 (01:51 +0200)]
Tweak 'disambiguations-text'.

Change-Id: I51fc0b48f5af8f9d50f7c968d5ecdcf94406a623

11 years agoShould be used from fallback.
Siebrand Mazeland [Sun, 5 Aug 2012 23:39:36 +0000 (01:39 +0200)]
Should be used from fallback.

Change-Id: I91ce057883d902d9dc55a781e200136971c94f02

11 years agochange some rc_new to rc_type == RC_NEW
umherirrender [Sun, 5 Aug 2012 22:08:35 +0000 (00:08 +0200)]
change some rc_new to rc_type == RC_NEW

The field rc_new is obsolete and should be removed, see bug 34320

Change-Id: I411ec2cb0fe3eb078094eded210d4aefee5f8e74

11 years agoFix wrong return value in Preprocessor::getChildrenOfType
umherirrender [Sun, 5 Aug 2012 20:14:45 +0000 (22:14 +0200)]
Fix wrong return value in Preprocessor::getChildrenOfType

I am not sure, but this looks wrong, because it adds the type to the
array and not the child.
This method is unused in core and wmf extensions, maybe
removing/deprecating is a better idea, but I am not sure, if that is
possible.
I have only see this possible error, while looking through the
preprocessor.

Change-Id: I5b7492d455989a8a3e71b5db6d31091b986c502a

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 5 Aug 2012 19:36:19 +0000 (19:36 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Rebuild MessagesEn.php"
Siebrand [Sun, 5 Aug 2012 19:17:21 +0000 (19:17 +0000)]
Merge "Rebuild MessagesEn.php"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 5 Aug 2012 19:01:18 +0000 (19:01 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9939a879f65f468d7d3392b5f41c7db2eeffcc0f

11 years agoFix grammar issue and add quotes around parameters.
Siebrand Mazeland [Sun, 5 Aug 2012 17:46:05 +0000 (19:46 +0200)]
Fix grammar issue and add quotes around parameters.

Change-Id: Idd4ff6ac8bc9176a69ad46769e73dc070cd5f3ad

11 years agoRebuild MessagesEn.php
Alexandre Emsenhuber [Sun, 5 Aug 2012 17:10:24 +0000 (19:10 +0200)]
Rebuild MessagesEn.php

Change-Id: Ibaa94493225ee9f20674c3c30df18f3da8afe28a

11 years agoSupport GENDER in 'passwordreset-emailelement'.
Siebrand Mazeland [Sun, 5 Aug 2012 14:49:03 +0000 (16:49 +0200)]
Support GENDER in 'passwordreset-emailelement'.

Change-Id: I1b14dbb8d1fb06c688064af4a6a02e03293dc5f0

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Sat, 4 Aug 2012 18:31:42 +0000 (20:31 +0200)]
Improve documentation of maintenance scripts.

Change-Id: I557f85e8526a3e4b48107fbf299ff39f6af1ac12

11 years agoFollow-up SVN r98012: pass Title objects to LogEventsList::showLogExtract().
Alexandre Emsenhuber [Sun, 5 Aug 2012 09:44:22 +0000 (11:44 +0200)]
Follow-up SVN r98012: pass Title objects to LogEventsList::showLogExtract().

It seems that I forgot to update Article.php in that revision.

Change-Id: Ia29cc62dc88abb7f58d5f8cec68f67b126763f6f

11 years agoFixes to Special:Mostlinkedcategories.
Alexandre Emsenhuber [Sat, 4 Aug 2012 20:08:59 +0000 (22:08 +0200)]
Fixes to Special:Mostlinkedcategories.

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

11 years agoMerge "Fix possible error texts in action=options"
Aaron Schulz [Sat, 4 Aug 2012 18:13:09 +0000 (18:13 +0000)]
Merge "Fix possible error texts in action=options"

11 years agoMerge "remove 'cantpurge' from possible errors in action=purge"
Aaron Schulz [Sat, 4 Aug 2012 18:10:54 +0000 (18:10 +0000)]
Merge "remove 'cantpurge' from possible errors in action=purge"

11 years agoMerge "Rename 'file-session-key' in api message map"
Aaron Schulz [Sat, 4 Aug 2012 18:10:30 +0000 (18:10 +0000)]
Merge "Rename 'file-session-key' in api message map"

11 years agoMerge "unknown error 'filerevert-badversion'"
Aaron Schulz [Sat, 4 Aug 2012 18:10:02 +0000 (18:10 +0000)]
Merge "unknown error 'filerevert-badversion'"

11 years agofix list of possible errors for list=blocks
umherirrender [Sat, 4 Aug 2012 14:35:49 +0000 (16:35 +0200)]
fix list of possible errors for list=blocks

Change-Id: I4a091eeb788f465fe6cdbb7fe6d296606185ba3c

11 years agoremove 'cantpurge' from possible errors in action=purge
umherirrender [Sat, 4 Aug 2012 14:26:53 +0000 (16:26 +0200)]
remove 'cantpurge' from possible errors in action=purge

Was removed in r74944

Change-Id: Ib13be4a3a9956b5c48f2d435092affe518fd7cd3

11 years agoFix possible error texts in action=options
umherirrender [Sat, 4 Aug 2012 14:18:18 +0000 (16:18 +0200)]
Fix possible error texts in action=options

Change-Id: I465b9cf109bd4f22542747ca72876caa3725a353

11 years agoRename 'file-session-key' in api message map
umherirrender [Sat, 4 Aug 2012 14:05:21 +0000 (16:05 +0200)]
Rename 'file-session-key' in api message map

Follow up r92009

Change-Id: I4752d47e54f4b13101400bed097eccc525e8506e

11 years agoMerge "* Bug 39032 - ApiQuery generates help in constructor."
Nikerabbit [Sat, 4 Aug 2012 14:05:03 +0000 (14:05 +0000)]
Merge "* Bug 39032 - ApiQuery generates help in constructor."

11 years agounknown error 'filerevert-badversion'
umherirrender [Sat, 4 Aug 2012 13:40:36 +0000 (15:40 +0200)]
unknown error 'filerevert-badversion'

Adding 'filerevert-badversion' to message map
use some local vars in ApiFileRevert

Change-Id: I2341f3f212af484d446a7a84c1b5c7984597468d

11 years ago* Bug 39032 - ApiQuery generates help in constructor.
Reedy [Sat, 4 Aug 2012 13:35:23 +0000 (14:35 +0100)]
* Bug 39032 - ApiQuery generates help in constructor.

Functions called unnecesserily, as their return values aren't used
or even cached.

Removing them to reduce the pointless overhead of calling them

Change-Id: I0d8ddab9492ea79d5de4118944e77ac774275506

11 years agoMerge "Improve detection of php binary."
Aaron Schulz [Sat, 4 Aug 2012 08:45:49 +0000 (08:45 +0000)]
Merge "Improve detection of php binary."

11 years agoImprove detection of php binary.
Platonides [Fri, 27 Jul 2012 17:00:40 +0000 (19:00 +0200)]
Improve detection of php binary.

- Add php binary and a program which might
be set as $PHP.
- Check for the correct php version.

The break shell builtin is not too commonly used,
but should beperfectly safe to use, since it's specified by POSIX
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#break

Change-Id: Iefbe991426f0e9a7178363a30b613f57110e1953

11 years agoAdd a test for paragraphs with extra newline spacing
Gabriel Wicke [Fri, 3 Aug 2012 23:33:13 +0000 (16:33 -0700)]
Add a test for paragraphs with extra newline spacing

This test simply documents the current PHP parser behavior, so that it remains
compatible while we are tweaking Parsoid.

Change-Id: I807efb93da6c69da124bcab5c7fbd531b4deaa2b

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 agoMemcached PHP client improvements
Tim Starling [Fri, 3 Aug 2012 07:03:03 +0000 (17:03 +1000)]
Memcached PHP client improvements

* When there is a read error, close the socket and mark the server dead,
  instead of continuing to send requests through it, causing a protocol
  violation.
* Also check for write errors.
* Increase the default stream and connect timeouts from 100ms to 500ms.
* Remove the commented-out _safe_fwrite() code that I wrote in 2005,
  that PHP bug is fixed now, so writes can be handled the same way as
  reads.
* Fix E_STRICT errors in get_multi() due to a resource being used as an
  array index.
* For performance, flush the read buffer less often (only on persistent
  connect).
* Move the fread() loop from _load_items() into its own new function.
* Be stricter about stripping expected newlines, don't just run trim() on
  everything.
* Make MemCachedClientforWiki into a simple alias since the distinction
  with MWMemcached was lost many years ago. We even renamed the class
  "MWMemcached".
* Remove vim modeline made incorrect by 19d6293 (Nov 2009).

Change-Id: I81de31049b87038999e37054d8d174a782c78a68

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