lhc/web/wiklou.git
9 years agoMerge "Fix setting hooks in ApiQueryTest"
jenkins-bot [Thu, 23 Oct 2014 17:56:57 +0000 (17:56 +0000)]
Merge "Fix setting hooks in ApiQueryTest"

9 years agoMerge "Use mergeMwGlobalArrayValue in AutoLoaderTest::setUp"
jenkins-bot [Thu, 23 Oct 2014 17:56:02 +0000 (17:56 +0000)]
Merge "Use mergeMwGlobalArrayValue in AutoLoaderTest::setUp"

9 years agoMerge "Use mergeMwGlobalArrayValue in LocalisationCacheTest"
jenkins-bot [Thu, 23 Oct 2014 17:55:59 +0000 (17:55 +0000)]
Merge "Use mergeMwGlobalArrayValue in LocalisationCacheTest"

9 years agoMerge "Use mergeMwGlobalArrayValue in ApiOptionsTest"
jenkins-bot [Thu, 23 Oct 2014 17:55:51 +0000 (17:55 +0000)]
Merge "Use mergeMwGlobalArrayValue in ApiOptionsTest"

9 years agoMerge "Use setMwGlobals in UserTest::testPasswordExpire"
jenkins-bot [Thu, 23 Oct 2014 17:55:20 +0000 (17:55 +0000)]
Merge "Use setMwGlobals in UserTest::testPasswordExpire"

9 years agoMerge "Use setMwGlobals in TitleTest::testGetPageViewLanguage"
jenkins-bot [Thu, 23 Oct 2014 17:53:00 +0000 (17:53 +0000)]
Merge "Use setMwGlobals in TitleTest::testGetPageViewLanguage"

9 years agoUse mergeMwGlobalArrayValue in LocalisationCacheTest
umherirrender [Wed, 15 Oct 2014 15:39:27 +0000 (17:39 +0200)]
Use mergeMwGlobalArrayValue in LocalisationCacheTest

Change-Id: I8cfe494d159101306c699169dd224c3bea65c753

9 years agoUse mergeMwGlobalArrayValue in ApiOptionsTest
umherirrender [Wed, 15 Oct 2014 15:47:58 +0000 (17:47 +0200)]
Use mergeMwGlobalArrayValue in ApiOptionsTest

Change-Id: Ic0a9ceab9e8fad7c408e32ba110a3543ef28b59e

9 years agoMerge "Add hook to extract namespace in prefix search"
jenkins-bot [Thu, 23 Oct 2014 17:39:14 +0000 (17:39 +0000)]
Merge "Add hook to extract namespace in prefix search"

9 years agoAvoid implicit Message::toString in InfoAction
umherirrender [Fri, 26 Sep 2014 13:42:36 +0000 (15:42 +0200)]
Avoid implicit Message::toString in InfoAction

Call explicit escape to show which message format is used.

Change-Id: I725f7ab394c275ad68a0b816b841c9b6b8bc325c

9 years agoAPI: Include ApiMain construction in api.php try-catch block
Brad Jorsch [Wed, 22 Oct 2014 21:26:40 +0000 (17:26 -0400)]
API: Include ApiMain construction in api.php try-catch block

If the User language is accessed from ApiMain::__construct on a request
via OAuth and the authorization headers weren't valid, the
UsageException was not being handled.

Further, the code setting $wgLang in that constructor should be using
the language just set on the local context, not the main request
context.

Bug: 72384
Change-Id: I90900dc4a8aea22c67c0c05b38128d5dbb044f07

9 years agoTweak 'destructive' use case in style guide
Matthew Flaschen [Thu, 23 Oct 2014 04:57:32 +0000 (00:57 -0400)]
Tweak 'destructive' use case in style guide

Bug: 71856
Change-Id: Ib69e0496ac768d4385d653073547f9482cd9641a

9 years agoRestore next link to Special:AllPages
MZMcBride [Thu, 23 Oct 2014 03:38:32 +0000 (23:38 -0400)]
Restore next link to Special:AllPages

This commit is a follow-up to 9ffa5fc.

Bug: 69951
Change-Id: If244ebd656bf1537e671fd986edc39bcc01bb9b5

9 years agojquery.textSelection: Add ability to register custom implementation
Derk-Jan Hartman [Mon, 28 Jul 2014 20:28:29 +0000 (22:28 +0200)]
jquery.textSelection: Add ability to register custom implementation

At times we replace the textarea with a different implementation, for
instance in the former iframe code of WikiEditor and now in CodeEditor.

Obviously only one implementation of this API can be in control at a
time, but in order to disable/enable which one exactly is currently
determined by the existence of function in the core WikiEditor
context. This is a remnant of when this code was still in WikiEditor.

I added two commands, "register" and "unregister", that take an object
that has alternative function implementations for one or more commands.

Bug: 29328
Change-Id: I14492572f7eb9bbd1af68872dbfef5159126f107

9 years agoUpdate OOjs UI to v0.1.0-pre (40de4dabe6)
James D. Forrester [Wed, 22 Oct 2014 23:42:29 +0000 (16:42 -0700)]
Update OOjs UI to v0.1.0-pre (40de4dabe6)

New changes:
849a687 Mute text color of accelerators in tool groups
40de4da Remind people to run composer install

Change-Id: I91c369da9170b6561906d27d193ce42b02ade021

9 years agoAdd hook to extract namespace in prefix search
Nik Everett [Wed, 22 Oct 2014 20:00:03 +0000 (16:00 -0400)]
Add hook to extract namespace in prefix search

This will allow extensions (namely CirrusSearch) to match namespaces using
their own rules if core can't find the namespace on its own.

Bug: 62322
Change-Id: I17337cd8ce90190bd335c9159e9d3bbb39ba89cd

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 22 Oct 2014 19:38:19 +0000 (21:38 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9a5331518171f1ffc807226fd585aacdf60b5eb4

9 years agoMerge "Made JobRunner wait for all applicable slaves, not just the main cluster"
jenkins-bot [Wed, 22 Oct 2014 18:58:38 +0000 (18:58 +0000)]
Merge "Made JobRunner wait for all applicable slaves, not just the main cluster"

9 years agoMade JobRunner wait for all applicable slaves, not just the main cluster
Aaron Schulz [Tue, 21 Oct 2014 21:41:34 +0000 (14:41 -0700)]
Made JobRunner wait for all applicable slaves, not just the main cluster

Change-Id: Ib610684fd3d9b76ea13fe585a290983c071b88f4

9 years agoExpose job metadata in showJobs and the jobs log
Aaron Schulz [Tue, 21 Oct 2014 22:07:39 +0000 (15:07 -0700)]
Expose job metadata in showJobs and the jobs log

* This means that redis job UUIDs now show up in these places

Change-Id: Icea168de7e1590bfe275646bc2ccbb7151f032ae

9 years agoOptimized wfWaitForSlaves() to get the master positions for all LBs first
Aaron Schulz [Wed, 22 Oct 2014 17:56:36 +0000 (10:56 -0700)]
Optimized wfWaitForSlaves() to get the master positions for all LBs first

Change-Id: I4a4aa6a3f68ace85dcbfb73e982a16c62e21e6ed

9 years agoMerge "Move tests into separate ResourceLoaderFileModuleTest"
jenkins-bot [Wed, 22 Oct 2014 17:44:59 +0000 (17:44 +0000)]
Merge "Move tests into separate ResourceLoaderFileModuleTest"

9 years agoFixed loop in wfWaitForSlaves()
Aaron Schulz [Wed, 22 Oct 2014 17:32:48 +0000 (10:32 -0700)]
Fixed loop in wfWaitForSlaves()

* The "break" statements should obviously be "continue" here.

Change-Id: Ia4a9bad77a9f512153aee6b77443104e71f5cd56

9 years agoMerge "API: Fix ApiFormatFeedWrapper"
jenkins-bot [Wed, 22 Oct 2014 17:20:35 +0000 (17:20 +0000)]
Merge "API: Fix ApiFormatFeedWrapper"

9 years agoMove tests into separate ResourceLoaderFileModuleTest
Kunal Mehta [Wed, 22 Oct 2014 05:32:13 +0000 (22:32 -0700)]
Move tests into separate ResourceLoaderFileModuleTest

Change-Id: I2504867850b7e6bda2afb8c4fedbe6b8819bc15b

9 years agoAPI: Fix ApiFormatFeedWrapper
Brad Jorsch [Wed, 22 Oct 2014 16:00:48 +0000 (12:00 -0400)]
API: Fix ApiFormatFeedWrapper

With recent changes to the API, directly outputting text from execute()
in ApiFormatBase subclasses doesn't work anymore. Adjust
ApiFormatFeedWrapper for this new situation, and also handle headers in
initPrinter() where that belongs.

Bug: 72359
Change-Id: I4e4a2386858da6d87169deabaca763eeeacefbe9

9 years agoMerge "Treat the "temp" repo zone as private"
jenkins-bot [Wed, 22 Oct 2014 16:38:42 +0000 (16:38 +0000)]
Merge "Treat the "temp" repo zone as private"

9 years agoMerge "API: Warn when neither rawcontinue nor continue are given to action=query"
jenkins-bot [Wed, 22 Oct 2014 16:16:25 +0000 (16:16 +0000)]
Merge "API: Warn when neither rawcontinue nor continue are given to action=query"

9 years agoMerge "Only link local titles on Special:Search"
jenkins-bot [Wed, 22 Oct 2014 14:29:34 +0000 (14:29 +0000)]
Merge "Only link local titles on Special:Search"

9 years agoMerge "Allow for time-limited tokens"
jenkins-bot [Wed, 22 Oct 2014 13:13:19 +0000 (13:13 +0000)]
Merge "Allow for time-limited tokens"

9 years agojsminplus: Fix string concatenation in error message
Bryan Davis [Wed, 22 Oct 2014 03:53:03 +0000 (21:53 -0600)]
jsminplus: Fix string concatenation in error message

PHP concatenates strings with the `.` operator, not with `+`.

Change-Id: I628a55d714129a1345c37bfd31d8985bce177701

9 years agoRemove invalid CacheHelper entry from wgAutoloadLocalClasses
Bryan Davis [Wed, 22 Oct 2014 03:46:38 +0000 (21:46 -0600)]
Remove invalid CacheHelper entry from wgAutoloadLocalClasses

There were 2 CacheHelper keys in the array. Remove the one that pointed
to a non-existent file.

Change-Id: Ifb418fe8742b5515b500a6662b10efccd8273195

9 years agoUpdate OOjs UI to v0.1.0-pre (531d497d3b)
James D. Forrester [Tue, 21 Oct 2014 23:54:00 +0000 (16:54 -0700)]
Update OOjs UI to v0.1.0-pre (531d497d3b)

New changes:
3cd90ee TextInputWidget: Allow changing 'type' attribute
8bf9c29 FormLayout: Accept HTML form attributes as config options
fadc51d OOUI PHP: Unbreak ButtonWidget
50b926c build: Introduce 'quick-build' task
8e71673 Make padding between popup and container configurable
e432f9f Fix anchor positioning on popups
16ae17a PopupWidget: Remove references to 'show' and 'hide' events
cfe286f Localisation updates from https://translatewiki.net.
272476b GridLayout: Set dimensions.visibility = '' again if we have a height and a width

Change-Id: Ia2a6125e0da7659b08252b4ea2c2ddd9f6baa88a

9 years agoMerge "Made wfWaitForSlaves() support waiting on all clusters as needed"
jenkins-bot [Tue, 21 Oct 2014 21:42:55 +0000 (21:42 +0000)]
Merge "Made wfWaitForSlaves() support waiting on all clusters as needed"

9 years agoMade wfWaitForSlaves() support waiting on all clusters as needed
Aaron Schulz [Tue, 21 Oct 2014 20:37:54 +0000 (13:37 -0700)]
Made wfWaitForSlaves() support waiting on all clusters as needed

Change-Id: Icc45ae26fee655597ae1c437b5f774d7e84f643a

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Tue, 21 Oct 2014 20:42:51 +0000 (20:42 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 21 Oct 2014 20:40:59 +0000 (22:40 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1e89b22e01053ab8a1b87826d8702158b40fd59f

9 years agoMerge "Tweaked chooseBlock() comments"
jenkins-bot [Tue, 21 Oct 2014 20:39:28 +0000 (20:39 +0000)]
Merge "Tweaked chooseBlock() comments"

9 years agoMerge "Move MergeLogFormatter to 1.25"
jenkins-bot [Tue, 21 Oct 2014 20:34:27 +0000 (20:34 +0000)]
Merge "Move MergeLogFormatter to 1.25"

9 years agoMerge "Revert "Revert "Make enhanced recent changes and extended watchlist default"""
jenkins-bot [Tue, 21 Oct 2014 20:03:10 +0000 (20:03 +0000)]
Merge "Revert "Revert "Make enhanced recent changes and extended watchlist default"""

9 years agoMove MergeLogFormatter to 1.25
umherirrender [Tue, 21 Oct 2014 19:56:46 +0000 (21:56 +0200)]
Move MergeLogFormatter to 1.25

Follow-Up: I0557a0d2751540cf0d7967333ffd767b934011c6
Change-Id: Id18ba7d925062d795bd129af255cc902e48d30f6

9 years agoRevert "Revert "Make enhanced recent changes and extended watchlist default""
Jforrester [Tue, 21 Oct 2014 19:55:26 +0000 (19:55 +0000)]
Revert "Revert "Make enhanced recent changes and extended watchlist default""

This reverts commit 820ec3930d694f06fc62e652daea7506f3027162.

Config bugs are fixed in the config repo. :-)

Change-Id: Ifc955aaf75395b61230750e47edbd5f623da2985

9 years agoTweaked chooseBlock() comments
Aaron Schulz [Tue, 21 Oct 2014 19:39:17 +0000 (12:39 -0700)]
Tweaked chooseBlock() comments

Change-Id: Ia13af74efe2081038409a229202e50016e91f5b5

9 years agoAPI: Warn when neither rawcontinue nor continue are given to action=query
Brad Jorsch [Sat, 13 Sep 2014 18:02:37 +0000 (14:02 -0400)]
API: Warn when neither rawcontinue nor continue are given to action=query

The default behavior for continuation for action=query will be changing.
Warn clients that they will need to update.

Change-Id: I52d048040e898a0c9630e2aed071b339ec12de42

9 years agoMerge "Revert "Make enhanced recent changes and extended watchlist default""
jenkins-bot [Tue, 21 Oct 2014 18:55:23 +0000 (18:55 +0000)]
Merge "Revert "Make enhanced recent changes and extended watchlist default""

9 years agoTreat the "temp" repo zone as private
Aaron Schulz [Fri, 17 Oct 2014 19:32:58 +0000 (12:32 -0700)]
Treat the "temp" repo zone as private

* The primary user is the upload stash. Both stashed originals and thumbnails can
  be viewed through Special:UploadStash, which checks the appropriate permissions.
  There is no need for direct web access.
* Note that the scaler URL has to point to something that does no authentication
  checks since the HTTP GET has no cookie headers propagated. However the file
  name is the URL is determined by us_path, which is not exposed to the author
  but rather stored in the DB and linked by the file key. The author should only
  know the key.
* Also changed getTempRepo() to set the thumb/transcoded zones to nest in
  the base repo temp zone. This way, the temp and base repo do not conflict
  as to whether a container might be private or not.

Change-Id: I403520053b2053094e5f90083b6375bc04c351f4

9 years agoUpdate OOjs UI to v0.1.0-pre (44db8292bf)
James D. Forrester [Tue, 21 Oct 2014 18:34:02 +0000 (11:34 -0700)]
Update OOjs UI to v0.1.0-pre (44db8292bf)

New changes:
bcc2927 Display keyboard shortcuts in right gutter of toolbar menus
f73d2b6 Localisation updates from https://translatewiki.net.
42be2b7 Progress bar widget
9833d47 Fix consoles in widgets demo
83645c4 OoUiPHP: Improve theme singleton handling
b4f0bc7 Add composer.json, use it for autoloading

Change-Id: I8770f4359eb912e01371cd6843da6dd61d832c3a

9 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 21 Oct 2014 17:53:48 +0000 (17:53 +0000)]
Merge "Sync up with Parsoid parserTests."

9 years agoMigrate merge log to new log system
umherirrender [Mon, 4 Aug 2014 17:10:51 +0000 (19:10 +0200)]
Migrate merge log to new log system

This allows use of gender on Special:Log
Old message is kept for use in irc,
a test is added to ensure a unchanged irc message.

Change-Id: I0557a0d2751540cf0d7967333ffd767b934011c6

9 years agoMake Special:Search's button pretty again
Chad Horohoe [Tue, 21 Oct 2014 15:56:36 +0000 (08:56 -0700)]
Make Special:Search's button pretty again

Buttons were changed to be gated by the use UI
everywhere flag. Don't want that here

Change-Id: Ief47de045b2197f1ff36372355136418b0772948

9 years agoMerge "Fix pagecount output"
jenkins-bot [Tue, 21 Oct 2014 14:32:50 +0000 (14:32 +0000)]
Merge "Fix pagecount output"

9 years agoMerge "Remove negative caching from Revision::getContentInternal"
jenkins-bot [Tue, 21 Oct 2014 12:56:03 +0000 (12:56 +0000)]
Merge "Remove negative caching from Revision::getContentInternal"

9 years agoMerge "Add language name for aeb"
jenkins-bot [Tue, 21 Oct 2014 12:09:27 +0000 (12:09 +0000)]
Merge "Add language name for aeb"

9 years agoMerge "Extensions may add tests by directory"
jenkins-bot [Tue, 21 Oct 2014 11:37:02 +0000 (11:37 +0000)]
Merge "Extensions may add tests by directory"

9 years agoMerge "Add mw-ui-icon-after"
jenkins-bot [Tue, 21 Oct 2014 10:35:25 +0000 (10:35 +0000)]
Merge "Add mw-ui-icon-after"

9 years agoAdd language name for aeb
Niklas Laxström [Sat, 18 Oct 2014 13:32:03 +0000 (15:32 +0200)]
Add language name for aeb

Translations were added long time ago

Change-Id: Ie31f8ad1f5443b0ad052bd028583154e46a433ce

9 years agoMerge "Rewrite ORMTable::unprefixFieldNames"
jenkins-bot [Tue, 21 Oct 2014 09:45:31 +0000 (09:45 +0000)]
Merge "Rewrite ORMTable::unprefixFieldNames"

9 years agoExtensions may add tests by directory
Adam Roses Wight [Sun, 28 Sep 2014 21:32:55 +0000 (14:32 -0700)]
Extensions may add tests by directory

The UnitTestsList hook can now be used to add entire directories of
tests, à la phpunit.xml's <directory> tag.  The test suite is built by
recursively scanning the directory for any files ending in "Test.php".

TODO:
* Update online hook documentation.
* Generate and autoload a classmap for scanned directories.

Bug: 70630
Change-Id: I3089372f9d7c645e16ff0984a959f982a3bc639f

9 years agoMerge "Remove unused variable in ProfilerMwprof"
jenkins-bot [Tue, 21 Oct 2014 03:22:47 +0000 (03:22 +0000)]
Merge "Remove unused variable in ProfilerMwprof"

9 years agoRemove unused variable in ProfilerMwprof
Chad Horohoe [Tue, 21 Oct 2014 01:39:46 +0000 (18:39 -0700)]
Remove unused variable in ProfilerMwprof

Change-Id: I7643717c3c899999f8393a6af726397b28d441fc

9 years agoFix pagecount output
robinhood701 [Tue, 21 Oct 2014 01:38:44 +0000 (21:38 -0400)]
Fix pagecount output

Change-Id: I9ff3b986a2e1fdedb2ec5e281dbcaf6e35d3c2d0

9 years agoMerge "SqlBagOStuff: fix percentage in deleteObjectsExpiringBefore()"
jenkins-bot [Tue, 21 Oct 2014 00:58:08 +0000 (00:58 +0000)]
Merge "SqlBagOStuff: fix percentage in deleteObjectsExpiringBefore()"

9 years agoAlways supported delayed jobs in JobQueueRedis for simplicity
Aaron Schulz [Sun, 19 Oct 2014 01:41:21 +0000 (18:41 -0700)]
Always supported delayed jobs in JobQueueRedis for simplicity

* Previously, each job type had to be configured to allow delayed jobs

Change-Id: I5f3cf04deca76d6684aa6b14eea97a8673a7f5af

9 years agoMerge "Added another size limit check to Job::toString"
jenkins-bot [Tue, 21 Oct 2014 00:11:54 +0000 (00:11 +0000)]
Merge "Added another size limit check to Job::toString"

9 years agoMerge "Add Content-Length header for job queue requests"
jenkins-bot [Mon, 20 Oct 2014 23:26:39 +0000 (23:26 +0000)]
Merge "Add Content-Length header for job queue requests"

9 years agoSync up with Parsoid parserTests.
Subramanya Sastry [Mon, 20 Oct 2014 23:06:41 +0000 (18:06 -0500)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 9c8b75a3950eb1e1085ff140e76f69d70e25a647

Change-Id: I34b7077262e006acb9d45dd734488292ce9d4912

9 years agoMerge "Fix exception while bubbling titles"
jenkins-bot [Mon, 20 Oct 2014 22:41:25 +0000 (22:41 +0000)]
Merge "Fix exception while bubbling titles"

9 years agoMerge "Remove deprecated GlobalVarConfig::set()"
jenkins-bot [Mon, 20 Oct 2014 22:40:39 +0000 (22:40 +0000)]
Merge "Remove deprecated GlobalVarConfig::set()"

9 years agoRemoved deprecated Job methods
Aaron Schulz [Mon, 22 Sep 2014 18:31:57 +0000 (11:31 -0700)]
Removed deprecated Job methods

Change-Id: Ib7a06ab19b31472c99cdccd418011beb6f075ca4

9 years agoRevert "Use a fixed regex for StripState"
Tim Starling [Mon, 20 Oct 2014 21:42:17 +0000 (21:42 +0000)]
Revert "Use a fixed regex for StripState"

Breaks extensions, doesn't entirely fix the problem it was meant to fix.

This reverts commit 6da3f169ac55ae87837a4ba3cf3e30f83fbf9d7d.

Change-Id: Ic193abcff8c72b0c8b434fcac514f88603a45beb

9 years agoMerge "API: Internationalize all remaining core API modules"
jenkins-bot [Mon, 20 Oct 2014 21:41:19 +0000 (21:41 +0000)]
Merge "API: Internationalize all remaining core API modules"

9 years agoAdd Content-Length header for job queue requests
Patrick Westerhoff [Mon, 20 Oct 2014 21:40:20 +0000 (23:40 +0200)]
Add Content-Length header for job queue requests

Include the Content-Length header in job queue POST requests to meet the
requirement by certain servers, avoiding HTTP 411 responses.

Bug: 72274
Change-Id: Icf34bca58c792225d735d576213d6887015459ca

9 years agoMerge "Remove hitcounters and associated code"
jenkins-bot [Mon, 20 Oct 2014 21:12:54 +0000 (21:12 +0000)]
Merge "Remove hitcounters and associated code"

9 years agoRemoved extra "tries" increment in the redis job queue
Aaron Schulz [Tue, 14 Oct 2014 21:58:26 +0000 (14:58 -0700)]
Removed extra "tries" increment in the redis job queue

* This could result in jobs getting one less extra tries than they should

Change-Id: Ia2e82ca0965f6ce9e1354820eb03f40f047a949c

9 years agoAPI: Internationalize all remaining core API modules
Brad Jorsch [Thu, 18 Sep 2014 17:38:23 +0000 (13:38 -0400)]
API: Internationalize all remaining core API modules

This also adds some new ApiBase::PARAM_* constants to generate more
helpful help, and a method to override the default description message
for the use of ApiDisabled and ApiQueryDisabled.

Bug: 71638
Change-Id: Ic0c3d232e0498d58a043037e2e0c6f0b1c3edad3

9 years agoAvoid calling recyclePruneAndUndelayJobs() in daemonized mode
Aaron Schulz [Sun, 19 Oct 2014 01:11:53 +0000 (18:11 -0700)]
Avoid calling recyclePruneAndUndelayJobs() in daemonized mode

* This could cause problems if claimTTL is 0 in MW config but not
  in the runner JSON config.

Change-Id: I86418fd4426b58be1c17c97e026d14239f5e36de

9 years agoRemove hitcounters and associated code
Chad Horohoe [Wed, 30 Jul 2014 20:56:20 +0000 (13:56 -0700)]
Remove hitcounters and associated code

The hitcounter implementation in MediaWiki is flawed
and needs removal. For proper metrics, it is suggested to use
something like Piwik or Google Analytics.

RFC: https://www.mediawiki.org/wiki/Requests_for_comment/Removing_hit_counters_from_MediaWiki_core
Change-Id: I0e5006a7e8a09c800f8fa4effa9399e8afdd7a57

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 20 Oct 2014 19:58:21 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I071ca41395b65765a6506f7c89b63cfd613af93a

9 years agoMerge "Revert "Add maxlength of 6 for time correction in preferences""
jenkins-bot [Mon, 20 Oct 2014 18:21:51 +0000 (18:21 +0000)]
Merge "Revert "Add maxlength of 6 for time correction in preferences""

9 years agoRevert "Add maxlength of 6 for time correction in preferences"
Mattflaschen [Mon, 20 Oct 2014 18:01:21 +0000 (18:01 +0000)]
Revert "Add maxlength of 6 for time correction in preferences"

As noted by Bartosz, System|60 is also valid (apparently also
ZoneInfo|something, but not sure what can go after ZoneInfo), and the
maxlength interferes with this.

Maybe eventually we could revisit and use input#pattern
(http://www.w3.org/TR/html51/forms.html#the-pattern-attribute).  That
allows specifying a regex, which could have different length limits
depending whether it started with a number (AFAICT, the 6 length is valid
if it starts with a digit).

But for now, that is not urgent, and we need to fix the regression.

This reverts commit da470ce005652774049d346142b9509e89b31c6b.

Bug: 70405
Change-Id: Ib585c76688284dab78e85fb355785c06d0c3e353

9 years agoMerge "Update OOjs UI to v0.1.0-pre (db065e5a9f)"
jenkins-bot [Mon, 20 Oct 2014 17:52:24 +0000 (17:52 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (db065e5a9f)"

9 years agoMerge "Get the value of microtime() directly as float in updateSpecialPages.php"
jenkins-bot [Mon, 20 Oct 2014 17:45:48 +0000 (17:45 +0000)]
Merge "Get the value of microtime() directly as float in updateSpecialPages.php"

9 years agoGet the value of microtime() directly as float in updateSpecialPages.php
Alexandre Emsenhuber [Mon, 20 Oct 2014 17:29:31 +0000 (19:29 +0200)]
Get the value of microtime() directly as float in updateSpecialPages.php

It has a first parameter to directly get the value as float, so use it
instead of doing string manipulation.

Change-Id: Id2dff4486ea4f308ce03fc3d5546660c4e3c26b6

9 years agoMerge "Mention translatewiki.net on edits only, when edit a default message"
jenkins-bot [Mon, 20 Oct 2014 17:08:51 +0000 (17:08 +0000)]
Merge "Mention translatewiki.net on edits only, when edit a default message"

9 years agoRemove deprecated GlobalVarConfig::set()
Kunal Mehta [Fri, 3 Oct 2014 08:32:48 +0000 (01:32 -0700)]
Remove deprecated GlobalVarConfig::set()

Was deprecated in 1.24.

Change-Id: Iead2c8ba14c0524cba9585b5d4c29f2f806cfc15

9 years agoFix exception while bubbling titles
Nik Everett [Mon, 20 Oct 2014 16:17:15 +0000 (12:17 -0400)]
Fix exception while bubbling titles

In prefix search if the search text is actually a title we make sure it is at
the top of the results.  But if it isn't a valid title we shouldn't blow up
because blowing up is bad.

Bug: 72260
Change-Id: I5bd795df447a33bb003a38ec2068dc184379a813

9 years agoCoreParserFunctions::displaytitle(): Use Parser::killMarkers()
Kevin Israel [Mon, 20 Oct 2014 06:52:02 +0000 (02:52 -0400)]
CoreParserFunctions::displaytitle(): Use Parser::killMarkers()

... instead of doing something similar to an old version of it.

Change-Id: I78db194291236208843a13b80d322d403774796c

9 years agoMerge "Add name for bto language"
jenkins-bot [Mon, 20 Oct 2014 15:22:09 +0000 (15:22 +0000)]
Merge "Add name for bto language"

9 years agoMerge "Add $tablesUsed for ApiTestCase"
jenkins-bot [Mon, 20 Oct 2014 15:02:21 +0000 (15:02 +0000)]
Merge "Add $tablesUsed for ApiTestCase"

9 years agoUpdate OOjs UI to v0.1.0-pre (db065e5a9f)
James D. Forrester [Mon, 20 Oct 2014 14:47:58 +0000 (07:47 -0700)]
Update OOjs UI to v0.1.0-pre (db065e5a9f)

New changes:
8e1a057 ListToolGroup: Implement collapsible/expandable tools
35b58b5 Introduce ButtonInputWidget
9ca3b79 FlaggedElement: Fix PHP notice
db065e5 Localisation updates from https://translatewiki.net.

Locally, add the two new messages to the Resources.php manifest.

Change-Id: I27a925d3f8799fe1f5635cb41de95f5d555d1f5a

9 years agoMake PrefixSearchTest use MediaWikiLangTestCase
umherirrender [Wed, 15 Oct 2014 16:31:29 +0000 (18:31 +0200)]
Make PrefixSearchTest use MediaWikiLangTestCase

It uses namespaces which depends on the content language

Change-Id: I0a1ef4adea1e1ddff32e37cbbd8cf51a3398905b

9 years agoAdd $tablesUsed for ApiTestCase
Matthias Mullie [Mon, 20 Oct 2014 11:57:11 +0000 (13:57 +0200)]
Add $tablesUsed for ApiTestCase

This test creates 2 TestUser objects on setUp. Due to recent
changes in TestUser, this isn't even possible anymore if
MediaWikiTestCase hasn't setupTestDB() properly.

Change-Id: Idadfb94bd48270ad085cfece2bf17024ed9d97cd

9 years agoMerge "Skip tests in PrefixSearchTest if not wikitext main namespace"
jenkins-bot [Mon, 20 Oct 2014 10:18:53 +0000 (10:18 +0000)]
Merge "Skip tests in PrefixSearchTest if not wikitext main namespace"

9 years agoFix incorrect replacement inside regular expression
Alexandre Emsenhuber [Mon, 20 Oct 2014 08:26:49 +0000 (10:26 +0200)]
Fix incorrect replacement inside regular expression

Fix for Id3aa87cfa0 (2537ca2).

The "$" is for the end of the string, not for a variable.

Change-Id: I2d262582644b903992dc621079ea5a6a04d7af70

9 years agoUse prefixed globals in eval.php main loop
Tim Starling [Sat, 18 Oct 2014 22:37:56 +0000 (15:37 -0700)]
Use prefixed globals in eval.php main loop

Use globals with less-common names so that variables created by the
command line are less likely to conflict with the ones used by the
eval.php loop.

Change-Id: Id3aa87cfa039eb7555f44e17134c7cdbb5f25cc1

9 years agoOnly link local titles on Special:Search
Marius Hoch [Mon, 20 Oct 2014 00:58:45 +0000 (02:58 +0200)]
Only link local titles on Special:Search

Anything else is confusing, especially given the message text
we have there.

Example:
https://www.mediawiki.org/wiki/Special:Search?search=en%3Afoo&fulltext=1

Also fix the documentation of Title::isLocal as that was misleading
and fooled me (in PS1).

Change-Id: Iccb69de4c7243bf144a12deb8b86505e56a111dd

9 years agoMerge "Make TestUser way faster"
jenkins-bot [Mon, 20 Oct 2014 00:22:13 +0000 (00:22 +0000)]
Merge "Make TestUser way faster"

9 years agoMake TestUser way faster
Marius Hoch [Sun, 19 Oct 2014 22:22:02 +0000 (00:22 +0200)]
Make TestUser way faster

By only updating the user row in the database, if needed
and by making use of md5 for passwords instead of slower
hashing.
This cut down run time of some Wikibase API tests to 20%
of the original value for me!
Also it reduces the run time of MediaWiki's test suite
by about 45s on jenkins.

Change-Id: I7024b287a71fe9b327dbcdc5427cd8edb5047606

9 years agoMerge "Use a fixed regex for StripState"
jenkins-bot [Sun, 19 Oct 2014 22:52:44 +0000 (22:52 +0000)]
Merge "Use a fixed regex for StripState"

9 years agoUse a fixed regex for StripState
Tim Starling [Sat, 18 Oct 2014 22:31:27 +0000 (15:31 -0700)]
Use a fixed regex for StripState

The JIT compiler in newer versions of PCRE experiences lock contention
when multithreaded applications perform a high rate of concurrent
compilations. We are seeing some performance impact on HHVM under normal
production traffic.

The random part of the strip marker is just there to protect against
deliberate insertion of strip markers into the source text, which is
very rare. So use a generic regex to find strip markers, and check in
the callback whether the random state ID is correct.

StripState::killMarkers() will be slower when it has to remove many
strip markers, but most calls to it will not match any strip markers, so
overall performance should be improved due to reduced JIT compilation.

Bug: 72205
Change-Id: I8d37ae929a8c669c9e39adc8096b89e5732b68d0