lhc/web/wiklou.git
11 years agoIncludes $query in SkinTemplate::tabAction() if $title doesn't exist
Pavel Selitskas [Thu, 10 Jan 2013 01:20:38 +0000 (04:20 +0300)]
Includes $query in SkinTemplate::tabAction() if $title doesn't exist

Required by https://www.mediawiki.org/wiki/Extension:NamespaceRelations

* added PHPDoc for SkinTemplate::tabAction()

Change-Id: Ia9d3838d2adf3b8afbd5b142bb7a1ea3e1c31371

11 years agoraise timeout for ApiCreateAccountTest::testValid
Antoine Musso [Fri, 11 Jan 2013 09:46:18 +0000 (10:46 +0100)]
raise timeout for ApiCreateAccountTest::testValid

The ApiCreateAccountTest::testValid() test does multiple API request
which might end up being a bit slow.  That randomly cause random
failures when running the test suite which tends to confuse people.

Change-Id: I35a6670c61c7917522b2472a3a8e782e97e837f4

11 years agoFixed prefixed title text call.
Aaron Schulz [Fri, 11 Jan 2013 05:30:48 +0000 (21:30 -0800)]
Fixed prefixed title text call.

Change-Id: I796a2cc1687a7d50c8874b002839133f5f5326c7

11 years agoMerge "Overriding Vector's footer margin when in print mode"
Ori.livneh [Fri, 11 Jan 2013 00:18:07 +0000 (00:18 +0000)]
Merge "Overriding Vector's footer margin when in print mode"

11 years agoAdded account creation API.
Tyler Romeo [Wed, 8 Aug 2012 13:58:47 +0000 (09:58 -0400)]
Added account creation API.

Created new API action "createaccount" that
allows access to account creation. Takes
username, password, email, realname, token,
and optionally mailpassword and reason.

Errors are given in an errors array. Note
there is no way to natively handle CAPTCHAs
as there is no uniform implementation of
presenting CAPTCHA links to user. Right now
the best an extension can do is return an
error in AbortNewAccount, which will then
be displayed as an error in the Api result.

Change-Id: Ibdb1e50d434fb857683e1e4ff5a4a5a91c6b7c3a

11 years agoadjust release note about I45b077cf
MatmaRex [Thu, 10 Jan 2013 23:51:07 +0000 (00:51 +0100)]
adjust release note about I45b077cf

It's not a config change; it simply introduces a new global config
variable.

Change-Id: Ife9e81d70847fd215ffedbf3dcbc750c059bcaf4

11 years agoMerge "[JobQueue] Minor documentation improvements."
Demon [Thu, 10 Jan 2013 21:25:43 +0000 (21:25 +0000)]
Merge "[JobQueue] Minor documentation improvements."

11 years ago[JobQueue] Minor documentation improvements.
Aaron Schulz [Thu, 10 Jan 2013 21:16:23 +0000 (13:16 -0800)]
[JobQueue] Minor documentation improvements.

Change-Id: I084016531f2c6bc707459c4b670bf02fa72f42d2

11 years agoMade NullJob support ignoring duplicates.
Aaron Schulz [Thu, 10 Jan 2013 21:18:57 +0000 (13:18 -0800)]
Made NullJob support ignoring duplicates.

Change-Id: Ieecc938a51eb1850b9e0abfcc41aa6e8268e6989

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 10 Jan 2013 21:14:49 +0000 (21:14 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoAllow non-English wikis to rebuild l10n cache
Brad Jorsch [Thu, 10 Jan 2013 20:32:40 +0000 (15:32 -0500)]
Allow non-English wikis to rebuild l10n cache

If a wiki is configured to use the l10n cache and $wgLanguageCode is set
to anything other that 'en', all maintenance scripts will fail until the
l10n cache is build for the first time. This includes
maintenance/rebuildLocalisationCache.php, the maintenance script that
builds the l10n cache.

To break this dependency, have maintenance/rebuildLocalisationCache.php
force $wgLanguageCode = 'en'.

Change-Id: Ia93998b0f85fd122dd7b01eeeef698f595360945

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

Change-Id: I99e0eaef11ea6bfeee4b010f056ac0da4bd1d5f8

11 years agoMerge "Fix access to other wiki's job queue."
Aaron Schulz [Thu, 10 Jan 2013 17:33:22 +0000 (17:33 +0000)]
Merge "Fix access to other wiki's job queue."

11 years agoMerge "Add css $classes variable to the OldChangesListRecentChangesLine hook"
jenkins-bot [Thu, 10 Jan 2013 17:22:05 +0000 (17:22 +0000)]
Merge "Add css $classes variable to the OldChangesListRecentChangesLine hook"

11 years agoAdd css $classes variable to the OldChangesListRecentChangesLine hook
aude [Thu, 10 Jan 2013 15:52:30 +0000 (15:52 +0000)]
Add css $classes variable to the OldChangesListRecentChangesLine hook

- will update LiquidThreads accordingly and do not see
this hook used in any other extension in Wikimedia git repos.

Change-Id: Ib8f297b39dbd5fba980bb0d4773d0e01f2b922f4

11 years agoMerge "ignore /.deploy used by git-deploy"
jenkins-bot [Thu, 10 Jan 2013 15:22:50 +0000 (15:22 +0000)]
Merge "ignore /.deploy used by git-deploy"

11 years agoignore /.deploy used by git-deploy
Antoine Musso [Thu, 10 Jan 2013 09:39:43 +0000 (10:39 +0100)]
ignore /.deploy used by git-deploy

git-deploy writes a status file at the root of the working copy. We want
to always ignore it.

Change-Id: I4dbbce669ba4d194c3ce5568733bd27db51fd40e

11 years ago(bug 43820) Content also needed for prop=revisions&rvdiffto=
Brad Jorsch [Thu, 10 Jan 2013 14:24:39 +0000 (09:24 -0500)]
(bug 43820) Content also needed for prop=revisions&rvdiffto=

It was somehow overlooked that prop=revisions&rvdiffto= also requires
that the content for the current revision be fetched.

Change-Id: Ie1d718458da8cdb6ba63bd7ea512db3b299fc1e2

11 years agoFix access to other wiki's job queue.
daniel [Thu, 10 Jan 2013 11:03:40 +0000 (12:03 +0100)]
Fix access to other wiki's job queue.

LoadBalancer::getConnection needs the target wiki's ID, even
if we got the LoadBalancer instance specifically for that wiki.

Change-Id: I3fc81666dfa2552fac3ced2cadbd3f6db09e9596

11 years agoMerge "Added merge() function to BagOStuff for CAS-like functionality."
jenkins-bot [Thu, 10 Jan 2013 09:50:09 +0000 (09:50 +0000)]
Merge "Added merge() function to BagOStuff for CAS-like functionality."

11 years agoAdded merge() function to BagOStuff for CAS-like functionality.
Matthias Mullie [Mon, 1 Oct 2012 14:05:22 +0000 (16:05 +0200)]
Added merge() function to BagOStuff for CAS-like functionality.

* merge() will use CAS if supported or use locking otherwise
* The lock()/unlock() methods now have a default implementation
* added unit tests for merge

Change-Id: Ic27088488f8532f149cb4b36e156516f22880134

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 agoOverriding Vector's footer margin when in print mode
Kaldari [Thu, 10 Jan 2013 01:05:15 +0000 (17:05 -0800)]
Overriding Vector's footer margin when in print mode

Otherwise the footer is strangely shifted 10 or 11em to the right
on printed versions of pages (exact amount depends on media mode)

Change-Id: Ia2123b08bdf1910304c1e1436418a3eb75126a07

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"