lhc/web/wiklou.git
11 years agoFor consistency of the interface, don't do expensive checks on page view.
Alexandre Emsenhuber [Sat, 14 Jul 2012 19:30:49 +0000 (21:30 +0200)]
For consistency of the interface, don't do expensive checks on page view.

Also replaced two $this->getUser() calls with $user since that variable is
already in that method.

Change-Id: Iccda9f44a9cf6d3187895a8b6111bc62dca1e811

11 years agoFix for: Fatal error: Call to undefined method ApiDelete::getErrorsArray()
Reedy [Sat, 14 Jul 2012 00:11:54 +0000 (01:11 +0100)]
Fix for: Fatal error:  Call to undefined method ApiDelete::getErrorsArray()

Fatal error:  Call to undefined method ApiDelete::getErrorsArray() in /usr/local/apache/common-local/php-1.20wmf7/includes/api/ApiDelete.php on line 65

Caused by https://gerrit.wikimedia.org/r/#/c/7572/

Change-Id: Ib86fab94667ed50d172eb7ea3e82c99ecb3e52b0

11 years agoMerge "Moved getDatabase() from contribs pager to Pager class."
MaxSem [Fri, 13 Jul 2012 22:07:44 +0000 (22:07 +0000)]
Merge "Moved getDatabase() from contribs pager to Pager class."

11 years agoMerge "'lang' attrib in #mw-imagepage-content should use ->getHtmlCode()"
Siebrand [Fri, 13 Jul 2012 20:36:30 +0000 (20:36 +0000)]
Merge "'lang' attrib in #mw-imagepage-content should use ->getHtmlCode()"

11 years agoMerge "Update messages.inc and rebuild MessagesEn.php."
Siebrand [Fri, 13 Jul 2012 20:34:43 +0000 (20:34 +0000)]
Merge "Update messages.inc and rebuild MessagesEn.php."

11 years agoMerge "(bug 37587) Enforce language codes to be html safe"
Siebrand [Fri, 13 Jul 2012 19:47:33 +0000 (19:47 +0000)]
Merge "(bug 37587) Enforce language codes to be html safe"

11 years agoUpdate messages.inc and rebuild MessagesEn.php.
Alexandre Emsenhuber [Sat, 7 Jul 2012 14:16:00 +0000 (16:16 +0200)]
Update messages.inc and rebuild MessagesEn.php.

It allways annoys me to have lot of unwanted changes when
changing MessagesEn.php and rebuilding it when adding a new
messages, so I'm doing this in a separate change.

Change-Id: I71e1a7028e96eedfa522f6270aa618aa33e3ce17

11 years agoMoved getDatabase() from contribs pager to Pager class.
Aaron [Fri, 13 Jul 2012 18:47:01 +0000 (11:47 -0700)]
Moved getDatabase() from contribs pager to Pager class.

Change-Id: I9443ecd18cdaca614aa446b5457c837a039dafe3

11 years agoMerge "merge two foreach in Special:Contributions"
Aaron Schulz [Fri, 13 Jul 2012 18:44:18 +0000 (18:44 +0000)]
Merge "merge two foreach in Special:Contributions"

11 years agoMerge "(bug 38093) Gender of changed user groups missing in log"
Aaron Schulz [Fri, 13 Jul 2012 18:40:44 +0000 (18:40 +0000)]
Merge "(bug 38093) Gender of changed user groups missing in log"

11 years agoMerge "Add call to GenderCache in list=allpages"
Aaron Schulz [Fri, 13 Jul 2012 18:38:16 +0000 (18:38 +0000)]
Merge "Add call to GenderCache in list=allpages"

11 years agoMerge "Add userToolLinks on Special:FileDuplicateSearch"
Aaron Schulz [Fri, 13 Jul 2012 18:30:16 +0000 (18:30 +0000)]
Merge "Add userToolLinks on Special:FileDuplicateSearch"

11 years agoMerge "fix diff against archived revision deleted version"
Aaron Schulz [Fri, 13 Jul 2012 18:17:56 +0000 (18:17 +0000)]
Merge "fix diff against archived revision deleted version"

11 years agoMerge "Sort result of FileRepo::findBySha1"
Aaron Schulz [Fri, 13 Jul 2012 18:14:28 +0000 (18:14 +0000)]
Merge "Sort result of FileRepo::findBySha1"

11 years agoMerge "Increase length of edit summary by 5 bytes"
Aaron Schulz [Fri, 13 Jul 2012 18:13:48 +0000 (18:13 +0000)]
Merge "Increase length of edit summary by 5 bytes"

11 years agoSort result of FileRepo::findBySha1
umherirrender [Sun, 8 Jul 2012 08:45:21 +0000 (10:45 +0200)]
Sort result of FileRepo::findBySha1

This sorts the result on Special:FileDuplicateSearch, which is unsorted,
when merged from different repos.

Adding File::compare similar to Title::compare for this

Change-Id: I32e8be92c6067f9e13f3ecd1039c337b0fc3e840

11 years agoIncrease length of edit summary by 5 bytes
umherirrender [Fri, 13 Jul 2012 18:07:34 +0000 (20:07 +0200)]
Increase length of edit summary by 5 bytes

Language::truncate subtracts the length of ellipses from the whole
length since 1.18, that means, there is no need for a buffer for the
ellipses.

Change-Id: I5c39a6c4160f16156c8928dd954f065f9e3c7a5c

11 years agoMerge "memcached: better error messaging"
Aaron Schulz [Fri, 13 Jul 2012 18:04:47 +0000 (18:04 +0000)]
Merge "memcached: better error messaging"

11 years agoMerge "Fix casing of wgDBerrorLogInUtc"
Reedy [Fri, 13 Jul 2012 18:03:15 +0000 (18:03 +0000)]
Merge "Fix casing of wgDBerrorLogInUtc"

11 years agoFix casing of wgDBerrorLogInUtc
Reedy [Fri, 13 Jul 2012 18:02:12 +0000 (19:02 +0100)]
Fix casing of wgDBerrorLogInUtc

Change-Id: I644ea64b1a40160f3468ec35836ee9aa003c03de

11 years agoMerge "Do not show empty categories with list=allcategories"
Aaron Schulz [Fri, 13 Jul 2012 17:27:05 +0000 (17:27 +0000)]
Merge "Do not show empty categories with list=allcategories"

11 years agoMerge "Exception on Special:NewFiles, when no bot group is defined"
Aaron Schulz [Fri, 13 Jul 2012 17:25:29 +0000 (17:25 +0000)]
Merge "Exception on Special:NewFiles, when no bot group is defined"

11 years agoMerge "cleanup callback in usort call"
Aaron Schulz [Fri, 13 Jul 2012 17:24:57 +0000 (17:24 +0000)]
Merge "cleanup callback in usort call"

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

This patch add a new message when fgets( <socket> ) return false and
attempt to get the remote peer address / port to append to the error
message. Might help us find out which memcached server is wild.

Change-Id: If918e824970aaa8231078e42fd28d31e8dd4e319

11 years agoMerge "ignore all local bot groups in newbie mode on Special:Contribs"
Aaron Schulz [Fri, 13 Jul 2012 15:38:16 +0000 (15:38 +0000)]
Merge "ignore all local bot groups in newbie mode on Special:Contribs"

11 years agodbErrorLog can now be forced to UTC
Antoine Musso [Fri, 13 Jul 2012 14:53:06 +0000 (16:53 +0200)]
dbErrorLog can now be forced to UTC

$wgDBerrorLog is used to log database error. It is using
$wgLocalTimezone to format the date which might not always be wanted in
a multi Timezone cluster of wiki.

wgDBerrorLogInUTC , when true, will override the Wiki timezone to uses
UTC whenever a database error is logged.

Change-Id: I091d6029272b69db0aefdebfc37896d0a8e8770e

11 years agoDo not show empty categories with list=allcategories
umherirrender [Fri, 13 Jul 2012 14:54:15 +0000 (16:54 +0200)]
Do not show empty categories with list=allcategories

Special:Categories is also not showing empty categories.

Change-Id: If23a763c887ed827ed548ff2af6abea04e46dbb9

11 years agoignore all local bot groups in newbie mode on Special:Contribs
umherirrender [Fri, 13 Jul 2012 13:54:09 +0000 (15:54 +0200)]
ignore all local bot groups in newbie mode on Special:Contribs

Change-Id: Ic9a6822e8f206a132c0884aba7f0f6191d22dade

11 years agoException on Special:NewFiles, when no bot group is defined
umherirrender [Fri, 13 Jul 2012 13:40:18 +0000 (15:40 +0200)]
Exception on Special:NewFiles, when no bot group is defined

When no user group has the permission 'bot', the list is empty and
Database::makeList throws an exception

Change-Id: I7ac5863ef22b1454857399b0cff52850eca7d3b8

11 years agoAdd getCanonicalServer to WikiMap
Reedy [Wed, 11 Jul 2012 21:04:19 +0000 (22:04 +0100)]
Add getCanonicalServer to WikiMap

Change-Id: I9473034ced524ea3d0b3ea9e4166b173653f58c4

11 years ago[FileBackend] Made copy script retry on batch copy failure.
Aaron Schulz [Thu, 12 Jul 2012 23:33:27 +0000 (16:33 -0700)]
[FileBackend] Made copy script retry on batch copy failure.

Change-Id: I5db35371a41fa72d449cba1fb7e15f19f0cefa21

11 years agoCatch exceptions thrown while running deferred updates.
Alexandre Emsenhuber [Thu, 12 Jul 2012 21:07:56 +0000 (23:07 +0200)]
Catch exceptions thrown while running deferred updates.

Such exceptions should not reported to the user because the main output
is already sent. Otherwise the user will recive a double reponse with
is just horribly looking. Instead just log these exceptions to keep a
trace of them. This also adds an higher isolation level for these
updates and the post-response cleanup.

Change-Id: I60c2c5ba8ab2ec2d835d8d3042584e98a62809be

11 years agoTell people not to start transactions in doUpdate.
daniel [Thu, 12 Jul 2012 20:50:48 +0000 (16:50 -0400)]
Tell people not to start transactions in doUpdate.

DataUpdate::runUpdates() object handle transations automatically,
code in doUpdate should not interfere with that.

Change-Id: I7575e1b77d58921813af24e015edb03cad5fdb3a

11 years agoMerge "Remove some unused variables"
Aaron Schulz [Thu, 12 Jul 2012 20:47:18 +0000 (20:47 +0000)]
Merge "Remove some unused variables"

11 years agoDocumentation improvements in Exception.php.
Alexandre Emsenhuber [Thu, 12 Jul 2012 19:58:30 +0000 (21:58 +0200)]
Documentation improvements in Exception.php.

Change-Id: I645025c9acbb91df48bb0f1ee3859840195c5e56

11 years agoMerge "[FileBackend] Tweaks to speed up backend copy script."
Aaron Schulz [Thu, 12 Jul 2012 18:21:43 +0000 (18:21 +0000)]
Merge "[FileBackend] Tweaks to speed up backend copy script."

11 years ago[FileBackend] Tweaks to speed up backend copy script.
Aaron Schulz [Thu, 12 Jul 2012 17:14:08 +0000 (10:14 -0700)]
[FileBackend] Tweaks to speed up backend copy script.

* Added 'missingonly' option to copy based only on a listing comparison.
* Made copy operation batches use doQuickOperations().

Change-Id: If5657a4c4d895980e27776357bb408b350727382

11 years ago[FileBackend] Factored out code into ProcessCacheLRU class.
Aaron Schulz [Sat, 30 Jun 2012 03:08:06 +0000 (20:08 -0700)]
[FileBackend] Factored out code into ProcessCacheLRU class.

Factor out duplicated code into the new ProcessCacheLRU. It is a fixed
size an per process cache which invalidate the least recently used cache
key.

Change-Id: Ib4475f21879ef6286ce2a28f248acd296fdbd45d

11 years agoRemove some unused variables
Reedy [Thu, 12 Jul 2012 00:09:37 +0000 (01:09 +0100)]
Remove some unused variables

Add some comments

Add some braces

Change-Id: I84c050b6baf8ef8d21735c1ba56b7782b3c54855

11 years ago[FileBackend] More Swift ACL documentation.
Aaron [Thu, 12 Jul 2012 00:03:57 +0000 (17:03 -0700)]
[FileBackend] More Swift ACL documentation.

Change-Id: If6a3f70824b05545e5ee5b406cd66fa2b046c981

11 years ago[FileBackend] Added hash skipping option to speed up script.
Aaron [Wed, 11 Jul 2012 23:34:43 +0000 (16:34 -0700)]
[FileBackend] Added hash skipping option to speed up script.

Change-Id: If810bbdeffdbfa37a3609992c3e8038ee4deebe6

11 years agoMerge "fix problem with retriving fresh LatestRevID when GAID_FOR_UPDATE"
Aaron Schulz [Wed, 11 Jul 2012 20:06:00 +0000 (20:06 +0000)]
Merge "fix problem with retriving fresh LatestRevID when GAID_FOR_UPDATE"

11 years agofix problem with retriving fresh LatestRevID when GAID_FOR_UPDATE
tomek [Tue, 10 Jul 2012 19:11:26 +0000 (15:11 -0400)]
fix problem with retriving fresh LatestRevID when GAID_FOR_UPDATE

Change-Id: Idff009752da3336383a20581d79ffd231332f463

11 years agoUse Linker::linkKnown() instead of Linker::link() with options at the end in ImagePag...
Alexandre Emsenhuber [Wed, 11 Jul 2012 07:18:07 +0000 (09:18 +0200)]
Use Linker::linkKnown() instead of Linker::link() with options at the end in ImagePage.php

Change-Id: I15848983bb675aac4cd017ab7712f884b928d708

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

Change-Id: If21a94598bfd4477ca696759eb71eafac0548df1

11 years ago[FileBackend] More documentation fixes.
Aaron Schulz [Wed, 11 Jul 2012 05:07:10 +0000 (22:07 -0700)]
[FileBackend] More documentation fixes.

Change-Id: I0841e66018522df18ad06a0ac075eb0fbab16e40

11 years ago[FileBackend] Documentation fixes.
Aaron Schulz [Wed, 11 Jul 2012 04:59:23 +0000 (21:59 -0700)]
[FileBackend] Documentation fixes.

Change-Id: Id98c2001c01ab03f63e85f4e08ea14f1750dd9ed

11 years ago[FileBackend] Refactored backend access control functions.
Aaron [Mon, 21 May 2012 22:19:06 +0000 (15:19 -0700)]
[FileBackend] Refactored backend access control functions.

* Made secure() no longer create the container/directories.
* Added a new publish() function, which is the reverse of secure().
  It's seems reasonable to be able to reverse secure() if needed.
* Added the ability to call prepare() with the secure() parameters.
  The "securing" will only be done if the container had to be created.
  This kills a bunch of slow RTTs with setContainerAccess() in Swift.
* Also made the Swift doSecureInternal() function respect the arguments
  and set 'r:*' to properly make containers public.
* Consolidated FileRepo directory creation into an initDirectory() function.
  This uses the new prepare() arguments.

Change-Id: Ie16331ebf26c99295f60b266e07a4727228f53f2

11 years agoOutputPage::setRevisionTimestamp typo in parameter
Antoine Musso [Tue, 10 Jul 2012 15:19:07 +0000 (17:19 +0200)]
OutputPage::setRevisionTimestamp typo in parameter

'stmap' instead of 'stamp'. I have updated:
- doc block
- function argument
- inner use of the argument

Change-Id: Ie7b663372632e4044464ae49ab42dce500838985

11 years agoMerge "(bug 36783) Implement Promise interface in mediawiki.api module."
Trevor Parscal [Tue, 10 Jul 2012 20:24:38 +0000 (20:24 +0000)]
Merge "(bug 36783) Implement Promise interface in mediawiki.api module."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 10 Jul 2012 19:46:43 +0000 (19:46 +0000)]
Merge "Localisation updates from translatewiki.net."

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

Change-Id: I3ccfbf0f3d1d8dbe5ae3f05210a153d42b2042d1

11 years agoMerge "[FileBackend] Only show "copied file(s)" for files the script had to copy."
Brion VIBBER [Tue, 10 Jul 2012 19:32:38 +0000 (19:32 +0000)]
Merge "[FileBackend] Only show "copied file(s)" for files the script had to copy."

11 years ago[FileBackend] Only show "copied file(s)" for files the script had to copy.
Aaron [Tue, 10 Jul 2012 19:20:55 +0000 (12:20 -0700)]
[FileBackend] Only show "copied file(s)" for files the script had to copy.

Change-Id: I22741303e05d6ea50d33875d9f7438d2b3905b18

11 years agoMerge "Use Xml::languageSelector in SpecialAllmessages"
Nikerabbit [Tue, 10 Jul 2012 19:19:01 +0000 (19:19 +0000)]
Merge "Use Xml::languageSelector in SpecialAllmessages"

11 years agoMerge "[FileBackend] Improved copy/sync script output."
Brion VIBBER [Tue, 10 Jul 2012 18:41:14 +0000 (18:41 +0000)]
Merge "[FileBackend] Improved copy/sync script output."

11 years agoMerge "(bug 38281) Fix grammar in the UPGRADE file"
Siebrand [Tue, 10 Jul 2012 18:38:09 +0000 (18:38 +0000)]
Merge "(bug 38281) Fix grammar in the UPGRADE file"

11 years ago[FileBackend] Improved copy/sync script output.
Aaron [Tue, 10 Jul 2012 18:33:24 +0000 (11:33 -0700)]
[FileBackend] Improved copy/sync script output.

Change-Id: I5f76fdb579cf17959093e7a8659839e8b8829b1c

11 years agoMerge "Drop characters in Unicode Private Use Area in conversion tables."
Siebrand [Tue, 10 Jul 2012 18:18:57 +0000 (18:18 +0000)]
Merge "Drop characters in Unicode Private Use Area in conversion tables."

11 years ago(bug 38281) Fix grammar in the UPGRADE file
Catrope [Tue, 10 Jul 2012 18:15:10 +0000 (11:15 -0700)]
(bug 38281) Fix grammar in the UPGRADE file

Change-Id: Idc95c9b394ae7f92e7cfd417b8eee4a5d277fa03

11 years agoMerge "[FileBackend] Added "ratefile" option for backend copy script."
Brion VIBBER [Tue, 10 Jul 2012 17:58:13 +0000 (17:58 +0000)]
Merge "[FileBackend] Added "ratefile" option for backend copy script."

11 years agoUse Xml::languageSelector in SpecialAllmessages
robin [Thu, 10 May 2012 19:46:14 +0000 (21:46 +0200)]
Use Xml::languageSelector in SpecialAllmessages

Improve Xml::languageSelector: add parameters to change label message and id/name of the select tag.

Use languageSelector in SpecialAllmessages (less code duplication)

Patchset 10 July: add tests per MaxSem; add version for new parameters and change the message parameter to require a Message object per Nikerabbit

Change-Id: I7fbb29ee2dc37a2b6a5e2cfc88207a0b47b83e9b

11 years ago[FileBackend] Added "ratefile" option for backend copy script.
Aaron [Mon, 9 Jul 2012 23:30:44 +0000 (16:30 -0700)]
[FileBackend] Added "ratefile" option for backend copy script.

* This can be used to control the concurrency dynamically.

Change-Id: I7ebdbffa144928f559c34c4a4684b03597f616ce

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Tue, 10 Jul 2012 16:50:19 +0000 (18:50 +0200)]
Improve documentation of maintenance scripts.

Change-Id: I0e2869970c46f4fd14b792f2978cc1ba9d8550be

11 years agoMerge changes Icfd267a9,If956c0a1,I0e232273,Ia84494c8,Ib70e0046,If2c01a11,I40196371
Reedy [Tue, 10 Jul 2012 16:12:55 +0000 (16:12 +0000)]
Merge changes Icfd267a9,If956c0a1,I0e232273,Ia84494c8,Ib70e0046,If2c01a11,I40196371

* changes:
  prettify documentation
  converts '@fixme' to '@todo FIXME'
  update @param @return doc in several files
  prettify filerepo documentation
  prettify SkinTemplate:makeLink documentation
  move parameter doc under @param
  escape tags and entity in doxygen comments

11 years agoChannelFeed now marked as an abstract class
Antoine Musso [Tue, 10 Jul 2012 11:14:07 +0000 (13:14 +0200)]
ChannelFeed now marked as an abstract class

The ChannelFeed class has always been considered as an abstract class.
Looks like we forgot to update its definition since PHP switched to
support class abstractions.

Also marked abstract the three inner methods that must be extended:

 ChannelFeed::outHeader()
 ChannelFeed::outItem()
 ChannelFeed::outFooter()

Change-Id: Ie0111786af37531d53ee3fc845e0125136ca298f

11 years agoremove unneeded @abstract
Antoine Musso [Tue, 10 Jul 2012 15:23:20 +0000 (17:23 +0200)]
remove unneeded @abstract

Doxygen does recognize abstract methods when it is properly marked as
abstracted. That keyword is a left.

Change-Id: I7df790058edf0eefb07eb4c37a2586b5c16898e3

11 years agoDrop characters in Unicode Private Use Area in conversion tables.
Liangent [Tue, 10 Jul 2012 15:33:26 +0000 (23:33 +0800)]
Drop characters in Unicode Private Use Area in conversion tables.

Change-Id: I635f3a45d13c82342c70490231e2c77cb2d96e2e

11 years agoprettify documentation
Antoine Musso [Tue, 10 Jul 2012 15:18:20 +0000 (17:18 +0200)]
prettify documentation

Change-Id: Icfd267a94ac981b4c15e51add18c6d8ceb68454e

11 years agoconverts '@fixme' to '@todo FIXME'
Antoine Musso [Tue, 10 Jul 2012 15:16:46 +0000 (17:16 +0200)]
converts '@fixme' to '@todo FIXME'

@fixme is simply not recognized by doxygen whereas @todo is used to
generate a nice ... todo list!!

Change-Id: If956c0a164373126ce48b791d45c56962034eecd

11 years agoupdate @param @return doc in several files
Antoine Musso [Tue, 10 Jul 2012 14:58:52 +0000 (16:58 +0200)]
update @param @return doc in several files

Change-Id: I0e23227330f90dc4121fd2a313d2e9a33c3c97a7

11 years agoprettify filerepo documentation
Antoine Musso [Tue, 10 Jul 2012 14:46:22 +0000 (16:46 +0200)]
prettify filerepo documentation

Change-Id: Ia84494c8c0c09a3d509975d63ab698e0a35c4631

11 years agoprettify SkinTemplate:makeLink documentation
Antoine Musso [Tue, 10 Jul 2012 14:45:44 +0000 (16:45 +0200)]
prettify SkinTemplate:makeLink documentation

Change-Id: Ib70e00460c8e01ec810a4123b7eec52c3632b99d

11 years agomove parameter doc under @param
Antoine Musso [Tue, 10 Jul 2012 13:12:30 +0000 (15:12 +0200)]
move parameter doc under @param

The description of an array of parameter really belong under @param,
makes doxygen HTML documentation nicer.

Change-Id: If2c01a11b8dbf02b272b7ccce591a92293346731

11 years agoescape tags and entity in doxygen comments
Antoine Musso [Tue, 10 Jul 2012 12:48:06 +0000 (14:48 +0200)]
escape tags and entity in doxygen comments

When inserting XML elements inline <such as this one>, doxygen chokes
about it not being known. Simply enclosing the tag in double quotes
prevents doxygen from emitting a warning.

Also enclosed a few invalid functions calls such as \. and double quoted
the HTML entities such as &foobar;

Change-Id: I4019637145e683c2bec3d17b2fd98b0c50a932f1

11 years agoMerge "Fixed Language::isValidBuiltInCode exception."
Reedy [Mon, 9 Jul 2012 20:40:32 +0000 (20:40 +0000)]
Merge "Fixed Language::isValidBuiltInCode exception."

11 years agoMerge "adjust method comment for Ia19f1011"
Aaron Schulz [Mon, 9 Jul 2012 20:25:37 +0000 (20:25 +0000)]
Merge "adjust method comment for Ia19f1011"

11 years agoFixed Language::isValidBuiltInCode exception.
Aaron [Mon, 9 Jul 2012 20:10:05 +0000 (13:10 -0700)]
Fixed Language::isValidBuiltInCode exception.

Change-Id: Ib7c7c0f3ed9382beea5fb0a9b2aa1809f75a8e1c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 9 Jul 2012 20:01:49 +0000 (20:01 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ibee3987c8a3848e94975a63ecfa832f601b86347

11 years ago(bug 37587) Enforce language codes to be html safe
Niklas Laxström [Thu, 28 Jun 2012 14:52:56 +0000 (14:52 +0000)]
(bug 37587) Enforce language codes to be html safe

Fixes bug 37587 and many other issues which
might or might not have been reported yet.

Change-Id: I612b90931a0261990bcd294fdb12cfba930c8c2f

11 years agoPrevent duplicate edits due to failure to load the current revision.
Aaron [Mon, 9 Jul 2012 17:27:53 +0000 (10:27 -0700)]
Prevent duplicate edits due to failure to load the current revision.

* This works via throwing an exception. Ideally, a deeper fix can be
  made so the exception stops getting triggered anymore.

Change-Id: Ie6a11016be9f9e5a76e2f6f369bc3aac42d78c2d

11 years agoMerge "(bug 36819) Lowercase ba,bat-smg,bxr,crh,krc,kv,mdf,mhr,mrj,myv,tyv,vep,xal"
MaxSem [Mon, 9 Jul 2012 14:31:00 +0000 (14:31 +0000)]
Merge "(bug 36819) Lowercase ba,bat-smg,bxr,crh,krc,kv,mdf,mhr,mrj,myv,tyv,vep,xal"

11 years agoMerge "(bug 36819) Lowercase Kazakh and Uzbek"
MaxSem [Mon, 9 Jul 2012 14:30:11 +0000 (14:30 +0000)]
Merge "(bug 36819) Lowercase Kazakh and Uzbek"

11 years ago(bug 36819) Lowercase av,ce,lbe and lez
Viačeslav [Sun, 8 Jul 2012 16:30:24 +0000 (18:30 +0200)]
(bug 36819) Lowercase av,ce,lbe and lez

Follow up to gerrit change 7306:

https://gerrit.wikimedia.org/r/#/c/7306/

Lowercase some language names from Caucasus

'av' => 'авар', # Avar
'ce' => 'нохчийн', # Chechen
'lbe' => 'лакку', # Lak
'lez' => 'лезги', # Lezgi

Change-Id: Ia5a8a28c6cc0159898469cc458dd366886916c86

11 years agoFlesh out parameter documentation etc
Reedy [Wed, 20 Jun 2012 21:45:21 +0000 (22:45 +0100)]
Flesh out parameter documentation etc

Remove some trailing whitespace

A bit of code simplification

Change-Id: Iea96a2482c53868713a43569be4e5de4c9edb2a2

11 years agoMerge "pass Language to wfMessage() calls"
Hashar [Mon, 9 Jul 2012 12:41:26 +0000 (12:41 +0000)]
Merge "pass Language to wfMessage() calls"

11 years agopass Language to wfMessage() calls
Alexandre Emsenhuber [Sat, 7 Jul 2012 16:37:31 +0000 (18:37 +0200)]
pass Language to wfMessage() calls

Pass the Language object to the wfMessage calls in
LogPage::getTitleLink() and LogPage::formatBlockFlags().

Change-Id: I4f8347d6616ee0e6be31b268679b398e108680c0

11 years agoMerge "Improve documentation of maintenance scripts."
Reedy [Sun, 8 Jul 2012 22:55:57 +0000 (22:55 +0000)]
Merge "Improve documentation of maintenance scripts."

11 years agoMerge "Add some trailing full stops"
Krinkle [Sun, 8 Jul 2012 21:27:16 +0000 (21:27 +0000)]
Merge "Add some trailing full stops"

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Sun, 8 Jul 2012 20:47:27 +0000 (22:47 +0200)]
Improve documentation of maintenance scripts.

Change-Id: I2433d23544e808e16f28805f93183b1af2409c94

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 8 Jul 2012 19:48:58 +0000 (19:48 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agomediawiki.api.edit: Use the new 'tokens' api action
Kaldari [Sun, 8 Jul 2012 04:58:30 +0000 (21:58 -0700)]
mediawiki.api.edit: Use the new 'tokens' api action

Use action=tokens instead of the old way with info properties
for a fake title.

Change-Id: I35cd26180e7af7122ff64ce146199cdaa5f7d88b

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

Change-Id: Ifbcaa781fc601b7887525fe83a93d8148569b624

11 years ago(bug 36783) Implement Promise interface in mediawiki.api module.
Timo Tijhof [Thu, 7 Jun 2012 20:45:53 +0000 (22:45 +0200)]
(bug 36783) Implement Promise interface in mediawiki.api module.

- Deprecates 'ok'/'err' properties.
  They still work, but are no longer mandatory.
  Instead the Promise interface should used.

- See unit tests for good examples of how it works.
  http://alpha.dev/mediawiki/core/wiki/Special:JavaScriptTest/qunit?module=mediawiki.api

- Migrated submodule "mediawiki.api.parse" as example.
  Other mediawiki.api.* submodules will be migrated later.

Change-Id: I4d8428124598093f220dd28a8cbf861686ab61a7

11 years ago(bug 36819) Lowercase Kazakh and Uzbek
Viačeslav [Sun, 8 Jul 2012 16:30:24 +0000 (18:30 +0200)]
(bug 36819) Lowercase Kazakh and Uzbek

Follow up to gerrit change 7306:

https://gerrit.wikimedia.org/r/#/c/7306/

Lowercase some Central Asian language names.

'kk' => 'қазақша', # Kazakh (multiple scripts - defaults to Cyrillic)
'kk-cyrl' => "\xE2\x80\xAAқазақша (кирил)\xE2\x80\xAC", # Kazakh Cyrillic
'kk-latn' => "\xE2\x80\xAAqazaqşa (latın)\xE2\x80\xAC", # Kazakh Latin
'kk-kz' => "\xE2\x80\xAAқазақша (Қазақстан)\xE2\x80\xAC", # Kazakh (Kazakhstan)
'kk-tr' => "\xE2\x80\xAAqazaqşa (Türkïya)\xE2\x80\xAC", # Kazakh (Turkey)
'uz' => 'oʻzbekcha', # Uzbek

Change-Id: Ieb56ff2854464ea57169985b40fb7f6fdcfacc33

11 years ago(bug 36819) Lowercase ba,bat-smg,bxr,crh,krc,kv,mdf,mhr,mrj,myv,tyv,vep,xal
Viačeslav [Sun, 8 Jul 2012 16:30:24 +0000 (18:30 +0200)]
(bug 36819) Lowercase ba,bat-smg,bxr,crh,krc,kv,mdf,mhr,mrj,myv,tyv,vep,xal

Follow up to gerrit change 7306:

https://gerrit.wikimedia.org/r/#/c/7306/

Lowercase some Eastern European and Central Asian
language names.

'ba' => 'башҡортса', # Bashkir
'bat-smg' => 'žemaitėška', # Samogitian (deprecated code, 'sgs' in ISO 693-3 since 2010-06-30 )
'bxr' => 'буряад', # Buryat (Russia)
'crh' => 'qırımtatarca',   # Crimean Tatar (multiple scripts - defaults to Latin)
'crh-latn' => "\xE2\x80\xAAqırımtatarca (Latin)\xE2\x80\xAC",       # Crimean Tatar (Latin)
'crh-cyrl' => "\xE2\x80\xAAкъырымтатарджа (Кирилл)\xE2\x80\xAC",       # Crimean Tatar (Cyrillic)
'krc' => 'къарачай-малкъар', # Karachay-Balkar
'kv' => 'коми', # Komi-Zyrian (Cyrillic is common script but also written in Latin script)
'mdf' => 'мокшень', # Moksha
'mhr' => 'олык марий', # Eastern Mari
'mrj' => 'кырык мары', # Hill Mari
'myv' => 'эрзянь', # Erzya
'tyv' => 'тыва дыл', # Tyvan
'udm' => 'удмурт', # Udmurt
'vep' => 'vepsän kel’', # Veps
'xal' => 'хальмг', # Kalmyk-Oirat (Kalmuk, Kalmuck, Kalmack, Qalmaq, Kalmytskii Jazyk, Khal:mag, Oirat, Volga Oirat, European Oirat, Western Mongolian)

Change-Id: I47ad9b05eca9f5c2fe69ef2e8f5325371b0f9e89

11 years agofix diff against archived revision deleted version
umherirrender [Sun, 17 Jun 2012 19:56:00 +0000 (21:56 +0200)]
fix diff against archived revision deleted version

In my opinion, this does not make problems with caching.

Change-Id: I637401c92cadc78c1443ffb2e16d03b956c3bfa5

11 years agoAdd call to GenderCache in list=allpages
umherirrender [Fri, 8 Jun 2012 12:24:39 +0000 (14:24 +0200)]
Add call to GenderCache in list=allpages

Without this call, each user page can produce a query to get the gender
state.

Change-Id: I430c9922008cfea57b02da112087a7d52aeb4d23

11 years agocleanup callback in usort call
umherirrender [Sun, 8 Jul 2012 09:40:50 +0000 (11:40 +0200)]
cleanup callback in usort call

Change-Id: Iac42074d46cf9185339596cff167d72b0a8704b4

11 years agoMerge "(bug 38237) Add missing parentheses around diff links on Special:Undelete"
Reedy [Sat, 7 Jul 2012 21:31:00 +0000 (21:31 +0000)]
Merge "(bug 38237) Add missing parentheses around diff links on Special:Undelete"