lhc/web/wiklou.git
11 years ago(bug 43808) PHPUnit Makefile is now compatible with BSD make.
Dereckson [Thu, 10 Jan 2013 03:12:42 +0000 (04:12 +0100)]
(bug 43808) PHPUnit Makefile is now compatible with BSD make.

Change-Id: Icf2d340524760ad17913a2e4231396a82c2dddf5

11 years agoMerge "Fixed return type doc"
IAlex [Thu, 10 Jan 2013 05:37:48 +0000 (05:37 +0000)]
Merge "Fixed return type doc"

11 years agoMerge "Add some more template-affected wiki link variants"
Subramanya Sastry [Thu, 10 Jan 2013 01:38:29 +0000 (01:38 +0000)]
Merge "Add some more template-affected wiki link variants"

11 years agoAdd some more template-affected wiki link variants
Gabriel Wicke [Thu, 10 Jan 2013 01:35:09 +0000 (17:35 -0800)]
Add some more template-affected wiki link variants

Change-Id: Ib254c1112f4e62d5e4a7cc2fca6506813b118a77

11 years agoMerge "improve doc"
jenkins-bot [Thu, 10 Jan 2013 01:31:37 +0000 (01:31 +0000)]
Merge "improve doc"

11 years agoMerge "Supress the root namespacing from DBQueryError."
jenkins-bot [Thu, 10 Jan 2013 01:25:42 +0000 (01:25 +0000)]
Merge "Supress the root namespacing from DBQueryError."

11 years agoMerge "(bug 43661) Added test for special link trail case"
GWicke [Thu, 10 Jan 2013 00:53:07 +0000 (00:53 +0000)]
Merge "(bug 43661) Added test for special link trail case"

11 years agoMerge "(bug 43211) Add mw-navigation to CSS for display:none on print."
Kaldari [Thu, 10 Jan 2013 00:51:02 +0000 (00:51 +0000)]
Merge "(bug 43211) Add mw-navigation to CSS for display:none on print."

11 years ago(bug 43211) Add mw-navigation to CSS for display:none on print.
Matthew Flaschen [Mon, 17 Dec 2012 21:35:10 +0000 (16:35 -0500)]
(bug 43211) Add mw-navigation to CSS for display:none on print.

Change-Id: Icdd08e833b9dcc503cadd83d2b7a7b6460699313

11 years agoMerge "[JobQueue] Improved de-duplication stat calls."
Demon [Wed, 9 Jan 2013 22:40:19 +0000 (22:40 +0000)]
Merge "[JobQueue] Improved de-duplication stat calls."

11 years agoMerge "[FileBackend] Suppress most file warnings but log them to an FSFileBackend...
Demon [Wed, 9 Jan 2013 22:33:50 +0000 (22:33 +0000)]
Merge "[FileBackend] Suppress most file warnings but log them to an FSFileBackend log."

11 years agoimprove doc
jeroendedauw [Wed, 9 Jan 2013 22:13:07 +0000 (23:13 +0100)]
improve doc

Change-Id: I61d0a55238c1240bc351da4712a8b12659a7ceec

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 9 Jan 2013 21:57:19 +0000 (21:57 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9d5344da80e23f509a084550770f833d8780c015

11 years ago[JobQueue] Improved de-duplication stat calls.
Aaron Schulz [Wed, 9 Jan 2013 18:29:23 +0000 (10:29 -0800)]
[JobQueue] Improved de-duplication stat calls.

Change-Id: Ib8e3452c9e42b20389c515e7dd8e030b0900497d

11 years ago(bug 39397) Only show rollback links if they work
Marius Hoch [Thu, 1 Nov 2012 20:04:12 +0000 (21:04 +0100)]
(bug 39397) Only show rollback links if they work

To only show rollback links if they work I had to patch Linker
to have a function (Linker::rollbackData) which can verify
that the editor isn't the only editor of the page. Furthermore
it is checked that the user name or the text of the revision
we might rollback to isn't deleted. Due to the fact that I've
altered the already existing method which showed how many edits
a rollback will revert for that, this wont affect the performance.

Change-Id: I5d1adec993370c39ae8c5c712edd919d456441c6

11 years agoMerge "Bug 11057 - Increase size of ug_group in user_groups table"
jenkins-bot [Wed, 9 Jan 2013 14:22:52 +0000 (14:22 +0000)]
Merge "Bug 11057 - Increase size of ug_group in user_groups table"

11 years agoReplace hardcoded native language names with core parser function
raymond [Wed, 9 Jan 2013 13:38:42 +0000 (14:38 +0100)]
Replace hardcoded native language names with core parser function

Works well on Commons: https://commons.wikimedia.org/wiki/MediaWiki:Loginlanguagelinks

Change-Id: I1ee8278aea3457d12695a2e4d9b841c32cb67ffa

11 years agoSupress the root namespacing from DBQueryError.
Platonides [Wed, 9 Jan 2013 13:30:30 +0000 (14:30 +0100)]
Supress the root namespacing from DBQueryError.

Makes check-vars happy.

Change-Id: Iaaa4cad5b54a20b2f8ed93dd14eaf12e3c9ebd03

11 years agoMerge "Add message documentation and message key to maintenance file"
raymond [Wed, 9 Jan 2013 08:43:49 +0000 (08:43 +0000)]
Merge "Add message documentation and message key to maintenance file"

11 years agoAdd message documentation and message key to maintenance file
raymond [Wed, 9 Jan 2013 08:40:02 +0000 (09:40 +0100)]
Add message documentation and message key to maintenance file

Per I2096f50b

Change-Id: Id9e65ef9c848e14750799888f75d7fc0e2c1d625

11 years agoMerge "Tidy up declaration of $wgSiteTypes"
jenkins-bot [Wed, 9 Jan 2013 08:31:33 +0000 (08:31 +0000)]
Merge "Tidy up declaration of $wgSiteTypes"

11 years agoMerge "Miscellaneous profiling fixes"
jenkins-bot [Wed, 9 Jan 2013 08:24:16 +0000 (08:24 +0000)]
Merge "Miscellaneous profiling fixes"

11 years agoMerge "Allow preferences that need not be rendered in Special:Preferences"
jenkins-bot [Wed, 9 Jan 2013 07:57:37 +0000 (07:57 +0000)]
Merge "Allow preferences that need not be rendered in Special:Preferences"

11 years agoTidy up declaration of $wgSiteTypes
Reedy [Wed, 9 Jan 2013 05:48:09 +0000 (05:48 +0000)]
Tidy up declaration of $wgSiteTypes

Change-Id: I7eabc83bd7a6e0ffba6075e0caffd8420b01721f

11 years agoAdded async upload-from-stash support.
Aaron Schulz [Tue, 4 Dec 2012 02:18:48 +0000 (18:18 -0800)]
Added async upload-from-stash support.

* This works similarly to the async concatenation code.

Change-Id: Iae38b93d65182158561b92168af51a1e9f50374c

11 years agoMerge "Set timeout for AssembleUploadChunks.php."
MarkTraceur [Wed, 9 Jan 2013 00:31:22 +0000 (00:31 +0000)]
Merge "Set timeout for AssembleUploadChunks.php."

11 years agoSet timeout for AssembleUploadChunks.php.
Aaron Schulz [Wed, 9 Jan 2013 00:08:51 +0000 (16:08 -0800)]
Set timeout for AssembleUploadChunks.php.

* This change was placed in the wrong commit instead.

Change-Id: I2de6bf1e3a3101b4fa733b8cc0911ac77b38e921

11 years ago[JobQueue] Minor doc cleanup.
Aaron Schulz [Wed, 9 Jan 2013 00:04:24 +0000 (16:04 -0800)]
[JobQueue] Minor doc cleanup.

Change-Id: I1059f45f77ff4097a7e72d5210822bb4e5bdeaee

11 years agoMerge "Add support for mulitpart mime email to email sending code"
Tychay [Tue, 8 Jan 2013 23:32:11 +0000 (23:32 +0000)]
Merge "Add support for mulitpart mime email to email sending code"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 8 Jan 2013 20:13:16 +0000 (20:13 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If3901d13b72f526be319d8626e3d101767eccdbc

11 years ago(bug 43661) Added test for special link trail case
Mark Holmquist [Mon, 7 Jan 2013 23:43:37 +0000 (15:43 -0800)]
(bug 43661) Added test for special link trail case

Parsoid is now constructing link trails based on a few rules, one of which
dealt with link prefixes. However, that caused some regressions that weren't
tested until now.

Change-Id: Id205589bb06bc5b290e67d4f4731f0e8e7215dee

11 years agoFixed return type doc
jeroendedauw [Tue, 8 Jan 2013 18:47:00 +0000 (19:47 +0100)]
Fixed return type doc

Change-Id: Ie326867633bcf4bf03a9047fa8fa62cc66520d32

11 years agoMerge "Catch excpt to avoid fatal in Message::__toString"
jenkins-bot [Tue, 8 Jan 2013 17:32:14 +0000 (17:32 +0000)]
Merge "Catch excpt to avoid fatal in Message::__toString"

11 years agoCatch excpt to avoid fatal in Message::__toString
daniel [Mon, 7 Jan 2013 13:48:04 +0000 (14:48 +0100)]
Catch excpt to avoid fatal in Message::__toString

PHP doesn't allow __toString to throw exceptions and will
trigger a fatal error if it does. So, catch any exceptions
and try to report them using wfWarn.

Change-Id: I52d38e9a927da4db18f4733fd207f9396adedf94

11 years ago(bug 41365) Added transclusion count to InfoAction.
Tyler Anthony Romeo [Fri, 2 Nov 2012 20:15:37 +0000 (16:15 -0400)]
(bug 41365) Added transclusion count to InfoAction.

Currently InfoAction lists the pages that are transcluded
onto the specified page. This adds a list of pages on which
the current page is transcluded. Also, it adds an option to
limit the list size for transclusion links due to memory
concerns.

Change-Id: I45b077cf3f241b1927f7b1818b04b72115d55c28

11 years agoMerge "Language::listToText cleanup with unit test"
jenkins-bot [Tue, 8 Jan 2013 16:02:21 +0000 (16:02 +0000)]
Merge "Language::listToText cleanup with unit test"

11 years agoLive preview no longer experimental
Siebrand Mazeland [Tue, 8 Jan 2013 13:59:58 +0000 (14:59 +0100)]
Live preview no longer experimental

Per I85ca97a1.

Change-Id: I50580190493421f8b9ce721c99f19af1f98db6d7

11 years ago[JobQueue] Added support for using an external DB.
Aaron Schulz [Fri, 21 Dec 2012 01:29:02 +0000 (17:29 -0800)]
[JobQueue] Added support for using an external DB.

* Added a new ScopedCallback class to handle reuseConnection() easily.

Change-Id: Icfab280f0173c2cb1ac44cc0bd45e9202600687b

11 years agoMerge "[JobQueue] Some tweaks to reduce claimRandom() retries."
Tim Starling [Tue, 8 Jan 2013 00:05:30 +0000 (00:05 +0000)]
Merge "[JobQueue] Some tweaks to reduce claimRandom() retries."

11 years agoMerge "Follow-up I5f7f6da0 (cefb9ef): pass the User parameter to more LogEventsList...
jenkins-bot [Mon, 7 Jan 2013 23:39:34 +0000 (23:39 +0000)]
Merge "Follow-up I5f7f6da0 (cefb9ef): pass the User parameter to more LogEventsList::getExcludeClause() calls"

11 years agoEnforce time limit within AssembleUploadChunks.php.
Aaron Schulz [Mon, 7 Jan 2013 23:19:20 +0000 (15:19 -0800)]
Enforce time limit within AssembleUploadChunks.php.

Change-Id: I8cfcb09da8e7e9020e6b5dfbc5e727522d01b7c1

11 years agoSet the wiki ID for AssembleUploadChunks.php call for wiki farms.
Aaron Schulz [Mon, 7 Jan 2013 22:32:14 +0000 (14:32 -0800)]
Set the wiki ID for AssembleUploadChunks.php call for wiki farms.

Change-Id: I342998b45309315b9a1dc75833c997c286874505

11 years agoMerge "Makes WebRequest::detectProtocolAndStdPort() take HTTP_X_FORWARDED_PROTO heade...
jenkins-bot [Mon, 7 Jan 2013 22:14:13 +0000 (22:14 +0000)]
Merge "Makes WebRequest::detectProtocolAndStdPort() take HTTP_X_FORWARDED_PROTO headers into account"

11 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Mon, 7 Jan 2013 21:24:27 +0000 (21:24 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 7 Jan 2013 20:42:38 +0000 (20:42 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic0989e61db2b1d5031e3eda8928c9f3b31e797ca

11 years agoMerge "Update docs"
IAlex [Mon, 7 Jan 2013 20:36:38 +0000 (20:36 +0000)]
Merge "Update docs"

11 years agoLanguage::listToText cleanup with unit test
Yuri Astrakhan [Mon, 7 Jan 2013 09:59:16 +0000 (04:59 -0500)]
Language::listToText cleanup with unit test

Change-Id: If88ab7da07e336fc5f6264c7d6b4f6ce542f99c9

11 years agoMerge "(minor) Make ORMTable handle failed queries nicely."
jenkins-bot [Mon, 7 Jan 2013 18:12:37 +0000 (18:12 +0000)]
Merge "(minor) Make ORMTable handle failed queries nicely."

11 years agoMerge "(bug 42064) Make EditFilterMergedContent more generic."
jenkins-bot [Mon, 7 Jan 2013 18:07:06 +0000 (18:07 +0000)]
Merge "(bug 42064) Make EditFilterMergedContent more generic."

11 years ago[JobQueue] Some tweaks to reduce claimRandom() retries.
Aaron Schulz [Thu, 13 Dec 2012 00:45:02 +0000 (16:45 -0800)]
[JobQueue] Some tweaks to reduce claimRandom() retries.

* Use a small OFFSET to avoid excess claim retries for large queues.
* Use job_random to avoid excess claim retries for small queues.

Change-Id: I7da20a6684902122c7bc82b9633eab4bc7aecb89

11 years agoUpdate docs
Siebrand Mazeland [Mon, 7 Jan 2013 18:00:05 +0000 (19:00 +0100)]
Update docs

Change-Id: I31e9608ed3cef09656dac6ce6079259585299cb1

11 years agoMerge "(bug 43684) Don't bother creating a new context in SpecialPageFactory::getUsab...
jenkins-bot [Mon, 7 Jan 2013 17:53:58 +0000 (17:53 +0000)]
Merge "(bug 43684) Don't bother creating a new context in SpecialPageFactory::getUsablePages"

11 years agophp maintenance/language/rebuildLanguage.php --lang=en
Siebrand Mazeland [Mon, 7 Jan 2013 15:17:00 +0000 (16:17 +0100)]
php maintenance/language/rebuildLanguage.php --lang=en

Change-Id: Ibd542bdc9ca2531ab0a8a29c0ac471de0b902f30

11 years agoFollow-up I0e5d3cfb: Spelling consistency update
Siebrand Mazeland [Mon, 7 Jan 2013 15:15:19 +0000 (16:15 +0100)]
Follow-up I0e5d3cfb: Spelling consistency update

Change-Id: Id58e893a091025c4cb0a0d9d64ae0ff79193969c

11 years agoDisable protection in case there aren't any restriction types
Marius Hoch [Thu, 22 Nov 2012 21:04:40 +0000 (22:04 +0100)]
Disable protection in case there aren't any restriction types

This change disables the protection form and hides the protect
links in case there aren't any restriction types avialable.
Having no restriction types available let to a PHP notice and an
uggly, broken form. This became necessary as there are cases
in which no restriction types are avialable (caused by extensions)
eg. https://gerrit.wikimedia.org/r/34662

Change-Id: I0e5d3cfb299808ca14ead6baec0a18091acaa2b2

11 years ago(minor) Make ORMTable handle failed queries nicely.
daniel [Wed, 5 Dec 2012 16:10:31 +0000 (17:10 +0100)]
(minor) Make ORMTable handle failed queries nicely.

Database::select will return false if a query fails and the DB object
is set to "ignore errors" mode. ORMTable now detect this and throw
a DBQueryError, overriding the ignore errors mode.

This change also adds a dummy implementation for ORMTable to ORMTableTest,
so tests can be run on the base implementation.

Change-Id: I5d87295626c0800c38f807d19becb312ba7cc956

11 years agoAllow preferences that need not be rendered in Special:Preferences
Santhosh Thottingal [Fri, 7 Dec 2012 07:22:10 +0000 (12:52 +0530)]
Allow preferences that need not be rendered in Special:Preferences

Extensions can use their own interface for user preferences, with the
help of the action=options API.

For example, Universal Language Selector has a different UI to
allow anonymous and logged in users to set language related preferences.

Validation for the preference values is up to the extensions.

Change-Id: I18a5ffb5cc202c59ba76b86cfb63e49010cc1881

11 years ago(bug 42064) Make EditFilterMergedContent more generic.
daniel [Thu, 3 Jan 2013 10:30:46 +0000 (11:30 +0100)]
(bug 42064) Make EditFilterMergedContent more generic.

This is part a the solution to bug 42064: it modifies the EditFilterMergedContent hook
to allow it to be triggered by code outside the EditPage. This is useful when extensions
such as Wikibase implement their own editing mechanism for non-textual content.

Allowing EditFilterMergedContent to be used on non-textual content ensures that
any filters will also be applied to that content.

Note that EditFilterMergedContent was introduced in 1.21 which hasn't been released yet,
so modifying the hooks definition should not be a problem. The only extension that appears
to use the EditFilterMergedContent hook is Translate. I'll supply a patch.

To completely fix bug 42064, I will soon submit two changes to two extensions:

* In the Wikibase extension, trigger the EditFilterMergedContent when changing data
entities.

* In AbuseFilter, make use of the EditFilterMergedContent hook, so filters will also be
applied to non-textual content.

The the dicsussion on bugzilla for the rationale of this architecture.

Change-Id: I99a19c93e99860a91d7f898b0a3fbb72b69baab8

11 years agoMerge "Revert "Also delete the page information cache when invalidating cache of...
jenkins-bot [Mon, 7 Jan 2013 12:11:33 +0000 (12:11 +0000)]
Merge "Revert "Also delete the page information cache when invalidating cache of a non-existing page""

11 years agoRevert "Also delete the page information cache when invalidating cache of a non-exist...
Siebrand [Mon, 7 Jan 2013 12:06:51 +0000 (12:06 +0000)]
Revert "Also delete the page information cache when invalidating cache of a non-existing page"

Breaks LiquidThreads per bug 43693 and worsens bug 37209.

This reverts commit b3ff701cba6578ff0994ef3b42efcb1ba4eac9cd

11 years agoRemove docs for hook LoggableUserIPData
Siebrand Mazeland [Fri, 4 Jan 2013 16:04:17 +0000 (17:04 +0100)]
Remove docs for hook LoggableUserIPData

Hook does not exist (anymore). Some background in bug 32925.

Change-Id: I830abd60f559cdd276458447f8f4c772b2d136b1

11 years agoMerge "Remove orphan call to wfProfileOut()"
jenkins-bot [Mon, 7 Jan 2013 06:31:10 +0000 (06:31 +0000)]
Merge "Remove orphan call to wfProfileOut()"

11 years agoAdded $wgMaxBacklinksInvalidate to avoid massive html cache invalidation.
Aaron Schulz [Thu, 3 Jan 2013 00:56:00 +0000 (16:56 -0800)]
Added $wgMaxBacklinksInvalidate to avoid massive html cache invalidation.

Change-Id: I4fadded0e351883a907d307d64af31cdc6164240

11 years agoIntroduce $wgEnableCanonicalServerLink
Tim Starling [Mon, 31 Dec 2012 01:11:43 +0000 (12:11 +1100)]
Introduce $wgEnableCanonicalServerLink

(bug 43466) If enabled, send a rel=canonical link on every page
indicating the correct server to use. I tested all three callers:
Article, ImagePage and the variant feature in getHeadLinksArray().

Change-Id: I59b7c1d5589825ea390967036190218d5ce2db88

11 years ago(bug 43684) Don't bother creating a new context in SpecialPageFactory::getUsablePages
Alex Monk [Sun, 6 Jan 2013 22:03:49 +0000 (22:03 +0000)]
(bug 43684) Don't bother creating a new context in SpecialPageFactory::getUsablePages

Change-Id: I1f854a8c03b5ca917c02c63a5b7da9435252921d

11 years agoMiscellaneous profiling fixes
Platonides [Sun, 6 Jan 2013 18:23:10 +0000 (19:23 +0100)]
Miscellaneous profiling fixes

Change-Id: I8d8ce0bc0383e4feb4ed38fd96b2dd516dcb742e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 6 Jan 2013 19:54:52 +0000 (19:54 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I142cbcecec86d15539f29709c776a4dbdbf35367

11 years agoRemove orphan call to wfProfileOut()
Platonides [Sun, 6 Jan 2013 16:30:34 +0000 (17:30 +0100)]
Remove orphan call to wfProfileOut()

Also added spaces on line 247 per coding conventions.

Change-Id: Ib63167d4371ac71ce7580fafefdb0eabc2e0b590

11 years ago(bug 41368) Added category information to InfoAction.
Tyler Anthony Romeo [Fri, 2 Nov 2012 20:45:49 +0000 (16:45 -0400)]
(bug 41368) Added category information to InfoAction.

Added a Category information section to InfoAction that
only shows for NS_CATEGORY pages. It lists the number
of pages, subcategories, and files in the category.

Change-Id: Ic8965ffc7e4f9abb1f46d773839bdf5c2f06b72e

11 years agoMerge "Normalise inline comment markers to "//" in WikiPage.php"
jenkins-bot [Sat, 5 Jan 2013 22:07:32 +0000 (22:07 +0000)]
Merge "Normalise inline comment markers to "//" in WikiPage.php"

11 years agoMerge "Some fixes for Ia2782d64 (2f60cd2)"
jenkins-bot [Sat, 5 Jan 2013 22:04:17 +0000 (22:04 +0000)]
Merge "Some fixes for Ia2782d64 (2f60cd2)"

11 years agoMerge "Show changed bits on file version (oldimage) revdel logs."
IAlex [Sat, 5 Jan 2013 19:45:46 +0000 (19:45 +0000)]
Merge "Show changed bits on file version (oldimage) revdel logs."

11 years agoSome fixes for Ia2782d64 (2f60cd2)
Alexandre Emsenhuber [Sat, 5 Jan 2013 19:31:35 +0000 (20:31 +0100)]
Some fixes for Ia2782d64 (2f60cd2)

- Add doTable() check at the top of renameIndex()
- Return true instead of false when aborting an update due to unfulfilled
  condition; false is only to be used for updates that will be written to
  a schema update file to be run later
  Also removed the return false from addIndex() for consistency
- Break long line

Change-Id: I2efb6e3af4703ed8afeb315e8cda774d9a6c4a32

11 years agoNew methods to drop or rename extension index in DatabaseUpdater
Dereckson [Tue, 18 Dec 2012 01:03:44 +0000 (02:03 +0100)]
New methods to drop or rename extension index in DatabaseUpdater

- DatabaseUpdater::dropExtensionIndex( $tableName, $indexName, $sqlPath )
- DatabaseUpdater::renameExtensionIndex( $tableName, $oldIndexName, $newIndexName, $sqlPath, $skipBothIndexExistWarning = false )

[ Case use ]

This feature is required to help extensions schema change to ensure
compatibility with SQLite.

First extensions to use it will be Echo and Flagged Revisions.

Change-Id: Ia2782d644593ab6b64b67720ed61b3994db10346

11 years agoMerge "Use nocookiesfornew on account creation if no cookies"
IAlex [Sat, 5 Jan 2013 18:44:08 +0000 (18:44 +0000)]
Merge "Use nocookiesfornew on account creation if no cookies"

11 years agoMerge "Fix Sqlite upgrade test when profiling to database is enabled"
jenkins-bot [Fri, 4 Jan 2013 23:23:20 +0000 (23:23 +0000)]
Merge "Fix Sqlite upgrade test when profiling to database is enabled"

11 years ago[JobQueue] Increment stats for jobs ignored as duplicates.
Aaron Schulz [Fri, 21 Dec 2012 00:38:36 +0000 (16:38 -0800)]
[JobQueue] Increment stats for jobs ignored as duplicates.

Change-Id: If4130f4eb79dc2d55b50a7adebfca43620a36d2c

11 years agoMerge "Use Database::addQuotes instead of hardcoded quotes"
IAlex [Fri, 4 Jan 2013 21:58:39 +0000 (21:58 +0000)]
Merge "Use Database::addQuotes instead of hardcoded quotes"

11 years agoMerge "Partial normalisation of hooks.txt"
IAlex [Fri, 4 Jan 2013 21:52:14 +0000 (21:52 +0000)]
Merge "Partial normalisation of hooks.txt"

11 years agoMerge "recentchanges.rc_ip is used for retroactive autoblocks"
IAlex [Fri, 4 Jan 2013 21:49:50 +0000 (21:49 +0000)]
Merge "recentchanges.rc_ip is used for retroactive autoblocks"

11 years agoMerge "Made the profilers that output text not break js."
jenkins-bot [Fri, 4 Jan 2013 21:36:26 +0000 (21:36 +0000)]
Merge "Made the profilers that output text not break js."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 4 Jan 2013 21:33:31 +0000 (21:33 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMade the profilers that output text not break js.
Aaron Schulz [Tue, 11 Dec 2012 21:18:57 +0000 (13:18 -0800)]
Made the profilers that output text not break js.

Change-Id: I12377e7ac08203113e8d6650f57091a63ad1af27

11 years agoMerge "Also delete the page information cache when invalidating cache of a non-existi...
jenkins-bot [Fri, 4 Jan 2013 21:18:58 +0000 (21:18 +0000)]
Merge "Also delete the page information cache when invalidating cache of a non-existing page"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 4 Jan 2013 21:05:19 +0000 (21:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Iaeeae73d2e7c3c44fa371c0691e5dc9ade2e52a2

11 years agoPartial normalisation of hooks.txt
Siebrand Mazeland [Fri, 4 Jan 2013 20:33:37 +0000 (21:33 +0100)]
Partial normalisation of hooks.txt

Follow-up to If43cafb5. Almost complete. Needs another scan.
Added TODO where work is needed. I'll create documentation bugs for these
after the last scan.

Change-Id: I16a7bc03be71d1c907393c2a0748bf2150828bed

11 years agorecentchanges.rc_ip is used for retroactive autoblocks
umherirrender [Fri, 4 Jan 2013 19:58:00 +0000 (20:58 +0100)]
recentchanges.rc_ip is used for retroactive autoblocks

Document this at $wgPutIPinRC and check the global explicit

Change-Id: I5a796edc855ae954ebd0fb11fe54b486e5eff7ed

11 years agoUse nocookiesfornew on account creation if no cookies
Brian Wolff [Fri, 4 Jan 2013 19:35:12 +0000 (15:35 -0400)]
Use nocookiesfornew on account creation if no cookies

follow-up I402c6bebcf.

Previously we used nocookiesfornew msg if the user tried to
make an account, and their cookies were missing. I402c6
changed this to session_failure, which was previously
used only for the cases where the token was tampered
with. I think the previous message was better as
it actually mentioned to the user that them not
having cookies could be the cause.

Also its removal may have been accidental as its
not mentioned in the commit msg of that change.
As well that change removed all uses of that
msg from core, but yet didn't delete it
from MessagesEn.php.

Change-Id: I421e294e4a3ddaa0eea90f2abf215af82ee6a00a

11 years agoUse Database::addQuotes instead of hardcoded quotes
umherirrender [Fri, 4 Jan 2013 19:07:37 +0000 (20:07 +0100)]
Use Database::addQuotes instead of hardcoded quotes

Change-Id: I29461e5332f3fc6523cbd899e14394aa88865d93

11 years agoMerge "Remove "read" from list of allowed actions on special pages"
jenkins-bot [Fri, 4 Jan 2013 18:18:01 +0000 (18:18 +0000)]
Merge "Remove "read" from list of allowed actions on special pages"

11 years agoMerge "Block::parseTarget() accepts and can return null"
jenkins-bot [Fri, 4 Jan 2013 18:16:12 +0000 (18:16 +0000)]
Merge "Block::parseTarget() accepts and can return null"

11 years agoUse consistent hashing for SqlBagOStuff servers
Tim Starling [Fri, 4 Jan 2013 09:23:26 +0000 (20:23 +1100)]
Use consistent hashing for SqlBagOStuff servers

Also factor out consistent hash code from Redis and the new application
into a class called ArrayUtils. The name "ArrayUtils" is from
I0f4e7d7c, I expect that change will be rebased on top of this one at
some point.

Change-Id: I9375087f4d7a6e8e629d97bfb6b117d9cb7d1bcf

11 years agoMerge "Multiple servers in one SqlBagOStuff"
jenkins-bot [Fri, 4 Jan 2013 18:06:43 +0000 (18:06 +0000)]
Merge "Multiple servers in one SqlBagOStuff"

11 years agoExplicitely add two undocumented hooks
Siebrand Mazeland [Fri, 4 Jan 2013 16:00:48 +0000 (17:00 +0100)]
Explicitely add two undocumented hooks

Found using php maintenance/findHooks.php.

Change-Id: I6977cd5c57566025a63be1c5042d5d64eed44676

11 years agoPartial normalisation of hooks.txt
Siebrand Mazeland [Fri, 4 Jan 2013 15:56:58 +0000 (16:56 +0100)]
Partial normalisation of hooks.txt

File formatting is very inconsistent. I updated approximately the first
part of the file.

Change-Id: If43cafb59828a1b846dd6dc751efc9ebcd7d5b72

11 years agoMerge "(bug 43595) Add a cache version variable to SiteArray"
jenkins-bot [Fri, 4 Jan 2013 13:49:53 +0000 (13:49 +0000)]
Merge "(bug 43595) Add a cache version variable to SiteArray"

11 years ago(bug 38633) Don't block non-existent users via the API
Alex Monk [Sat, 22 Dec 2012 19:33:05 +0000 (19:33 +0000)]
(bug 38633) Don't block non-existent users via the API

Change-Id: I49232e177b23e11d04f64ac0d939073fa9418d64

11 years agoReuse the WikiPage object to save a db query
Brian Wolff [Fri, 4 Jan 2013 09:11:13 +0000 (05:11 -0400)]
Reuse the WikiPage object to save a db query

Early in the request we call Action::getActionName to get the action
name for HTMLFileCache to see if the current action is cached.
This causes data to be loaded from the WikiPage object
stored in the main request context. However, later when
we're initializing the Article object, we overwrite that
WikiPage object with the one used by the Article object.
Later on the WikiPage object has to be re-loaded, and
hence the exact same db request is run twice in one request,
which seems wasteful.

Instead, initialize the Article object using the WikiPage
object from the context, in order to save the already
loaded data.

Change-Id: I292f0d70feb505fae5fa955fd735d85ad3b22fea

11 years agoMerge "(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation"
jenkins-bot [Fri, 4 Jan 2013 12:49:15 +0000 (12:49 +0000)]
Merge "(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation"

11 years agoMove logentry-* messages from newusers and rights log near the other ones
Alexandre Emsenhuber [Fri, 21 Dec 2012 07:39:28 +0000 (08:39 +0100)]
Move logentry-* messages from newusers and rights log near the other ones

'rightslogentry' and 'rightslogentry-autopromote' are now marked as ignored since
they are only used for IRC notifications.

Also moved new users log description messages near the ones for user rights log.

Change-Id: I63f90d824ff454c0e4177f9f80542c36175c3ffe