lhc/web/wiklou.git
11 years agoMerge "Add pp_propname_page index to page_props"
jenkins-bot [Mon, 25 Feb 2013 22:54:48 +0000 (22:54 +0000)]
Merge "Add pp_propname_page index to page_props"

11 years agoFlip order of conditionals and add explanatory note
Ori Livneh [Mon, 25 Feb 2013 08:15:40 +0000 (00:15 -0800)]
Flip order of conditionals and add explanatory note

The conditional is nominally more performant and considerably more readable
with its constituents flipped. Also adds an explanatory note. Prompted by
confusion over change Ie89507f8e98c365df9d93a7633223103b9025790.

Change-Id: I2d3db63bdbcebe0fd59c063c9f371362c9d07f91

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 25 Feb 2013 20:53:03 +0000 (20:53 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If14859a3c91bd48ed6597473a516f65f7da812aa

11 years ago(bug 43661) Add link trail and link prefix to API
Mark Holmquist [Fri, 22 Feb 2013 00:15:15 +0000 (16:15 -0800)]
(bug 43661) Add link trail and link prefix to API

This is more than just fetching messages -- we also check whether the messages
are enabled via the preferences and configuration. If not, the variables won't
be there.

Change-Id: If617f43004dbd42f7eaa6f75010cdc5a0a662f60

11 years agoMerge "(bug 41716) Add variant config to siprop=general"
jenkins-bot [Mon, 25 Feb 2013 18:22:13 +0000 (18:22 +0000)]
Merge "(bug 41716) Add variant config to siprop=general"

11 years ago(bug 41716) Add variant config to siprop=general
Mark Holmquist [Wed, 20 Feb 2013 19:15:35 +0000 (11:15 -0800)]
(bug 41716) Add variant config to siprop=general

Parsoid again needs some extra information, this time so we can support
language variant conversion on our side of things. Added to properties to the
general siteinfo property.

Change-Id: I1ec7da2ec5b08228e74fec4fb366dae26cab8936

11 years agoMerge "Make ApiEditPage use Article::newFromWikiPage() and add user to context"
jenkins-bot [Mon, 25 Feb 2013 17:54:48 +0000 (17:54 +0000)]
Merge "Make ApiEditPage use Article::newFromWikiPage() and add user to context"

11 years agoMerge "Misc follow-ups to I2fc3966e (a161c5e)"
jenkins-bot [Mon, 25 Feb 2013 08:55:30 +0000 (08:55 +0000)]
Merge "Misc follow-ups to I2fc3966e (a161c5e)"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 24 Feb 2013 20:17:53 +0000 (20:17 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ia33a43b0df52af2259663153f4e8fe50a3a024b5

11 years agoMerge "Remove gaps from $wgFileExtensions array"
jenkins-bot [Sun, 24 Feb 2013 14:46:44 +0000 (14:46 +0000)]
Merge "Remove gaps from $wgFileExtensions array"

11 years agoRemove gaps from $wgFileExtensions array
Lee Worden [Sun, 24 Feb 2013 07:15:11 +0000 (23:15 -0800)]
Remove gaps from $wgFileExtensions array

If $wgFileExtensions contains values that are in $wgFileBlacklist,
when Setup.php uses array_diff to remove them it leaves $wgFileExtensions
as an array with nonconsecutive integer indices.

When this array is encoded by the Xml class, for use in client-side
JavaScript, the nonconsecutive indices cause it to encode it as an
Object rather than Array.  This breaks the extension processing in
UploadWizard's JS code.  To fix this, use array_values to remove the
gaps in indices.

Bug: 44776
Change-Id: I4ef7f1de90a0384800722839f3fa3a581c63bac9

11 years agoMake ApiEditPage use Article::newFromWikiPage() and add user to context
Alexandre Emsenhuber [Sun, 24 Feb 2013 10:34:50 +0000 (11:34 +0100)]
Make ApiEditPage use Article::newFromWikiPage() and add user to context

- Changed the creation of the Article object in ApiEditPage::execute() to
  use Article::newFromWikiPage(), this allows to re-use the already-existing
  WikiPage object in that method instead of having to create a new one.
  Article::newFromTitle() was used before, but for some reason this got
  reverted back to "new Article" with the merge of the Wikidata branch.
- Removed the call to WikiPage::clear() added in I1d28164d (2c27926); no
  longer needed since the WikiPage object is now already up to date after
  the edit.
- Added WikiPage and User objects to the context passed to the created
  Article object; follow-up to I74394282 (078334f).

Change-Id: I53088a42ef7592aaba7449ef3f84f77f2e07b2f5

11 years agoMerge "XML format: fix "Unrecognized parameter" warning"
jenkins-bot [Sun, 24 Feb 2013 10:29:36 +0000 (10:29 +0000)]
Merge "XML format: fix "Unrecognized parameter" warning"

11 years agoWeb installer: fix "Upgrade existing installation"
Kevin Israel [Sun, 24 Feb 2013 02:16:03 +0000 (21:16 -0500)]
Web installer: fix "Upgrade existing installation"

Fixes a regression caused by Ic166066a: when updating an
existing database, the web installer uses the DatabaseUpdater
class, which requires Maintenance.php.

Bug: 45257
Change-Id: Ie2dc80ab1e0cd9a9552b51dce6681f748aa38ab7

11 years agoXML format: fix "Unrecognized parameter" warning
Kevin Israel [Sat, 23 Feb 2013 21:19:29 +0000 (16:19 -0500)]
XML format: fix "Unrecognized parameter" warning

ApiMain::reportUnusedParams() is called before the XML formatter is
executed, so using "includexmlnamespace" or another such parameter
causes the incorrect generation of a warning. This patch corrects
the issue by explicitly excluding valid formatter parameters from
the list of unused parameters.

This does not need a release note because MediaWiki 1.20 did not
generate this kind of warning.

Change-Id: I269a6e07aa245099c811947d7832e1aa6fcfb9ec

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 23 Feb 2013 20:10:36 +0000 (20:10 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ifd281891424d5f523b9b5ba342ad2b6e6c8e596d

11 years agoPass user to File::recordUpload to avoid $wgUser
umherirrender [Mon, 18 Feb 2013 18:55:08 +0000 (19:55 +0100)]
Pass user to File::recordUpload to avoid $wgUser

Moves the giving of a user one level up, because File::recordUpload2
already needs this (and fallback to $wgUser).
Can also use the user for the watching of the file, which was using
$wgUser before.

Change-Id: I697ae0df65b07ea59ab11b62804853cdc03cb172

11 years agoChange comment:
Matthew Flaschen [Sat, 23 Feb 2013 10:42:05 +0000 (05:42 -0500)]
Change comment:

From ResourceLoaderStartupScript to ResourceLoaderStartUpModule

Change-Id: Ie5640752bed3d71d7e519385c139fe8490bd7052

11 years agoFix documentation error for $expire in WebResponse::setcookie.
Matthew Flaschen [Sat, 23 Feb 2013 06:25:19 +0000 (01:25 -0500)]
Fix documentation error for $expire in WebResponse::setcookie.

Change-Id: I657ba9b722706d3c71a6fffa3f4b94d35d8de7c5

11 years agoMerge "Initial JSDuck implementation"
jenkins-bot [Sat, 23 Feb 2013 02:35:09 +0000 (02:35 +0000)]
Merge "Initial JSDuck implementation"

11 years agoInitial JSDuck implementation
Timo Tijhof [Sun, 13 Jan 2013 00:47:00 +0000 (01:47 +0100)]
Initial JSDuck implementation

* Adding configuration files for jsduck.
* Fixing our previously undocumented code documentation to comply
  with jsduck specifications
  .. for the following modules:
  - mediawiki
  - mediawiki.Title
  - mediawiki.util
  - mediawiki.notification
  - mediawiki.api (and plugins thereof)
  - jquery.localize

I've choose these to show as many different examples for
different types of modules and methods that we encounter
in our code base.

Hopefully with this as a start it will be easy for other people
to extend the documentation for most (if not, all) other modules
we have in MediaWiki core.

Change-Id: Ieb8c5d2d2cb4672f1d6abc3f865c6fb1470d8feb

11 years agoMerge "phpcs: Naming of GlobalFunctions tests classes."
jenkins-bot [Fri, 22 Feb 2013 21:46:32 +0000 (21:46 +0000)]
Merge "phpcs: Naming of GlobalFunctions tests classes."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 22 Feb 2013 19:52:31 +0000 (19:52 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I936368bae0a6ab95ec4cc62d4a993efe24fcd084

11 years agoMerge "(bug 44988) unbreak $.suggestions up/down arrow navigation [regression]"
jenkins-bot [Fri, 22 Feb 2013 19:39:28 +0000 (19:39 +0000)]
Merge "(bug 44988) unbreak $.suggestions up/down arrow navigation [regression]"

11 years agoMerge "[FileRepo] Changed LocalFile locking to avoid breaking transactions."
jenkins-bot [Fri, 22 Feb 2013 15:42:02 +0000 (15:42 +0000)]
Merge "[FileRepo] Changed LocalFile locking to avoid breaking transactions."

11 years agoMerge "Allow adding arbitrary properties to OutputPage"
Demon [Fri, 22 Feb 2013 15:41:43 +0000 (15:41 +0000)]
Merge "Allow adding arbitrary properties to OutputPage"

11 years agoMerge "properly stop output buffering"
jenkins-bot [Fri, 22 Feb 2013 15:36:12 +0000 (15:36 +0000)]
Merge "properly stop output buffering"

11 years ago(bug 20281) test the parsing of inline URLs.
Antoine Musso [Thu, 14 Feb 2013 21:13:35 +0000 (22:13 +0100)]
(bug 20281) test the parsing of inline URLs.

It turns out we did not have a parser test to check we properly parse
inline URL such as:

 http://en.wikipedia.org/wiki/Main_Page

That should create a basic anchor pointing to the URL and containing the
full URL.

Change-Id: I1d1240b21e7b1b7c79d0ba224c8de2767bf9a2c1
X-EasterEgg: yes

11 years agoMerge "Give a 200 response for valid user pages"
jenkins-bot [Fri, 22 Feb 2013 00:55:32 +0000 (00:55 +0000)]
Merge "Give a 200 response for valid user pages"

11 years agoGive a 200 response for valid user pages
Ryan Lane [Thu, 21 Feb 2013 22:45:57 +0000 (14:45 -0800)]
Give a 200 response for valid user pages

Rather than sending a 404 on empty user pages, send a 200 response.
It's ideal to use the user's page as an OpenID identity url, but
OpenID expects 200 responses on identity urls. If we send 404s on
empty user pages it's necessary for all users to have content on
their pages to use Wikimedia as a provider. This change eliminates
that requirement.

Fixes: bug 45241
Change-Id: I527aa9d9c19c5cef7bebde78ef22f426bcbb3cd6

11 years agoMerge "Add tests for wfParseUrl()"
jenkins-bot [Fri, 22 Feb 2013 00:21:54 +0000 (00:21 +0000)]
Merge "Add tests for wfParseUrl()"

11 years agoAdd tests for wfParseUrl()
Alexandre Emsenhuber [Thu, 21 Feb 2013 10:03:53 +0000 (11:03 +0100)]
Add tests for wfParseUrl()

Follows-up Ife07d6e2 (a7c103a).

Change-Id: Ie32cf604959829904fb8661347edbbd94091d84b

11 years agophpcs: Naming of GlobalFunctions tests classes.
Timo Tijhof [Thu, 21 Feb 2013 23:58:19 +0000 (00:58 +0100)]
phpcs: Naming of GlobalFunctions tests classes.

Code convensions:
 Class names should be UpperCamelCase.

And for PHPUnit:
 Class name should end in 'Test'.
 Class name should match file name.

Also made headers and spacing a bit more consistent.

Change-Id: Id7b6cec7e552240de44386b4759b57c2d37a39d1

11 years agoMerge "Made sql.php except a "cluster" option and cleaned up the arguments."
jenkins-bot [Thu, 21 Feb 2013 21:51:06 +0000 (21:51 +0000)]
Merge "Made sql.php except a "cluster" option and cleaned up the arguments."

11 years agoMade sql.php except a "cluster" option and cleaned up the arguments.
Aaron Schulz [Thu, 21 Feb 2013 20:48:35 +0000 (12:48 -0800)]
Made sql.php except a "cluster" option and cleaned up the arguments.

* This lets people choose to run the script on some external cluster
  instead of only the primary cluster for a given wiki ID.

Change-Id: I6e8c10bc772d4a26c38f2ed8ae5787c8d130bd4c

11 years agoVarious job queue documentation tweaks.
Aaron Schulz [Thu, 21 Feb 2013 19:45:51 +0000 (11:45 -0800)]
Various job queue documentation tweaks.

Change-Id: I2fcd2470f4e9e29d44cccc9e4d82d0380fe48434

11 years agoChanged blob table to use InnoDB.
Aaron Schulz [Thu, 21 Feb 2013 20:21:33 +0000 (12:21 -0800)]
Changed blob table to use InnoDB.

Change-Id: Ied2f1bf7577e6afe1d09222ada6be54cedeec574

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 21 Feb 2013 20:05:04 +0000 (20:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic7add4176c7a91730c80ef24ebf64d54bdfcf771

11 years agoCleanups for runJobs.php.
Aaron Schulz [Wed, 20 Feb 2013 18:49:10 +0000 (10:49 -0800)]
Cleanups for runJobs.php.

* Handle exceptions in run() better.
* Made the profiling more accurate.
* Simplified the code to handle non-boolean results of run().
  wfWarn() was removed, and bugs reports were already filed.

Change-Id: Ic702319420efbdf12c17d51494255a64a6212d99

11 years agoMerge "PHPUnit/Framework.php was removed in 2010"
jenkins-bot [Thu, 21 Feb 2013 18:57:16 +0000 (18:57 +0000)]
Merge "PHPUnit/Framework.php was removed in 2010"

11 years agoSmall tweaks to $wgLockManagers documentation.
Aaron Schulz [Wed, 20 Feb 2013 22:00:15 +0000 (14:00 -0800)]
Small tweaks to $wgLockManagers documentation.

Change-Id: Ib9678e303a1360ccb1e9005ac919ed75e4e45705

11 years agoMerge "Extend Russian grammar support"
Santhosh [Thu, 21 Feb 2013 06:18:23 +0000 (06:18 +0000)]
Merge "Extend Russian grammar support"

11 years ago[JobQueue] Made the maximum number of job attempts configurable.
Aaron Schulz [Wed, 20 Feb 2013 01:05:28 +0000 (17:05 -0800)]
[JobQueue] Made the maximum number of job attempts configurable.

Change-Id: I3aaab748913af68f4a676855c5c4f825706f7be7

11 years ago[JobQueue] Cleanups for JobQueueRedis.
Aaron Schulz [Fri, 8 Feb 2013 18:52:54 +0000 (10:52 -0800)]
[JobQueue] Cleanups for JobQueueRedis.

* Cleaned up 'server' option to not fragment the pool.
  Also made it actually match the documentation.
* Made it use doGetPeriodicTasks() for job recycling.
* Made it so that other job queue classes can be tested.
* Renamed "redisConf" => "redisConfig".
* Tweaked comments about the "random" order option.

Change-Id: I7823d90010e6bc9d581435c3be92830c5ba68480

11 years ago[JobQueue] Use target wiki configuration for some key functions.
Aaron Schulz [Mon, 4 Feb 2013 00:28:52 +0000 (16:28 -0800)]
[JobQueue] Use target wiki configuration for some key functions.

* getQueueTypes() now gets the config of the target wiki.
  Previously, for WMF, if an extension using jobs was not
  on aawiki, those job queues would not be seen by nextJobDB.
* Also fixed nextJobDB.php so that it no longer only considers
  jobs types known to aawiki for picking a DB for default jobs.
* Note that $wgJobTypesExcludedFromDefaultQueue should be global.
* This adds a SiteConfiguration::getConfig() function, which calls
  a new getConfiguration.php script.

Change-Id: I7e6904ead17efa407291f423a2b18e3c866d55fd

11 years agoMerge "[JobQueue] Added aggregate empty/non-empty queue caching."
Tim Starling [Thu, 21 Feb 2013 05:32:45 +0000 (05:32 +0000)]
Merge "[JobQueue] Added aggregate empty/non-empty queue caching."

11 years agoMerge "Tests: Add missing expect numbers in QUnit tests."
jenkins-bot [Thu, 21 Feb 2013 05:24:47 +0000 (05:24 +0000)]
Merge "Tests: Add missing expect numbers in QUnit tests."

11 years ago[JobQueue] Added aggregate empty/non-empty queue caching.
Aaron Schulz [Tue, 5 Feb 2013 20:00:24 +0000 (12:00 -0800)]
[JobQueue] Added aggregate empty/non-empty queue caching.

* The default class is JobQueueAggregatorMemc.
  This essentially has the logic that nextJobDB.php used.
* Also created a JobQueueAggregatorRedis class.
  This is much more efficient and more responsive.
* This can speed up calls to getQueuesWithJobs().
* Removed unused getDefaultQueuesWithJobs() function.

Change-Id: Ifb3c6c881decd643da1b662956ded69db4b39431

11 years agoMerge "Fix how QUnit.newMwEnvironment merges live and custom settings"
jenkins-bot [Thu, 21 Feb 2013 00:59:30 +0000 (00:59 +0000)]
Merge "Fix how QUnit.newMwEnvironment merges live and custom settings"

11 years agoFix how QUnit.newMwEnvironment merges live and custom settings
Daniel Werner [Mon, 18 Feb 2013 17:51:09 +0000 (18:51 +0100)]
Fix how QUnit.newMwEnvironment merges live and custom settings

We shouldn't merge a live state's setting value with a custom
value anymore as it has been done since I7d20f0b2f4. Doing this
can produce very unpredictable outcome of tests depending on the
server's state and will prevent from being able to properly
define a test's conditions.

Change-Id: I7ad058a45708244918211658b5d4e07f69abba31

11 years agoMerge "Move around/add PHP_SAPI check, making find-entries happier."
jenkins-bot [Wed, 20 Feb 2013 23:56:56 +0000 (23:56 +0000)]
Merge "Move around/add PHP_SAPI check, making find-entries happier."

11 years agoMove around/add PHP_SAPI check, making find-entries happier.
Platonides [Wed, 20 Feb 2013 23:50:27 +0000 (00:50 +0100)]
Move around/add PHP_SAPI check, making find-entries happier.

Change-Id: Ic166066a543c4a5c0958351fdfe5f984e8d443d7

11 years agoMerge "Fixed documentation typo."
jenkins-bot [Wed, 20 Feb 2013 23:35:04 +0000 (23:35 +0000)]
Merge "Fixed documentation typo."

11 years agoPHPUnit/Framework.php was removed in 2010
Platonides [Wed, 20 Feb 2013 22:35:19 +0000 (23:35 +0100)]
PHPUnit/Framework.php was removed in 2010

Removed in 9e3aec (phpunit 3.5.1):
 https://github.com/sebastianbergmann/phpunit/commit/9e3aec43cf6a0a81fab7cd98003d35b427f861b6

Deprecated since fb48a69 (phpunit 3.4.8):
 https://github.com/sebastianbergmann/phpunit/commit/fb48a69ea606a4740ba1f0e4ddcfe60fcd2a8301

Its usage was replaced with the autoloader.

Change-Id: Ib76ed6e9ec83e9e33c76ef423bb0caa0c37067e8

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 20 Feb 2013 21:57:29 +0000 (21:57 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoFixed documentation typo.
Aaron Schulz [Wed, 20 Feb 2013 21:30:58 +0000 (13:30 -0800)]
Fixed documentation typo.

Change-Id: I02c3944efc63508c7aa798b3079167b85c760454

11 years agoValidate the user name used by DoubleRedirectJob
Alexandre Emsenhuber [Sat, 9 Feb 2013 19:22:52 +0000 (20:22 +0100)]
Validate the user name used by DoubleRedirectJob

So that invalid user names (IP address, invalid characters, etc.)
are still rejected.

This also makes the usage of User::newFromName() consistent with
the ones used by other scripts that uses their own user name.

Change-Id: I0dd28e53dc30433691b88d80b6655e3171d0cdfd

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 20 Feb 2013 20:24:15 +0000 (20:24 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ifd4b4da2b2c1b4d30a40b329992a6c58b619a7b5

11 years agoMerge "(bug 42600) (bug 24375) Fix doMaintenance.php exit procedures."
jenkins-bot [Wed, 20 Feb 2013 19:36:45 +0000 (19:36 +0000)]
Merge "(bug 42600) (bug 24375) Fix doMaintenance.php exit procedures."

11 years ago[FileRepo] Changed LocalFile locking to avoid breaking transactions.
Aaron Schulz [Wed, 20 Feb 2013 19:28:27 +0000 (11:28 -0800)]
[FileRepo] Changed LocalFile locking to avoid breaking transactions.

* Only BEGIN on lock() if no trx was in progress.
  Likewise, only COMMIT in unlock() if the lock() call started a trx.
* This can avoid problems with commiting page update transactions
  prematurely, which could leave broken page stub rows. (bug 40178)

Change-Id: I9a0adb25ee107df9a6bf70c6103ddfb7f034be25

11 years ago(bug 42600) (bug 24375) Fix doMaintenance.php exit procedures.
Tyler Anthony Romeo [Mon, 11 Feb 2013 03:21:30 +0000 (22:21 -0500)]
(bug 42600) (bug 24375) Fix doMaintenance.php exit procedures.

Fixed the post-execution calls in doMaintenance.php
to perform proper cleanup after the maintenance
script runs (modeled after MediaWiki::restInPeace).

Added a global call to wfWaitForSlaves() and then
wfDoUpdates() in doMaintenance.php to ensure that
deferred updates are always performed at the end
of maintenance scripts (and that they're performed
after the slaves catch up to avoid lag).

Also added calls to shutdown the DB factory so
that implicit transactions are committed and the
connections are closed.

Change-Id: I6f9580559d75f4761c5ddb504b2e3380e2e562a3

11 years agoTests: Add missing expect numbers in QUnit tests.
Timo Tijhof [Wed, 20 Feb 2013 19:25:15 +0000 (20:25 +0100)]
Tests: Add missing expect numbers in QUnit tests.

Various tests were failing due to missing or incorrect numbers.

Follows-up Iedb304f8

Change-Id: I665b8c4c1501ea058ecdc8e846f8b4efa4eded29

11 years agoLimit ApiQueryImageInfo transform calls
Brad Jorsch [Fri, 1 Feb 2013 23:14:09 +0000 (18:14 -0500)]
Limit ApiQueryImageInfo transform calls

Apparently calls to File::transform can be slow. Add code to limit these
calls in prop=imageinfo.

The only effect for clients will be a possibility of seeing iicontinue
more often.

Once this is merged, TimedMediaHandler's ApiQueryVideoInfo.php should be
updated in the same way.

Change-Id: Id0ec6a0afb85ca73eefb5b8370c2147c37f037e9

11 years agoMerge "Use $this->checkReadOnly() for read only database check in Special:Invalidatee...
jenkins-bot [Wed, 20 Feb 2013 18:21:59 +0000 (18:21 +0000)]
Merge "Use $this->checkReadOnly() for read only database check in Special:Invalidateemail"

11 years agoMerge "fix a typo in generateCollationData.php"
jenkins-bot [Wed, 20 Feb 2013 17:00:07 +0000 (17:00 +0000)]
Merge "fix a typo in generateCollationData.php"

11 years agoShow HEADs for Git 1.7.8+ submodules
Kevin Israel [Sun, 3 Feb 2013 00:11:28 +0000 (19:11 -0500)]
Show HEADs for Git 1.7.8+ submodules

I implemented "the gitfile mechanism" in the GitInfo class so it
can access gitdirs for submodules again.

Bug: 44599
Change-Id: Ieb79c0b401a6bb0f5ca8bff98bb382a8c6ffbb01

11 years agoMerge "(bug 45012) Do not show a "badretype" error when creating an account by e...
Parent5446 [Wed, 20 Feb 2013 16:10:55 +0000 (16:10 +0000)]
Merge "(bug 45012) Do not show a "badretype" error when creating an account by e-mail."

11 years ago(bug 45012) Do not show a "badretype" error when creating an account by e-mail.
Alexandre Emsenhuber [Mon, 18 Feb 2013 07:13:38 +0000 (08:13 +0100)]
(bug 45012) Do not show a "badretype" error when creating an account by e-mail.

Change-Id: Idd1ffaef60dc2ab2498a3dabe2902051aea990d2

11 years agoMerge "style: indent tweaks to Title.php"
jenkins-bot [Wed, 20 Feb 2013 15:59:50 +0000 (15:59 +0000)]
Merge "style: indent tweaks to Title.php"

11 years agoMerge "Using "Page" for type hinting is really useless"
jenkins-bot [Wed, 20 Feb 2013 15:54:35 +0000 (15:54 +0000)]
Merge "Using "Page" for type hinting is really useless"

11 years agoMerge "(bug 35993) API gettoken parameter is deprecated (release notes complement)"
jenkins-bot [Wed, 20 Feb 2013 15:52:34 +0000 (15:52 +0000)]
Merge "(bug 35993) API gettoken parameter is deprecated (release notes complement)"

11 years agostyle: indent tweaks to Title.php
Antoine Musso [Tue, 19 Feb 2013 21:51:31 +0000 (22:51 +0100)]
style: indent tweaks to Title.php

Title.php had some indentation oddities with mixed tabs and spaces. This
patch tweak the whitespaces and sometime explode boolean logics to have
a more consistent style.

Change-Id: I891c112236a021d9b4e38eb57eeb3b232172139c

11 years agoMerge "(bug 45069) wfParseUrl() no longer produces a PHP notice if passed a "mailto...
jenkins-bot [Wed, 20 Feb 2013 15:42:16 +0000 (15:42 +0000)]
Merge "(bug 45069) wfParseUrl() no longer produces a PHP notice if passed a "mailto:" URL without address"

11 years agoMerge "Fix documentation in Linker::formatTemplates."
jenkins-bot [Wed, 20 Feb 2013 15:39:55 +0000 (15:39 +0000)]
Merge "Fix documentation in Linker::formatTemplates."

11 years agoUsing "Page" for type hinting is really useless
Reedy [Mon, 21 Jan 2013 20:27:17 +0000 (20:27 +0000)]
Using "Page" for type hinting is really useless

Change-Id: I60b0787a17bca6d16c499f6e60f2163728a8f30a

11 years agoMerge "Mention that User::setInternalPassword() accepts null as password string"
jenkins-bot [Wed, 20 Feb 2013 15:37:47 +0000 (15:37 +0000)]
Merge "Mention that User::setInternalPassword() accepts null as password string"

11 years agoMerge "Add line breaks to the output of action=info"
jenkins-bot [Wed, 20 Feb 2013 15:31:50 +0000 (15:31 +0000)]
Merge "Add line breaks to the output of action=info"

11 years agoMerge "Add line breaks to the output of Special:Watchlist"
jenkins-bot [Wed, 20 Feb 2013 15:30:06 +0000 (15:30 +0000)]
Merge "Add line breaks to the output of Special:Watchlist"

11 years agoMerge "Fix API output formatting (change lines delimited with * as bold)"
jenkins-bot [Wed, 20 Feb 2013 14:55:45 +0000 (14:55 +0000)]
Merge "Fix API output formatting (change lines delimited with * as bold)"

11 years agoFix API output formatting (change lines delimited with * as bold)
Waldir Pimenta [Wed, 16 Jan 2013 19:31:37 +0000 (19:31 +0000)]
Fix API output formatting (change lines delimited with * as bold)

Problem: on API documentation pages, lines delimited with asterisks
are automatically converted to bold. However, some lines aren't,
such as the one with the url in the main header of the root API page:
https://en.wikipedia.org/w/api.php

Not only this is breaks the standard formatting for module headers, etc,
but if the font used by the browser for monospaced text
doesn't preserve character width between bold and regular weight
(which it should), any layout structures will break.
Example: http://i.imgur.com/PVh6i.png

The regex that applies bold to the lines starting and ending in *
doesn't accept < and > inside the string,
but these are added by the url-formatting regex.
Simply changing the order of these operations fixes the issue.

Note: this change also removes the regex applying italics
      to lines in the $ ... $ form, as suggested by Anomie and Yurik
      in code review comments.

Change-Id: I7173f812bebb8a722fefdaa6cce9fcd554c82c84

11 years ago(bug 43251) API prop=pageprops ppprop should accept multiple values
Brad Jorsch [Mon, 31 Dec 2012 19:15:50 +0000 (14:15 -0500)]
(bug 43251) API prop=pageprops ppprop should accept multiple values

There is no reason for this parameter not to accept multiple values, the
query is structurally exactly the same as for something like
prop=categories&clcategories=....

Unless, of course, we need to support page props with "|" in the name.

Change-Id: I38cd83e213ede8e626d55c079c5c1b6f7e727336

11 years agoMerge "Add getters to Message object."
jenkins-bot [Wed, 20 Feb 2013 13:41:23 +0000 (13:41 +0000)]
Merge "Add getters to Message object."

11 years agoAdd line breaks to the output of Special:Watchlist
Alexandre Emsenhuber [Wed, 20 Feb 2013 10:33:33 +0000 (11:33 +0100)]
Add line breaks to the output of Special:Watchlist

This makes the source code of the page much more readable.

Change-Id: Ia9e0e382a362d95678cf37844651ff0c28115e5e

11 years agoSome minor coding practice fixes;
Abhishek Das [Wed, 20 Feb 2013 10:20:28 +0000 (15:50 +0530)]
Some minor coding practice fixes;

There were a few lines in `SpecialVersion.php` that caused the build to
be marked as failure. Fixing those:
1. Line 594 - String concat not required, so using single string instead

Change-Id: I799d11aaaf953d09f681585ee23dc5bf496af3d4

11 years agostyle
Antoine Musso [Tue, 19 Feb 2013 21:00:09 +0000 (22:00 +0100)]
style

tests/phpunit/includes/StringUtilsTest.php:42:3
 - avoid function calls in a FOR loop test part

tests/phpunit/includes/PathRouterTest.php:155 to 165
 - fix space/tabs indenting
 - convert double quotes to single for consistency

tests/phpunit/data/xmp/7.result.php
 - reindent to use tabs instead of spaces
 - removed trailing whitespaces

tests/phpunit/includes/filebackend/FileBackendTest.php
 - spaces in indentation

Change-Id: I9c15803f961fc88b798ada3dd6c2b292c1de2143

11 years ago[JobQueue] Allow certain job types to always opt out of retries.
Aaron Schulz [Wed, 20 Feb 2013 00:56:47 +0000 (16:56 -0800)]
[JobQueue] Allow certain job types to always opt out of retries.

Change-Id: I4cdd43b0b248700e199947e99d2df32b91e23ef7

11 years agoPass all non-default values as hidden field in namespace form on Special:Watchlist
Alexandre Emsenhuber [Mon, 18 Feb 2013 09:45:49 +0000 (10:45 +0100)]
Pass all non-default values as hidden field in namespace form on Special:Watchlist

Except 'namespace', 'invert' and 'associated' which are displayed in the form.
This allows to forward all parameters that were modified using query string, e.g.
the new 'extended' parameter added in I115544005a621ee01a0ed0970a13099af92f42e7
that would be lost otherwise when using the form.

Change-Id: Idb0d3b1d6b4827d35ac9b09eb4d8a5ae630a0e3a

11 years agoMerge "Remove useless $prefs array from Special:Watchlist"
jenkins-bot [Tue, 19 Feb 2013 23:14:33 +0000 (23:14 +0000)]
Merge "Remove useless $prefs array from Special:Watchlist"

11 years agoMerge "Upstream: Update QUnit from v1.10.0 to v1.11.0"
jenkins-bot [Tue, 19 Feb 2013 22:00:31 +0000 (22:00 +0000)]
Merge "Upstream: Update QUnit from v1.10.0 to v1.11.0"

11 years agoMerge "Allow API results to wrap long lines"
jenkins-bot [Tue, 19 Feb 2013 21:42:25 +0000 (21:42 +0000)]
Merge "Allow API results to wrap long lines"

11 years agoset wgLanguageCode in NewParserTests for all tests
umherirrender [Mon, 18 Feb 2013 17:58:35 +0000 (18:58 +0100)]
set wgLanguageCode in NewParserTests for all tests

Change one method default and use a constant

Change-Id: Id8d6817c616c289834c6af9ecbc183dbc76fbded

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 19 Feb 2013 20:09:22 +0000 (20:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib3b94365f377f939290541539cb20010c837ec6b

11 years agoAdd getters to Message object.
daniel [Tue, 19 Feb 2013 19:28:57 +0000 (20:28 +0100)]
Add getters to Message object.

Being able to get the message key and parameters from a Message object
is needed to be able to report errors from the API in an abstract,
language neutral way.

Change-Id: I8ee9da4005db7cb0a487457127f1e24fb11dbd66

11 years ago(bug 44988) unbreak $.suggestions up/down arrow navigation [regression]
MatmaRex [Tue, 19 Feb 2013 19:21:37 +0000 (20:21 +0100)]
(bug 44988) unbreak $.suggestions up/down arrow navigation [regression]

It was borked in I87940ca8 due to a superfluous dot.

Change-Id: If7bfb25a4c9e9f01a8acdaeabfe18c346dfea03d

11 years agoMerge "Always cast input to string in wfBaseConvert"
jenkins-bot [Tue, 19 Feb 2013 17:21:36 +0000 (17:21 +0000)]
Merge "Always cast input to string in wfBaseConvert"

11 years agoMerge "phpcs: Normalize methods declarations to "[final abstract] [visibility]"."
jenkins-bot [Tue, 19 Feb 2013 17:16:16 +0000 (17:16 +0000)]
Merge "phpcs: Normalize methods declarations to "[final abstract] [visibility]"."

11 years agophpcs: Normalize methods declarations to "[final abstract] [visibility]".
Antoine Musso [Tue, 12 Feb 2013 21:32:09 +0000 (22:32 +0100)]
phpcs: Normalize methods declarations to "[final abstract] [visibility]".

CodeSniffer sniff is:
  [abstract final] [<visibility>] [static] function
As declared by:
  PSR2.Methods.MethodDeclaration.StaticBeforeVisibility
in:
  https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/MediaWiki/ruleset.xml

Change-Id: Ifabd289e8668019ed752bdd711b3b43a9c346336

11 years agoMove <warnings> and <query-continue> to result's top and optimize
Yuri Astrakhan [Tue, 19 Feb 2013 16:40:07 +0000 (11:40 -0500)]
Move <warnings> and <query-continue> to result's top and optimize

* Both the warnings and query-continue elements will now be shown
at the top of the result, making it easier for debugging and learning.
* Added int $flags parameter instead of bool $overwrite for addValue()
and setElement(). Supported flags are OVERRIDE - overrides existing value,
same meaning as true (which will continue to work), and ADD_ON_TOP which
ensures that if the value being added does not exist, it will be placed
as the first element in the parent array.
* Optimized ApiBase::setWarning to no longer use regex (faster)
* Optimized ApiResult::addValue() for a bit more efficiency
* Added ApiResult::addAsFirstElement() that inserts a named value into
the array at the top

Change-Id: I0fa2697e1eaa4947d01527bb3ad555e1051f6be4

11 years agoMerge "API Remove $wgAPIGeneratorModules - it's dynamic now"
jenkins-bot [Tue, 19 Feb 2013 16:44:02 +0000 (16:44 +0000)]
Merge "API Remove $wgAPIGeneratorModules - it's dynamic now"

11 years agoAPI Remove $wgAPIGeneratorModules - it's dynamic now
Yuri Astrakhan [Fri, 8 Feb 2013 23:43:25 +0000 (18:43 -0500)]
API Remove $wgAPIGeneratorModules - it's dynamic now

* $wgAPIGeneratorModules is now obsolete and will be ignored
* Removed generator tests - obsolete because there is no more list

Change-Id: I014260a42226854a2178345dc3cd0f50b41b3c08