lhc/web/wiklou.git
11 years agoMerge "Moved $function definition up to make IDE happy."
IAlex [Fri, 18 Jan 2013 19:21:47 +0000 (19:21 +0000)]
Merge "Moved $function definition up to make IDE happy."

11 years agoMerge "(bug 43762) Mark slow unit test as @group medium"
jenkins-bot [Fri, 18 Jan 2013 19:15:30 +0000 (19:15 +0000)]
Merge "(bug 43762) Mark slow unit test as @group medium"

11 years ago(bug 43762) Mark slow unit test as @group medium
Brad Jorsch [Fri, 18 Jan 2013 19:02:28 +0000 (14:02 -0500)]
(bug 43762) Mark slow unit test as @group medium

All tests based on APITestCase can be slow. I've also seen more than one
Jenkins failure due to GlobalTest::testMerge timing out.

Also, added a meta-test on APITestCase to make sure that all its
subclasses are marked with @group medium or @group large, to prevent new
tests from re-causing the bug.

Change-Id: I48630736a3d06574876fd1fa3d90899cfbc48012

11 years agoCheck for no title and throw an exception
Niklas Laxström [Fri, 18 Jan 2013 18:50:38 +0000 (18:50 +0000)]
Check for no title and throw an exception

Fatal errors break test execution, exceptions not

See also bug 42145

PS: how many months does it take to fix a bug that
prevents running unit tests? Answer below.

Change-Id: I0b351a05be9d0850b467046e807651be254dcae2

11 years agoHttp function logic cleanups and comments.
Aaron Schulz [Fri, 18 Jan 2013 18:55:01 +0000 (10:55 -0800)]
Http function logic cleanups and comments.

Change-Id: Ibe309246960491958870610f69c253bf3ccc1637

11 years agoMerge "(bug 43959) Add ability to reset certain option kinds in API."
jenkins-bot [Fri, 18 Jan 2013 18:49:04 +0000 (18:49 +0000)]
Merge "(bug 43959) Add ability to reset certain option kinds in API."

11 years agoMerge "Do not send data for 0 increment calls in wfIncrStats()."
IAlex [Fri, 18 Jan 2013 18:43:38 +0000 (18:43 +0000)]
Merge "Do not send data for 0 increment calls in wfIncrStats()."

11 years ago(bug 43959) Add ability to reset certain option kinds in API.
Tyler Anthony Romeo [Tue, 15 Jan 2013 01:45:01 +0000 (20:45 -0500)]
(bug 43959) Add ability to reset certain option kinds in API.

Added the "resetkinds" option to action=options, so that when the
"reset" option is set, the user can control which kinds of options
are reset, rather than having to do all or none.

Also added documentation to the "change" parameter, since passing
it option keys without any "=value" after it will result in resetting
that specific option to its default value.

Change-Id: Id5bc1fffa0d487c0f152b79115205d2722f380d3

11 years agoDo not send data for 0 increment calls in wfIncrStats().
Aaron Schulz [Fri, 18 Jan 2013 18:26:54 +0000 (10:26 -0800)]
Do not send data for 0 increment calls in wfIncrStats().

Change-Id: I5f1ca83ad56e129b42a96a5c73ec42cd2d978901

11 years agoFix hardcode database quotes in Special:Watchlist
umherirrender [Sun, 13 Jan 2013 19:35:28 +0000 (20:35 +0100)]
Fix hardcode database quotes in Special:Watchlist

Change-Id: I0d53a24b35a855a541fb73d8bbfcace9de74e549

11 years agoAPI debugging flag $wgDebugAPI to disable some security checks
Yuri Astrakhan [Fri, 18 Jan 2013 15:23:17 +0000 (10:23 -0500)]
API debugging flag $wgDebugAPI to disable some security checks

Intentionally introduce a big security hole for debugging only.
Just like $wgShowDebug, $wgShowExceptionDetails, and $wgShowSQLErrors,
that introduce security vulnarabilities for debugging purposes,
this flag allows developers to remove some security checks in their
LocalSettings.php. This is a much safer approach than temporarily
changing production code to ignore certain conditions and later
forgetting to remove those changes before commiting the code.
Whenever enabled, a warning will allways be added to all output.

Change-Id: Ideb271dc1c9087f0843da03d024d70cc2cd776ae

11 years ago(bug 35885) remove api version string and parameter
Yuri Astrakhan [Mon, 14 Jan 2013 22:01:42 +0000 (17:01 -0500)]
(bug 35885) remove api version string and parameter

API was using SVN's version keyword which GIT does not support.
All related methods were either removed, or for those that
could have been used from extensions, emptied out.
api.php?version now shows unrecognized param warning.

Change-Id: I910ca1448ed2ed697ac19b17c486d130aa1d7e03

11 years agoUse array for database fields
umherirrender [Fri, 18 Jan 2013 15:15:41 +0000 (16:15 +0100)]
Use array for database fields

Also reuse a existing database object

Change-Id: I42cc0636b25ba6266ab37ce0a7422e5863edf741

11 years agoMerge "Fix return type doc. On SQLite ResultWrapper is returned"
IAlex [Fri, 18 Jan 2013 14:50:55 +0000 (14:50 +0000)]
Merge "Fix return type doc. On SQLite ResultWrapper is returned"

11 years agoFix return type doc. On SQLite ResultWrapper is returned
jeroendedauw [Fri, 18 Jan 2013 14:40:05 +0000 (15:40 +0100)]
Fix return type doc. On SQLite ResultWrapper is returned

Change-Id: Ia18a0c6418d230d0a11b53efe40c3caeaa86300b

11 years agoMerge "Made upload stash cleanup script scan the temp dir for old files."
jenkins-bot [Fri, 18 Jan 2013 14:22:42 +0000 (14:22 +0000)]
Merge "Made upload stash cleanup script scan the temp dir for old files."

11 years agotestDecodeTagAttributes now use a data provider
Antoine Musso [Thu, 22 Nov 2012 10:25:30 +0000 (11:25 +0100)]
testDecodeTagAttributes now use a data provider

We had a huge pile of assertEquals in a single test function, this patch
convert the mess in a nicer dataprovider.

The parameters passed to assertEquals() were mixed up, the expected
values should be passed as the first argument, I thus exchange the first
two parameters in each case.

Change-Id: Ib74804a7aa84a1e59fffb8c85abbf0b95995d897

11 years agonormalize sanitizerTest and add coverage tips
Antoine Musso [Thu, 22 Nov 2012 10:23:13 +0000 (11:23 +0100)]
normalize sanitizerTest and add coverage tips

* @cover let us mention which function the test is using, help out when
  building coverage report to make sure we only record traces for that
  function.
* Normalized test functions so they look alike and make use of an
  optional message.

Change-Id: I3e431b28e377f2ca21d06300537f63b2df4a3a99

11 years agoCorrect method name in ContentHandler comment
Alexandre Emsenhuber [Fri, 18 Jan 2013 12:46:36 +0000 (13:46 +0100)]
Correct method name in ContentHandler comment

Change-Id: Iffc5a975cd7ae311d33147c35e59ba674d5e687b
Article::getReason() does not exist, but Article::generateReason() does.

11 years agoMerge "Made ORMTable and ORMRow non-abstract"
jenkins-bot [Fri, 18 Jan 2013 12:08:12 +0000 (12:08 +0000)]
Merge "Made ORMTable and ORMRow non-abstract"

11 years agoDisable template expansion in message <autoblocker>.
Liangent [Thu, 10 Jan 2013 06:18:27 +0000 (14:18 +0800)]
Disable template expansion in message <autoblocker>.

Sometimes sysops put template calls in block messages and they will be
expanded in the <blockedtext> interface. However in corresponding
autoblocks, template calls get expanded to long strings and truncated.

Change-Id: I3150192ec8c95d2e4807f058a855856e467145de

11 years agoMerge "(bug 44010) Pass context to UserGetLanguageObject"
IAlex [Fri, 18 Jan 2013 10:00:59 +0000 (10:00 +0000)]
Merge "(bug 44010) Pass context to UserGetLanguageObject"

11 years ago(bug 44010) Pass context to UserGetLanguageObject
Niklas Laxström [Wed, 16 Jan 2013 09:47:06 +0000 (09:47 +0000)]
(bug 44010) Pass context to UserGetLanguageObject

Only way to avoid messing with wrong request contexts.
Had to add recursion guard too.

Change-Id: Idc11b54752450321e01d92004e08fc95fb6170e6

11 years agoFix message movepagetext: Move to a empty page not possible
umherirrender [Sun, 13 Jan 2013 18:48:02 +0000 (19:48 +0100)]
Fix message movepagetext: Move to a empty page not possible

Change-Id: I55409499ce21f6155c4f92ea1f8858b5f4ae46c1

11 years agoMade ORMTable and ORMRow non-abstract
jeroendedauw [Fri, 18 Jan 2013 09:29:18 +0000 (10:29 +0100)]
Made ORMTable and ORMRow non-abstract

ORMTable now optionally takes info such as table name and field definitions in its constructor

Change-Id: I9cee11fdb58d4ef57d442f69650c6640d767cfa1

11 years agoMerge "Adding SpecialSearchResultsPrepend/Append hooks"
jenkins-bot [Fri, 18 Jan 2013 08:11:10 +0000 (08:11 +0000)]
Merge "Adding SpecialSearchResultsPrepend/Append hooks"

11 years agoAdding SpecialSearchResultsPrepend/Append hooks
Ryan Finnie [Fri, 18 Jan 2013 00:46:40 +0000 (16:46 -0800)]
Adding SpecialSearchResultsPrepend/Append hooks

These hooks allow you to prepend, append or replace the search results
in Special:Search.

SpecialSearchResultsPrepend is executed immediately before the results
HTML begin to output.  It can be used to include an external search
provider like Google CSE, for example.  If the hook returns true, the
MediaWiki search results continue to output.  If returned false, they
are suppressed.

SpecialSearchResultsAppend is executed immediately after the last
results HTML (including search navigation) are output.  This hook is of
limited use since it will not be run in certain circumstances (there are
several points in the previous output logic where the function returns),
but is included for completeness.

Change-Id: Ib38433141979de999cdcab5eca26ba5416331aaa

11 years agoRevert "Overriding Vector's footer margin when in print mode"
Matthew Flaschen [Mon, 14 Jan 2013 03:40:18 +0000 (22:40 -0500)]
Revert "Overriding Vector's footer margin when in print mode"

This is not necessary since stylesheets with screen media queries are no longer shown in print mode.

This reverts commit 2b9e9f6a4a4c3bcfe04270194fd4f9a5b9f5a931.

Change-Id: I645f25837275bdddf9e6389e2ace279fd46b7c12

11 years agoMerge "Add guard to Resources.php"
jenkins-bot [Fri, 18 Jan 2013 04:01:58 +0000 (04:01 +0000)]
Merge "Add guard to Resources.php"

11 years agoMerge "(bug 43942) Skip screen sheets with media queries when printing"
jenkins-bot [Fri, 18 Jan 2013 03:42:33 +0000 (03:42 +0000)]
Merge "(bug 43942) Skip screen sheets with media queries when printing"

11 years agoAdd guard to Resources.php
csteipp [Thu, 17 Jan 2013 18:58:13 +0000 (10:58 -0800)]
Add guard to Resources.php

Prevent direct calling of this file, just as we do in many other
places. Resources.php threw a fatal when called directly.

Change-Id: I10f5c013e81beaeb48d48e3eeaf1041d7236e9e9

11 years agoMoved $function definition up to make IDE happy.
Aaron Schulz [Fri, 18 Jan 2013 00:32:19 +0000 (16:32 -0800)]
Moved $function definition up to make IDE happy.

Change-Id: Ie42ba484c8c2f65a2ae233f0176a286578555cb2

11 years agoMerge "Added a read-only check to runJobs.php to avoid log spam."
Aaron Schulz [Thu, 17 Jan 2013 23:54:42 +0000 (23:54 +0000)]
Merge "Added a read-only check to runJobs.php to avoid log spam."

11 years ago[FileBackend] Added work-around for lack of temp url support in rgw.
Aaron Schulz [Fri, 11 Jan 2013 02:46:36 +0000 (18:46 -0800)]
[FileBackend] Added work-around for lack of temp url support in rgw.

* The S3 side of rgw can be configured for use with just temp URLs.
  This works around http://tracker.newdream.net/issues/3454.

Change-Id: Id0ee68da10b38e1d0a0ba7ebba26fccc8d32e2d4

11 years agoAdded a read-only check to runJobs.php to avoid log spam.
Aaron Schulz [Thu, 17 Jan 2013 23:17:21 +0000 (15:17 -0800)]
Added a read-only check to runJobs.php to avoid log spam.

Change-Id: I049fe087d7e9c59383de8efb34e40d311804951a

11 years agoMade Block::purgeExpired() check for read-only mode.
Aaron Schulz [Thu, 17 Jan 2013 22:25:55 +0000 (14:25 -0800)]
Made Block::purgeExpired() check for read-only mode.

Change-Id: Ida4f82b8e17a0f7ba872e46fd8a4c87831e5254f

11 years ago(bug 43942) Skip screen sheets with media queries when printing
Matthew Flaschen [Mon, 14 Jan 2013 03:26:15 +0000 (22:26 -0500)]
(bug 43942) Skip screen sheets with media queries when printing

* Add test suite, with regression tests as well as tests for the fix.

Change-Id: I66d40673cc610370b66af0129412bc6495673f8d

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 17 Jan 2013 21:07:31 +0000 (21:07 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I48ac66945d3f0b66176c5f19c5b703f0fd14989b

11 years agoMade upload stash cleanup script scan the temp dir for old files.
Aaron Schulz [Thu, 17 Jan 2013 20:03:48 +0000 (12:03 -0800)]
Made upload stash cleanup script scan the temp dir for old files.

Change-Id: I490d66770182b91b23db62728f78cb117d28e1a2

11 years agoMerge "Additional tests to catch Parsoid regressions."
GWicke [Thu, 17 Jan 2013 19:24:02 +0000 (19:24 +0000)]
Merge "Additional tests to catch Parsoid regressions."

11 years agomcc can now set memcached debug mode and has help
Antoine Musso [Wed, 16 Jan 2013 14:27:21 +0000 (15:27 +0100)]
mcc can now set memcached debug mode and has help

This patch let us set the debug mode on the memcached connection. Simply
pass --debug as an argument.  I have also added basic usage
documentation with --help, listing the interacting commands as well.

Example output:

$ php mcc.php --help
Usage:
mcc.php [--debug]
mcc.php --help

MemCached Command (mcc) is an interactive command tool that let you
interact
with the MediaWiki memcached cache.

Options:
--debug Set debug mode on the memcached connection.
--help  This help screen.

Interactive commands:
get    : grabs something
getsock: lists sockets
set    : changes something
delete : deletes something
history: show command line history
server : show current memcached server
dumpmcc: shows the whole thing
exit   : exit mcc
quit   : exit mcc
help   : help about a command

$

Change-Id: Ib4603eecbd6a8e6f3ba8bf3cf350c0e3df652d3b

11 years agoMerge "Fix typo in exception message"
jenkins-bot [Thu, 17 Jan 2013 13:29:09 +0000 (13:29 +0000)]
Merge "Fix typo in exception message"

11 years agoMerge "Minor tweaks to installer text"
jenkins-bot [Thu, 17 Jan 2013 13:03:36 +0000 (13:03 +0000)]
Merge "Minor tweaks to installer text"

11 years agoFix typo in exception message
Alexandre Emsenhuber [Thu, 17 Jan 2013 11:38:45 +0000 (12:38 +0100)]
Fix typo in exception message

Also capitalise first letter and use single quotes for consistency.

Change-Id: Ic09699bd675845334cdd53f39fb9c0f1ab3b61e2

11 years ago[JobQueue] Added push() convenience wrapper function.
Aaron Schulz [Fri, 11 Jan 2013 23:00:20 +0000 (15:00 -0800)]
[JobQueue] Added push() convenience wrapper function.

Change-Id: I4040b06fb286c28c8df733efb9bdd42bd7335f16

11 years ago(bug 43272) Make protect level messages clear and consistent
Ori Livneh [Wed, 19 Dec 2012 20:29:58 +0000 (12:29 -0800)]
(bug 43272) Make protect level messages clear and consistent

Change-Id: Ic7d58eddf65f4a6f53878df4baeffa9fc6a06127

11 years agoMerge "Fix mctest to work with new WMF memcached setup"
Reedy [Wed, 16 Jan 2013 23:57:31 +0000 (23:57 +0000)]
Merge "Fix mctest to work with new WMF memcached setup"

11 years agoFix mctest to work with new WMF memcached setup
Reedy [Wed, 16 Jan 2013 23:51:43 +0000 (23:51 +0000)]
Fix mctest to work with new WMF memcached setup

Change-Id: I0b366284e9c92365d4c8b8458f59d6cc25c998ed

11 years agoMerge "Follow-up Id75401be (e32c8afe): no more need to prefix debug messages"
jenkins-bot [Wed, 16 Jan 2013 21:18:30 +0000 (21:18 +0000)]
Merge "Follow-up Id75401be (e32c8afe): no more need to prefix debug messages"

11 years agoWe don't use SVN anymore
Chad Horohoe [Wed, 16 Jan 2013 21:10:27 +0000 (16:10 -0500)]
We don't use SVN anymore

Change-Id: Ib70f074f0fd39db9bb519afb273b17e847e6d0ae

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

Change-Id: I6fb33365658986e2d0dfa563ae548e891a18de61

11 years agoFollow-up Id75401be (e32c8afe): no more need to prefix debug messages
Alexandre Emsenhuber [Wed, 16 Jan 2013 19:08:16 +0000 (20:08 +0100)]
Follow-up Id75401be (e32c8afe): no more need to prefix debug messages

Since that revision, messages sent through wfDebugLog() and without
a corresponding entry in $wgDebugLogGroups will be prefixed there
before being sent to wfDebug(), so it's no longer needed to have the
exact same checks for the debug messages in memcached clients.

Change-Id: Ia690a87bc6d1994fe371816470efde6d09e3b881

11 years agoMinor tweaks to installer text
Waldir Pimenta [Wed, 16 Jan 2013 15:25:50 +0000 (15:25 +0000)]
Minor tweaks to installer text

- use "open wiki" (explicit meaning) rather than "traditional wiki" (implicit meaning)
- tweak sentence that explains what the "traditional wiki" is to work with whatever label is used
- "Traditionally" --> "Usually" (less dogmatic)
- use the system message for the "back" button, to match the "next" button

Change-Id: I92b599965c6ed7e405951a37f2d3cbc8710aff16

11 years agoBug 43688 - mcc.php doesn't work with new WMF memcached config
Reedy [Sun, 6 Jan 2013 23:09:59 +0000 (23:09 +0000)]
Bug 43688 - mcc.php doesn't work with new WMF memcached config

Change-Id: Ic0d87d27e6db78314d92968d7c6d265cf6d24013

11 years agoMerge "(bug 44010) FauxRequest leaks cookie data from primary request"
jenkins-bot [Wed, 16 Jan 2013 13:42:52 +0000 (13:42 +0000)]
Merge "(bug 44010) FauxRequest leaks cookie data from primary request"

11 years agoFix failing qunit test for mediawiki.jqueryMsg
Santhosh Thottingal [Wed, 16 Jan 2013 06:48:02 +0000 (12:18 +0530)]
Fix failing qunit test for mediawiki.jqueryMsg

Errors thrown by jqueryMsg parser is "messageKey: errorMessage" format
Test case was using "Error" as prefix.

Followup of I7a748eb9

Change-Id: I92b5dc82f2d719acf0503ddd5bd3ebe39d1203b5

11 years agoSmall whitespace cleanup
Niklas Laxström [Wed, 16 Jan 2013 09:53:47 +0000 (09:53 +0000)]
Small whitespace cleanup

Change-Id: I8a3ad0f81cf66c4a3a95f0ea45d04cdb39095607

11 years ago(bug 44010) FauxRequest leaks cookie data from primary request
Niklas Laxström [Wed, 16 Jan 2013 09:45:36 +0000 (09:45 +0000)]
(bug 44010) FauxRequest leaks cookie data from primary request

Change-Id: I6baf972352fd69660c09a5d413ff55b81aa31305

11 years ago(bug 31044) Make ResourceLoader behave in read-only mode
Catrope [Tue, 15 Jan 2013 23:32:10 +0000 (15:32 -0800)]
(bug 31044) Make ResourceLoader behave in read-only mode

When the database is in read-only mode or writes fail for some other
reason, ResourceLoader should make every attempt to still serve JS and
CSS correctly.

* Surround a bunch of DB write code in MessageBlobStore.php in try-catch
  blocks.
* Surround the DB write in ResourceLoaderFileModule.php in a try-catch
  block rather than checking wfReadOnly(), because the DB may fail for
  other reasons.
* In ResourceLoader::respond() and helpers, set a short cache timeout on
  responses that include commented-out error messages.

Change-Id: Idc83a0fe042806263f9337c40ade8c38c56aa3cd

11 years agoAdditional tests to catch Parsoid regressions.
Subramanya Sastry [Wed, 16 Jan 2013 01:58:21 +0000 (17:58 -0800)]
Additional tests to catch Parsoid regressions.

Change-Id: I5927ec25d978c9399b1d515a56c6fd39546f3d90

11 years agoTest for bug 42252 (indented pre syntax)
Gabriel Wicke [Tue, 15 Jan 2013 23:53:39 +0000 (15:53 -0800)]
Test for bug 42252 (indented pre syntax)

This bug has since been fixed in Parsoid. Make sure it stays that way by
testing it.

Change-Id: Iba77a72635877dfb420534142abb59e155567d6a

11 years agoTest table captions with attributes
Gabriel Wicke [Tue, 15 Jan 2013 23:01:42 +0000 (15:01 -0800)]
Test table captions with attributes

Parsoid did not support these before, but now does. Makes sure this is also
covered by a test.

Change-Id: I7645d390bc14c4f7f115e857266d0015ddbd9de4

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 15 Jan 2013 21:18:51 +0000 (21:18 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I345e2cbb266f78248bb90ec0c0509c56707acf26

11 years agoMerge "(bug 43498) (bug 43574) Two wikilink types and {{int:}}."
jenkins-bot [Tue, 15 Jan 2013 21:04:46 +0000 (21:04 +0000)]
Merge "(bug 43498) (bug 43574) Two wikilink types and {{int:}}."

11 years agoMerge "(bug 43052) dblClickEdit/rightClickEdit: Trigger ca-edit click."
Trevor Parscal [Tue, 15 Jan 2013 21:00:05 +0000 (21:00 +0000)]
Merge "(bug 43052) dblClickEdit/rightClickEdit: Trigger ca-edit click."

11 years agoMerge "API Cleanup: renamed '_badcontinue'->'badcontinue', one die()"
jenkins-bot [Tue, 15 Jan 2013 20:19:33 +0000 (20:19 +0000)]
Merge "API Cleanup: renamed '_badcontinue'->'badcontinue', one die()"

11 years agoMerge "[JobQueue] Optimized JobQueueGroup::pop()."
Demon [Tue, 15 Jan 2013 19:28:45 +0000 (19:28 +0000)]
Merge "[JobQueue] Optimized JobQueueGroup::pop()."

11 years agoMerge "(bug 43981) disable live preview on user .js/.css pages"
jenkins-bot [Tue, 15 Jan 2013 19:21:14 +0000 (19:21 +0000)]
Merge "(bug 43981) disable live preview on user .js/.css pages"

11 years agoMerge "Revert "Live preview no longer experimental""
Krinkle [Tue, 15 Jan 2013 18:51:28 +0000 (18:51 +0000)]
Merge "Revert "Live preview no longer experimental""

11 years agoRevert "Live preview no longer experimental"
Krinkle [Tue, 15 Jan 2013 18:51:21 +0000 (18:51 +0000)]
Revert "Live preview no longer experimental"

It is very much still experimental. The only thing it is capable of right now is rendering wikitext in the page and some basic skin enhancements (sidebar links and templates-used list).

By far it is not complete and lacks many things (such as interactive features like tablesorter and mw-collapsible. And things like preview-javascript on js user pages doesn't work etc.

This reverts commit 006916cd3f47bc07ce54830ab35520b69f2e87c1

11 years ago(bug 43981) disable live preview on user .js/.css pages
MatmaRex [Tue, 15 Jan 2013 18:14:53 +0000 (19:14 +0100)]
(bug 43981) disable live preview on user .js/.css pages

Disable live preview on user .js/.css pages, as there's no sane way of
"previewing" the scripts or styles without reloading the page.

Change-Id: I8750448c827eb965509158bb4a0cd8b0cf3c7a67

11 years agoMerge "(bug 43996) Add support for RC_EXTERNAL type in api"
Reedy [Tue, 15 Jan 2013 15:52:14 +0000 (15:52 +0000)]
Merge "(bug 43996) Add support for RC_EXTERNAL type in api"

11 years ago(bug 43996) Add support for RC_EXTERNAL type in api
aude [Mon, 14 Jan 2013 23:51:33 +0000 (23:51 +0000)]
(bug 43996) Add support for RC_EXTERNAL type in api

- this is for recentchanges
- can be used to filter changes injected from external sources,
such as wikidata and other sources that use this type
Change-Id: I8bd19a8a80b0422ab01d21da1702fc090ffa27d2

11 years agoCleanup HTML of imagepage: avoid empty <ul></ul>
raymond [Wed, 9 Jan 2013 13:30:25 +0000 (14:30 +0100)]
Cleanup HTML of imagepage: avoid empty <ul></ul>

This happens when a redirect without usages exists
While I am in this section: Use modern Html() function

Change-Id: I1af206ab3a83fb0d09773314bb30db01f557ba07

11 years agoMerge "SpecialEditWatchlist: Don't re-escape html option values."
IAlex [Tue, 15 Jan 2013 07:22:02 +0000 (07:22 +0000)]
Merge "SpecialEditWatchlist: Don't re-escape html option values."

11 years agoAPI Cleanup: renamed '_badcontinue'->'badcontinue', one die()
Yuri Astrakhan [Tue, 15 Jan 2013 02:19:16 +0000 (21:19 -0500)]
API Cleanup: renamed '_badcontinue'->'badcontinue', one die()

* If a query module has 'continue' parameter, it will auto-report
that it has 'badcontinue' error.
* Added APIQueryBase::DieUsageContinueIf( $condition ) that shows
correct badcontinue error if $condition is true.

Change-Id: I9c48bda6de0cde3c117ad24460bddf6980279633

11 years ago[JobQueue] Optimized JobQueueGroup::pop().
Aaron Schulz [Mon, 14 Jan 2013 22:06:11 +0000 (14:06 -0800)]
[JobQueue] Optimized JobQueueGroup::pop().

* This also simplifies MediaWiki::doJobs().

Change-Id: I58ee2313453c64d4e8d91f3a65181aaa9c2e847f

11 years ago(bug 43498) (bug 43574) Two wikilink types and {{int:}}.
Matthew Flaschen [Sat, 29 Dec 2012 02:39:12 +0000 (21:39 -0500)]
(bug 43498) (bug 43574) Two wikilink types and {{int:}}.

* Bug 43498 - Implement two wikilink types, with tests. Also add test
for external link, which was already implemented in the
main code.

* Bug 43574 - Support {{int:}} message includes in jqueryMsg, with tests.
* Add tests for when the old mw.msg should be called, vs. getMessageFunction.
Change-Id: I7a748eb99259103f491ff5a5aa0bf223fc0b76c4

11 years agoMerge "Test (escaped) HTML entities in text content and attributes"
Subramanya Sastry [Tue, 15 Jan 2013 00:13:26 +0000 (00:13 +0000)]
Merge "Test (escaped) HTML entities in text content and attributes"

11 years agoTest (escaped) HTML entities in text content and attributes
Gabriel Wicke [Mon, 14 Jan 2013 23:15:52 +0000 (15:15 -0800)]
Test (escaped) HTML entities in text content and attributes

Change-Id: Id4414ff177c7eb08dc43ccfa97993895b93710ca

11 years agoMerge "Fixed empty return values in MemcLockManager."
Demon [Mon, 14 Jan 2013 22:11:19 +0000 (22:11 +0000)]
Merge "Fixed empty return values in MemcLockManager."

11 years agoSpecialEditWatchlist: Don't re-escape html option values.
Timo Tijhof [Mon, 14 Jan 2013 21:43:02 +0000 (22:43 +0100)]
SpecialEditWatchlist: Don't re-escape html option values.

HTMLForm class already escapes them. The values here should be
actual values that can be used directly internally without any
sort of encoding or escaping.

It was working fine because HTMLForm used this array two-way, so
it was also checking against the "wrong" values upon submission.

For the same reason, removing it here will not affect anything.

It does however fix the problem where it is hard to filter these
options in javascript because the values don't match.

Change-Id: Ieb0d4955febaccda2bdca58b316883337831ebfa

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 14 Jan 2013 21:34:31 +0000 (21:34 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id77a9b577c9e77205066ae235161fc2fbf4d7212

11 years agoMerge "Minor cleanup"
jenkins-bot [Mon, 14 Jan 2013 20:15:14 +0000 (20:15 +0000)]
Merge "Minor cleanup"

11 years agoFixed empty return values in MemcLockManager.
Aaron Schulz [Mon, 14 Jan 2013 19:33:50 +0000 (11:33 -0800)]
Fixed empty return values in MemcLockManager.

Change-Id: I50489620f08c577095934ff85cf6dcad4c99ae8d

11 years agoMerge "fixed timestamp validation for api"
jenkins-bot [Mon, 14 Jan 2013 18:56:01 +0000 (18:56 +0000)]
Merge "fixed timestamp validation for api"

11 years agoMerge "Removed useless keys() function from BagOStuff."
Demon [Mon, 14 Jan 2013 11:48:31 +0000 (11:48 +0000)]
Merge "Removed useless keys() function from BagOStuff."

11 years agoMerge "Fix spelling mistake"
IAlex [Mon, 14 Jan 2013 08:28:26 +0000 (08:28 +0000)]
Merge "Fix spelling mistake"

11 years agoFix spelling mistake
Niklas Laxström [Mon, 14 Jan 2013 07:19:29 +0000 (07:19 +0000)]
Fix spelling mistake

Change-Id: I946d0bf5d335a432f453c7a3080686e9500ca2f0

11 years agoImplement wall clock time limits for shell commands
Tim Starling [Sun, 13 Jan 2013 22:48:03 +0000 (09:48 +1100)]
Implement wall clock time limits for shell commands

* Use the "timeout" command to implement wall clock time limits.
* Write a message to stderr when the time limit is exceeded, for
consistency with ulimit
* Configure with $wgMaxShellWallClockTime
* If "time" is specified in $limits, use that as the wall clock limit in
preference to the global variable, to support legacy callers which
usually want to disable the limits.
* Remove the requirement for ulimit5.sh to be executable since this is
not necessary when you specify the interpreter. Should avoid subtle
problems when the executable bit is accidentally stripped.
* Move the interpretation of 0/-1/false limits to the shell script, so
that e.g. wall clock time can be limited even if memory is unlimited.

Change-Id: Id9f2fea7c3b027565bdc33b88a1a7d4cdfe43a6c

11 years agoMerge "Fix erroneous check in refreshLinks.php"
jenkins-bot [Sun, 13 Jan 2013 22:01:27 +0000 (22:01 +0000)]
Merge "Fix erroneous check in refreshLinks.php"

11 years agoMerge "Set RAII $scope variable in DB job queue."
IAlex [Sun, 13 Jan 2013 21:29:59 +0000 (21:29 +0000)]
Merge "Set RAII $scope variable in DB job queue."

11 years agoFix erroneous check in refreshLinks.php
Alexandre Emsenhuber [Sun, 13 Jan 2013 21:13:55 +0000 (22:13 +0100)]
Fix erroneous check in refreshLinks.php

Obviously null === false will never return true,
and what we actually want here is to check whether
we have a content or not.

Change-Id: Id78897e80ba2553c925e10d67c0fce2186aa11fd

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 13 Jan 2013 20:44:41 +0000 (20:44 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Don't apply IP blocks to users with "ipblock-exempt" rights when creating...
jenkins-bot [Sun, 13 Jan 2013 20:31:47 +0000 (20:31 +0000)]
Merge "Don't apply IP blocks to users with "ipblock-exempt" rights when creating an account"

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

Change-Id: I83bb4e1a9f603fff8daf9fb1befaad916d560f52

11 years agoSet RAII $scope variable in DB job queue.
Aaron Schulz [Sun, 13 Jan 2013 19:22:56 +0000 (11:22 -0800)]
Set RAII $scope variable in DB job queue.

Change-Id: I03e1396b4485be62a5bb927f987c6b4816d90d47

11 years agoMerge "Bug 43919 - showJobs.php broken"
IAlex [Sun, 13 Jan 2013 18:48:00 +0000 (18:48 +0000)]
Merge "Bug 43919 - showJobs.php broken"

11 years agoMerge "(bug 40124) allow arbitrary user preferences prefixed with 'userjs-'"
jenkins-bot [Sun, 13 Jan 2013 18:13:50 +0000 (18:13 +0000)]
Merge "(bug 40124) allow arbitrary user preferences prefixed with 'userjs-'"

11 years ago(bug 40124) allow arbitrary user preferences prefixed with 'userjs-'
MatmaRex [Fri, 7 Dec 2012 21:10:12 +0000 (22:10 +0100)]
(bug 40124) allow arbitrary user preferences prefixed with 'userjs-'

Before change I98df55f2 it was possible to set arbitrary preferences (ie.
with anything as the key) using the action=options API. That change
removed this ability by enforcing full validation of the preferences, also
introducing several regressions which were fixed by follow-ups.

Per the discussion on bug 40124, this changeset aims to restore this
ability, but in a slightly restricted way: arbitrary preferences' names
must start with userjs- prefix, to avoid any possibility of conflicting
with new MediaWiki versions or extensions.

The contents of these preferences is not escaped, sanitized nor validated
in any way; script authors are expected to sanitize them themselves to
prevent XSS attacks and other security vulnerabilities.

This commit also adds the User::getOptionsKinds() method (to determine
whether given preference keys are used by MediaWiki itself or an extension,
intended to be used via the API, or entirely unknown) and enhances the
User::resetOptions() method to allow for resetting only preferences of
chosen kinds.

These changes allow for fixing of Special:Preferences not to clear those
additional fields when saving user settings.

Change-Id: I5f9ba5b0dfe7c2ea5458d836f03429cf6d93969d