lhc/web/wiklou.git
10 years agoMake list=logevents display log entries by anonymous users
Alex Monk [Sat, 29 Jun 2013 19:18:38 +0000 (20:18 +0100)]
Make list=logevents display log entries by anonymous users

Also fix warnings being shown and "anon" property being given to non-anon entries
when "userid" leprop was used but no "user".

Bug: 50315
Change-Id: I4df1c8c1040fb39d75ead5851d42b02d9de87a5a

10 years agoMerge "docs: Fix member index for mw.html"
jenkins-bot [Sat, 29 Jun 2013 14:22:18 +0000 (14:22 +0000)]
Merge "docs: Fix member index for mw.html"

10 years agoMerge "Fix return types in documentation"
jenkins-bot [Sat, 29 Jun 2013 01:21:35 +0000 (01:21 +0000)]
Merge "Fix return types in documentation"

10 years agoFix return types in documentation
jeroendedauw [Fri, 28 Jun 2013 21:48:31 +0000 (23:48 +0200)]
Fix return types in documentation

Change-Id: I726e6201a737ab406dd0e46754d2bbbd95e769b4

10 years agoMerge "New function Language::getParentLanguage()."
jenkins-bot [Fri, 28 Jun 2013 15:15:04 +0000 (15:15 +0000)]
Merge "New function Language::getParentLanguage()."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 28 Jun 2013 13:22:00 +0000 (13:22 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I90f14b88ea9fd4cf27e0c77817f15aa1d735a773

10 years agoMerge "API: Add prop=sha1 to list=recentchanges"
jenkins-bot [Fri, 28 Jun 2013 00:12:03 +0000 (00:12 +0000)]
Merge "API: Add prop=sha1 to list=recentchanges"

10 years agoSync up with Parsoid tests
Gabriel Wicke [Thu, 27 Jun 2013 21:46:20 +0000 (14:46 -0700)]
Sync up with Parsoid tests

Change-Id: Id1d80a581564d0365c04953da4f41b086a2bc0d8

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 27 Jun 2013 19:58:39 +0000 (19:58 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 27 Jun 2013 19:35:40 +0000 (19:35 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I943e34620f78a0af8ee078c918b14e3521957a12

10 years agoPreserve returnto when upload requires logging in
Matthew Flaschen [Fri, 21 Jun 2013 02:13:18 +0000 (22:13 -0400)]
Preserve returnto when upload requires logging in

Changes link text to loginreqlink message since
OutputPage->showPermissionsErrorPage passes that in.

Change-Id: Iebde4398cdb74eb2fcc441601f074c93a7ad6073

10 years agoMerge "Allow uca-sv@collation=standard to be a collation name."
jenkins-bot [Thu, 27 Jun 2013 18:48:21 +0000 (18:48 +0000)]
Merge "Allow uca-sv@collation=standard to be a collation name."

10 years agoAllow uca-sv@collation=standard to be a collation name.
Brian Wolff [Sat, 23 Mar 2013 23:17:29 +0000 (20:17 -0300)]
Allow uca-sv@collation=standard to be a collation name.

The "standard" collation for Swedish sorts V and W
only as secondary differences. Compare this to
the "reformed" collation which sorts them
as separate letters. Which collation is default
for sv seems to vary on icu version, but for icu 4.8
(which wmf uses) reformed is default. svwikisource
wants to use the "standard" collation.

Change-Id: I051590cf687ddea2e2cd84203d6e8eed3a6efd99

10 years agoMerge "Add fa to collation list."
jenkins-bot [Thu, 27 Jun 2013 18:27:58 +0000 (18:27 +0000)]
Merge "Add fa to collation list."

10 years agoMerge "Further improve load order of RC and watchlist styling"
jenkins-bot [Thu, 27 Jun 2013 09:49:08 +0000 (09:49 +0000)]
Merge "Further improve load order of RC and watchlist styling"

10 years agoFurther improve load order of RC and watchlist styling
Derk-Jan Hartman [Thu, 13 Jun 2013 23:47:43 +0000 (01:47 +0200)]
Further improve load order of RC and watchlist styling

This mainly addresses a regression in
I639a5ccbc3b7b2794e7b12ecb64e5ee6b10a640a, causing the bolding of
unread titles to be applied trough JS loading of the CSS.

Bug: 49610
Change-Id: I5cc20a342ebb566262e3aa1e9fe2cdf866a662c3

10 years agodocs: Fix member index for mw.html
Timo Tijhof [Thu, 27 Jun 2013 00:17:44 +0000 (17:17 -0700)]
docs: Fix member index for mw.html

Method mw.html#element was indexed as being a member of
class mw.html.Cdata due to the lack of an explicit @member
tag, so it defaulted to linear association to the previous
@class block.

Quick fix can be done inline with @member but might as well
do it propert and separate the linear sequences.

Change-Id: I22580a6257a681a30e1ecd7c1283b57d7cb730f2

10 years agodatabase: Improve DatabaseMysql::masterPosWait() performance by caching the position
Aaron Schulz [Thu, 23 May 2013 00:23:21 +0000 (17:23 -0700)]
database: Improve DatabaseMysql::masterPosWait() performance by caching the position

* This is useful for things like loads of refreshLinks jobs that call wfGetLB()->waitFor().

Change-Id: I05a564a3b73999517fec2476ed946e092c16c3d4

10 years agoMerge "Add user rights 'viewmywatchlist', 'editmywatchlist'"
jenkins-bot [Wed, 26 Jun 2013 23:19:28 +0000 (23:19 +0000)]
Merge "Add user rights 'viewmywatchlist', 'editmywatchlist'"

10 years agoMerge "Fix getPageDimensions failure handling"
jenkins-bot [Wed, 26 Jun 2013 22:57:49 +0000 (22:57 +0000)]
Merge "Fix getPageDimensions failure handling"

10 years agoMerge "benchmarks: README file having run recommendations"
Parent5446 [Wed, 26 Jun 2013 22:55:49 +0000 (22:55 +0000)]
Merge "benchmarks: README file having run recommendations"

10 years agoMerge "Change autocomment-prefix to be blank. Looks weird being '- '"
jenkins-bot [Wed, 26 Jun 2013 22:23:29 +0000 (22:23 +0000)]
Merge "Change autocomment-prefix to be blank. Looks weird being '- '"

10 years agoMerge "DifferenceEngine: Don't display empty header row"
jenkins-bot [Wed, 26 Jun 2013 22:13:06 +0000 (22:13 +0000)]
Merge "DifferenceEngine: Don't display empty header row"

10 years agoFix getPageDimensions failure handling
Brian Wolff [Tue, 16 Apr 2013 21:34:43 +0000 (18:34 -0300)]
Fix getPageDimensions failure handling

getPageDimensions returning false for failure wasn't being handled
properly, causing ugly output. The doc comment on that method was
wrong as well.

Most notably causing random whitespace output:
https://commons.wikimedia.org/wiki/?curid=22151015
(screenshot: http://i.imgur.com/c21EpVx.png).

Bug: 41281
Change-Id: I1a49474309e15808928f877dfc29ae366d028928

10 years agoMerge "Remove unnecessary clears"
jenkins-bot [Wed, 26 Jun 2013 22:01:12 +0000 (22:01 +0000)]
Merge "Remove unnecessary clears"

10 years agoMerge "Added SSL verification to PHPHttpRequest."
jenkins-bot [Wed, 26 Jun 2013 21:56:40 +0000 (21:56 +0000)]
Merge "Added SSL verification to PHPHttpRequest."

10 years agoMerge "XML text dumps: skip rev length check for weird content models"
jenkins-bot [Wed, 26 Jun 2013 21:54:28 +0000 (21:54 +0000)]
Merge "XML text dumps: skip rev length check for weird content models"

10 years agoRemove unnecessary clears
Derk-Jan Hartman [Wed, 26 Jun 2013 21:44:48 +0000 (23:44 +0200)]
Remove unnecessary clears

This is a followup to Ibb9371ee.

Bug: 33438
Change-Id: I0b39138967f2d29d5e50db0a5990d175fcc81a8e

10 years agoMerge "mwdocgen: support multiple --file values"
jenkins-bot [Wed, 26 Jun 2013 21:50:00 +0000 (21:50 +0000)]
Merge "mwdocgen: support multiple --file values"

10 years agoMerge "Removed some inappropriate global state from FSFile"
jenkins-bot [Wed, 26 Jun 2013 21:47:04 +0000 (21:47 +0000)]
Merge "Removed some inappropriate global state from FSFile"

10 years agoMerge "Include the backtrace in the log for job exceptions"
jenkins-bot [Wed, 26 Jun 2013 21:45:18 +0000 (21:45 +0000)]
Merge "Include the backtrace in the log for job exceptions"

10 years agoMerge "(bug 49840) Moving a page with subpages may lead in the page being moved twice"
Aaron Schulz [Wed, 26 Jun 2013 21:34:12 +0000 (21:34 +0000)]
Merge "(bug 49840) Moving a page with subpages may lead in the page being moved twice"

10 years agoMerge "CologneBlue: Use search input and button generators from SkinTemplate"
jenkins-bot [Wed, 26 Jun 2013 20:57:02 +0000 (20:57 +0000)]
Merge "CologneBlue: Use search input and button generators from SkinTemplate"

10 years agoMerge "Doc fixes for MediaHandler. No behaviour changes."
jenkins-bot [Wed, 26 Jun 2013 20:54:59 +0000 (20:54 +0000)]
Merge "Doc fixes for MediaHandler. No behaviour changes."

10 years agoMerge "Add broken-file-category for file links inside <gallery/>"
jenkins-bot [Wed, 26 Jun 2013 20:51:41 +0000 (20:51 +0000)]
Merge "Add broken-file-category for file links inside <gallery/>"

10 years agoCologneBlue: Use search input and button generators from SkinTemplate
Derk-Jan Hartman [Sun, 21 Apr 2013 17:27:46 +0000 (19:27 +0200)]
CologneBlue: Use search input and button generators from SkinTemplate

This also makes sure that the search inputs receive their placeholder,
which fixes bug 47475.

Bug: 47475

Change-Id: Ie1215078edb38f98ec57d2a3ec46b1d0ace0bc30

10 years ago(bug 49840) Moving a page with subpages may lead in the page being moved twice
Alexandre Emsenhuber [Wed, 26 Jun 2013 20:02:27 +0000 (22:02 +0200)]
(bug 49840) Moving a page with subpages may lead in the page being moved twice

This happens if a page is moved to a subpage of itself and the option
"move subpages" is enabled, since the freshly moved page will be found
as being one of its subpages and moved a second time as such.

Bug: 49840
Change-Id: I318aab8c3c6e7ae718a3366ab00aba6e5420529b

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 26 Jun 2013 18:57:54 +0000 (18:57 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I69f2c11c204026c01c582f5714e21cc89d8eb929

10 years agoAdd user rights 'viewmywatchlist', 'editmywatchlist'
Brad Jorsch [Thu, 13 Jun 2013 18:02:55 +0000 (14:02 -0400)]
Add user rights 'viewmywatchlist', 'editmywatchlist'

These are needed for OAuth grants.

Note that, even if 'editmywatchlist' is not granted, various actions
will still allow for adding but not removing of pages.

Change-Id: Ie33446a228dd6ed0114730935c1bf65667f5ce01

10 years agoMerge "Fix the error in html email when pear mail_mime is missing"
jenkins-bot [Wed, 26 Jun 2013 13:19:26 +0000 (13:19 +0000)]
Merge "Fix the error in html email when pear mail_mime is missing"

10 years agomwdocgen: support multiple --file values
Antoine Musso [Thu, 30 May 2013 18:41:27 +0000 (20:41 +0200)]
mwdocgen: support multiple --file values

It is sometimes useful to generate documentation for multiple files or
directories. Doxygen INPUT statement supports multiple space separated
paths. Example usage:

 php maintenance/mwdocgen.php --file docs,input

Change-Id: I66a805d80307c6502e9b440df63a37bb13093d84

10 years agobenchmarks: README file having run recommendations
Antoine Musso [Thu, 30 May 2013 07:38:48 +0000 (09:38 +0200)]
benchmarks: README file having run recommendations

In a wikitech thread about benchmarking, Tim Starling has been running
benchmarks using CPU binding and raised priority. This patch copy paste
Tim recommendations so we do not forget about them.

Change-Id: Ic6f2803c005f70a2f0400f28fafc3c8d209e0667

10 years agotest: coverage recording now needs to be explicit
Antoine Musso [Thu, 30 May 2013 16:06:26 +0000 (18:06 +0200)]
test: coverage recording now needs to be explicit

To better control what we are really covering, this patch uses PHPUnit
forceCoversAnnotation option. That makes it to record covering if and
only if @covers is used.

Also rewrapped the options to uses tabulations.

Change-Id: I467a5077a65b93cce08072a8d088b0b9c652a426

10 years agoMerge "Cologne Blue: Make sure the links don't bleed into the quickbar"
jenkins-bot [Wed, 26 Jun 2013 08:54:03 +0000 (08:54 +0000)]
Merge "Cologne Blue: Make sure the links don't bleed into the quickbar"

10 years agoMerge "database: Simplify selectSQLText() and fix USE INDEX bug"
jenkins-bot [Wed, 26 Jun 2013 04:27:35 +0000 (04:27 +0000)]
Merge "database: Simplify selectSQLText() and fix USE INDEX bug"

10 years agoMerge "Fix history and add section tabs being collapsed on RTL wikis"
jenkins-bot [Wed, 26 Jun 2013 01:07:57 +0000 (01:07 +0000)]
Merge "Fix history and add section tabs being collapsed on RTL wikis"

10 years agoFix history and add section tabs being collapsed on RTL wikis
Alex Monk [Tue, 25 Jun 2013 23:44:42 +0000 (00:44 +0100)]
Fix history and add section tabs being collapsed on RTL wikis

The module is now loaded in the 'top' queue instead of the 'bottom'
one, so the <body> tag isn't loaded when the RTL detection is done.
Use the <html> tag's 'dir' attribute instead.

Bug: 50196
Change-Id: I6e277a9503a1e6003bc7bf9f9468ed7b35552e60

10 years agoInclude the backtrace in the log for job exceptions
Aaron Schulz [Tue, 25 Jun 2013 22:33:58 +0000 (15:33 -0700)]
Include the backtrace in the log for job exceptions

Change-Id: Iff478f452142f1ccc9af70b4a64cfb66d04014f3

10 years agoStop spamming exception log with random upload stash failures
Aaron Schulz [Wed, 19 Jun 2013 20:52:33 +0000 (13:52 -0700)]
Stop spamming exception log with random upload stash failures

* Things like authorization and validation problems do not belong in the
  exception log.

Change-Id: I3c4c1bab65cfe9111dc2161bda6d023234112900

10 years agoAvoid the "key conflict attempting to insert a user row" exception in some cases
Aaron Schulz [Wed, 19 Jun 2013 21:13:19 +0000 (14:13 -0700)]
Avoid the "key conflict attempting to insert a user row" exception in some cases

bug: 41609
Change-Id: Iebfcf50e648a43f2970e6d0e4073cb6d84d260df

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 25 Jun 2013 20:01:33 +0000 (20:01 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 25 Jun 2013 19:42:40 +0000 (19:42 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic90e20578bf9dfb77d2e0ebe648270b41c83f40a

10 years agoAllow explicit & implicit null returns from hook handlers
Ori Livneh [Mon, 24 Jun 2013 21:42:20 +0000 (14:42 -0700)]
Allow explicit & implicit null returns from hook handlers

Most hook handlers are written with the intent of complementing or augmenting
core functionality rather than vetoing it, making it quite natural for a
developer to forget that the caller is waiting for permission to proceed. The
potential for confusion is magnified by the fact that DOM event handlers and
jQuery event handlers are not required to return an explicit value for the
handled event to continue propagating.

This change tolerates null return values (both implicit and explicit -- that
is, both 'return null' and no return statement at all) from hook handlers. To
abort processing, a hook function must return an explicit false or an error
string.

This change should not break any existing hook functions, as returning null is
currently an error.

Bug: 50134
Change-Id: I11deb2117ff9233c77868470f50e0d8f74053545

10 years agoMerge "(bug 50078) Allow a string other than '*' as condition for DatabaseBase::delete()"
jenkins-bot [Tue, 25 Jun 2013 17:18:10 +0000 (17:18 +0000)]
Merge "(bug 50078) Allow a string other than '*' as condition for DatabaseBase::delete()"

10 years agoMerge "(bug 50025) rebuildall.php script needs database admin rights"
jenkins-bot [Tue, 25 Jun 2013 16:03:50 +0000 (16:03 +0000)]
Merge "(bug 50025) rebuildall.php script needs database admin rights"

10 years agoAPI: Add prop=sha1 to list=recentchanges
Brad Jorsch [Tue, 25 Jun 2013 15:40:46 +0000 (11:40 -0400)]
API: Add prop=sha1 to list=recentchanges

People have asked for this in connection with patrolling recentchanges
for vandalism and such.

Bug: 48359
Change-Id: I5cab770c2dd740d586dd75d8795cbf4e3c1d05b7

10 years ago(bug 50078) Allow a string other than '*' as condition for DatabaseBase::delete()
Alexandre Emsenhuber [Tue, 25 Jun 2013 14:15:45 +0000 (16:15 +0200)]
(bug 50078) Allow a string other than '*' as condition for DatabaseBase::delete()

Currently, either '*' is given as condition meaning "everything" or an array must
be passed since DatabaseBase::makeList() requires an array. Now the parameter is
consistent with one of other similar methods, since a string will be handled
correctly.

Bug: 50078
Change-Id: Id5a8220d21245669f1091a3b5ed1def65b22d375

10 years agoMove Search page from redirects to pages
Siebrand Mazeland [Tue, 12 Mar 2013 20:25:39 +0000 (21:25 +0100)]
Move Search page from redirects to pages

Having it in "Redirecting special pages" seems wrong to me. It's better to
have it in the company of "Lists of pages" like Special:PrefixIndex,
Special:AllPages and friends.

Change-Id: I8c59275e64dce158cd7a5b027c7efbbdb941e4c4

10 years ago(bug 50025) rebuildall.php script needs database admin rights
Alexandre Emsenhuber [Tue, 25 Jun 2013 06:14:20 +0000 (08:14 +0200)]
(bug 50025) rebuildall.php script needs database admin rights

It calls rebuildtextindex.php, which use the ALTER command.

Bug: 50025
Change-Id: Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f

10 years agoAdjust parserTests.txt for bug 43015
Inez Korczyński [Mon, 24 Jun 2013 23:35:29 +0000 (16:35 -0700)]
Adjust parserTests.txt for bug 43015

Change-Id: Ied95c87fda13dbea2b8c46ad1e96fde1c50c1517

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 24 Jun 2013 20:00:05 +0000 (20:00 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 24 Jun 2013 19:41:32 +0000 (19:41 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6088523647a98c8a79cb634bd531b25d85df60a9

10 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Mon, 24 Jun 2013 19:39:32 +0000 (19:39 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoRebuild MessagesEn.php
Alexandre Emsenhuber [Mon, 24 Jun 2013 18:42:33 +0000 (20:42 +0200)]
Rebuild MessagesEn.php

Change-Id: I8c792c66f26020ad65efc38f1baf1a57950667f1

10 years agoAdd broken-file-category for file links inside <gallery/>
MatmaRex [Mon, 24 Jun 2013 18:38:48 +0000 (20:38 +0200)]
Add broken-file-category for file links inside <gallery/>

Bug: 50119
Change-Id: I7d06f48e53df43213bda52feec0d3f390e10f742

10 years agoMerge "Added new + updated old tests for preventing regressions in Parsoid"
jenkins-bot [Mon, 24 Jun 2013 18:06:42 +0000 (18:06 +0000)]
Merge "Added new + updated old tests for preventing regressions in Parsoid"

10 years agoAdded new + updated old tests for preventing regressions in Parsoid
Subramanya Sastry [Mon, 24 Jun 2013 17:03:36 +0000 (12:03 -0500)]
Added new + updated old tests for preventing regressions in Parsoid

Change-Id: I2963d8f2a91ec473eb7c9b063c4c5a4c2de8f82d

10 years agoMerge "Improve help text for list=alllinks and alltransclusions"
jenkins-bot [Mon, 24 Jun 2013 17:45:20 +0000 (17:45 +0000)]
Merge "Improve help text for list=alllinks and alltransclusions"

10 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Mon, 24 Jun 2013 14:56:27 +0000 (16:56 +0200)]
Localisation updates from translatewiki.net.

Updates for namespace translations.

Change-Id: Ifc3452fa3617f27e0cbe5d05e37c358c3c3ceb81

10 years agoMerge "API: Fix imageinfo iiurlheight on audio files"
jenkins-bot [Mon, 24 Jun 2013 17:15:43 +0000 (17:15 +0000)]
Merge "API: Fix imageinfo iiurlheight on audio files"

10 years agoAPI: Fix imageinfo iiurlheight on audio files
Brad Jorsch [Fri, 21 Jun 2013 15:46:29 +0000 (11:46 -0400)]
API: Fix imageinfo iiurlheight on audio files

When iiurlheight is given without iiurlwidth, we want to limit the
thumbnail by just the height. MediaWiki's file classes don't really
support this, though, so we pass the image's full width as the limiting
width to achieve the same effect.

However, this fails for audio files where $file->getWidth() returns 0,
but we can still get a thumbnail of a placeholder image. In that
situation, we should just choose an arbitrary non-zero limiting width.

Change-Id: I4318a06a96265d39e39e90cc706d49a1c3b6e8e3

10 years agoMerge "Capitalize URL in api help"
jenkins-bot [Mon, 24 Jun 2013 08:26:52 +0000 (08:26 +0000)]
Merge "Capitalize URL in api help"

10 years agoFix the error in html email when pear mail_mime is missing
bsitu [Mon, 24 Jun 2013 01:06:47 +0000 (18:06 -0700)]
Fix the error in html email when pear mail_mime is missing

When pear package mail_mime is missing, attempt to send html email throws error:
mail() expects parameter 3 to be string, array given.  This is because the code
doesn't unset the html part of the body when falling back to text email

Change-Id: Ie8c73a481cb9003a0b43893cf4751475bdf5c690

10 years agoMerge "Fix typo "relavent" in release notes"
jenkins-bot [Mon, 24 Jun 2013 01:16:13 +0000 (01:16 +0000)]
Merge "Fix typo "relavent" in release notes"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 23 Jun 2013 20:06:41 +0000 (20:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I053c79ff1f095d49668e94a0e05a2b56e668a9ea

10 years agoFix typo "relavent" in release notes
Timo Tijhof [Sun, 23 Jun 2013 09:31:38 +0000 (02:31 -0700)]
Fix typo "relavent" in release notes

Follows-up 8c328d030fc1f7f.

Change-Id: I7395d78b29ba4f754466ded6e0c3b14f35f92440

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 22 Jun 2013 21:09:27 +0000 (21:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6c67e5c688c85cb291255f67f8fe10c576474272

10 years agoCapitalize URL in api help
umherirrender [Fri, 21 Jun 2013 21:32:28 +0000 (23:32 +0200)]
Capitalize URL in api help

As part of bug 34965

Change-Id: Ia1df9748b5de33f6ef5088103ccc6b886f9a17d5

10 years agoRemoved some inappropriate global state from FSFile
Aaron Schulz [Fri, 21 Jun 2013 18:20:59 +0000 (11:20 -0700)]
Removed some inappropriate global state from FSFile

Change-Id: I48bc82eab486c119ed1ac7812d2da97490088cd4

10 years agoImprove help text for list=alllinks and alltransclusions
umherirrender [Fri, 21 Jun 2013 21:17:07 +0000 (23:17 +0200)]
Improve help text for list=alllinks and alltransclusions

This patch set changed some
- "link titles" to "linked titles"
- "transclusion titles" to "transcluded titles"

Change-Id: If536368e95ca5e160d8a69e832e67e3248b787fd

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 21 Jun 2013 20:08:50 +0000 (20:08 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ifa64f58104e4e0fdeafd137079676a33698bb229

10 years agoMerge "Allow SearchUpdate hook to abort core update call"
jenkins-bot [Fri, 21 Jun 2013 18:05:00 +0000 (18:05 +0000)]
Merge "Allow SearchUpdate hook to abort core update call"

10 years agoAllow SearchUpdate hook to abort core update call
Chad Horohoe [Thu, 20 Jun 2013 22:50:31 +0000 (18:50 -0400)]
Allow SearchUpdate hook to abort core update call

Going to use this in CirrusSearch since the default text
handling is insane for Solr.

While we're at it, further move content handling to SearchEngine
so children can override behavior here.

Change-Id: I09d11b81c224d53609c57d75d54021e697b56629

10 years agoMerge "Docs and drop silly m prefix from private variables"
jenkins-bot [Fri, 21 Jun 2013 17:22:08 +0000 (17:22 +0000)]
Merge "Docs and drop silly m prefix from private variables"

10 years agoAllow modification of flags on Recent Changes
umherirrender [Thu, 20 Jun 2013 19:34:07 +0000 (21:34 +0200)]
Allow modification of flags on Recent Changes

Moved the message map in ChangesList::flag to a new setting named
$wgRecentChangesFlags and used it keys to iterate over the flags
Also allow setting the class to deal with minor vs. minoredit

Also make ChangesList::recentChangesFlags public to be used from
extensions, when they will build its own line

Changed one list of placeholders to use recentChangesFlags to have the
correct number of spaces there

Change-Id: If69de05c4edec4e84c3e059090b9cb89845e3269

10 years agoMerge "mediawiki.api.parse: Specify wikitext as the content model"
jenkins-bot [Fri, 21 Jun 2013 06:12:44 +0000 (06:12 +0000)]
Merge "mediawiki.api.parse: Specify wikitext as the content model"

10 years agomediawiki.api.parse: Specify wikitext as the content model
Niklas Laxström [Wed, 19 Jun 2013 10:53:23 +0000 (10:53 +0000)]
mediawiki.api.parse: Specify wikitext as the content model

The parse API defaults to use the content model of the title, which
defaults to "API" in the main namespace which can be configured to have
a different content model.

Bug: 48201
Change-Id: I51143873e3782df4df500194a7ac71c4b446746b

10 years agoChange @since and @deprecated notes to 1.22
Kevin Israel [Mon, 20 May 2013 05:52:14 +0000 (01:52 -0400)]
Change @since and @deprecated notes to 1.22

Using the following command line, I have found doc comments mentioning
"1.21" when they should mention "1.22" instead, which I have fixed
manually:

git diff REL1_21 | grep --color=always -C 10 -iE \
'^\+.*(since|deprecated).*1\.21(\D|$)' | aha > oldver.html

I also moved the release notes for I1987190f ("Combine JavaScript and
JSON encoding logic") from RELEASE-NOTES-1.21 to RELEASE-NOTES-1.22
because I had reverted the commit on REL1_21 only (see Id3b88102 and
bug 47431 for the rationale).

Change-Id: I11b917a371e07267dfa98b8449776d0c1cb29b15
Follows-Up: I25cf5a94f6e47f85a9d0b80cc1c9c9f957288478
Follows-Up: I3d72e4105f6244b0695116940e62a2ddef66eb66
Follows-Up: I3faa9c3e8107c6e46cdf21f8c18adda1f42890d7
Follows-Up: I6aab19c8d68bf47beddad42632b0360a7b12f251
Follows-Up: I86368821fc2cd0729df5342b8572eb470c0f77a0
Follows-Up: Id3b88102e768318e3605a19e9952121091a40915
Follows-Up: Ie667088010e24eb6cb569f9e8e8e2553005223eb

10 years agodatabase: Simplify selectSQLText() and fix USE INDEX bug
Aaron Schulz [Thu, 16 May 2013 20:04:53 +0000 (13:04 -0700)]
database: Simplify selectSQLText() and fix USE INDEX bug

* Previously, using a USE INDEX array with one table string resulted
  in the FORCE INDEX statement not appearing in the SQL.
* Renamed two variables in tableNamesWithUseIndexOrJOIN().

Change-Id: Id084db7df3b07d125ea73faca7e4506a58be5f35

10 years agomediawiki.js: Clean up and improve documentation coverage
Timo Tijhof [Mon, 10 Jun 2013 04:40:21 +0000 (06:40 +0200)]
mediawiki.js: Clean up and improve documentation coverage

Function addStyleTag was only documented as a private function,
since a while now it is also exposed as a public method.

Rename the private function so that they can both be included
in the JSDuck index (jsduck can't deal with name clashes between
public and private). Optimised by letting it inherit the
documentation instead of repeating it.

The following were missing documentation:
* mw
* mw.hook
* mw.legacy
* mw.loader#addEmbeddedCSS

Moved assignment of `done` in mw.loader#addScript to where it
was needed. The other if/else paths in that function don't use
it and don't need it to have a value.

With the introduction of mw.log#deprecate (fe46903) we no longer
need mw.legacy. mw.legacy was created for future use to move
legacy stuff into to make it easier to keep track of where they
are used (simple search for 'mw.legacy') however that never
happened and in retrospect was probably a bad idea as it would
require people to change code twice.

We now have a much cleaner solution now that we're able to
create little accessors on any host-object with mw.log#deprecate.
This makes mw.legacy obsolete and it should not be used for
anything. Just in case something is using it I won't remove it
just yet, instead I've deprecated the (what would have become
the) deprecator ;-). We should be able to remove this in 1.23.
Note: Can't use mw.log#deprecate here because that isn't defined
yet at this point, this is the core library which can't have any
dependencies.

Change-Id: I5d241e4284f07a6be271c04cec3a5833dbaeed91

10 years agoDocs and drop silly m prefix from private variables
Chad Horohoe [Thu, 20 Jun 2013 22:48:51 +0000 (18:48 -0400)]
Docs and drop silly m prefix from private variables

Change-Id: Ib2e5507e5735dd94423174f475e6a8e733f89fd7

10 years agoMerge "displaytitle: Pass-by-reference fix for PHP 5.4"
Parent5446 [Thu, 20 Jun 2013 22:28:33 +0000 (22:28 +0000)]
Merge "displaytitle: Pass-by-reference fix for PHP 5.4"

10 years agodisplaytitle: Pass-by-reference fix for PHP 5.4
MatmaRex [Thu, 20 Jun 2013 22:18:36 +0000 (00:18 +0200)]
displaytitle: Pass-by-reference fix for PHP 5.4

PHP 5.4 includes some pass-by-reference changes which apparently make
the '&' sigil necessary here.

Spotted by Mormegil <mormegil@centrum.cz>. Followup to Ie162535b.

Change-Id: I038fa7f8e1559c95dba7b9b498fc1d1f5eb76887

10 years agoReturn errors from WatchAction
Brad Jorsch [Thu, 13 Jun 2013 17:56:29 +0000 (13:56 -0400)]
Return errors from WatchAction

Currently, WatchAction::doWatch and WatchAction::doUnwatch return true
always. Let's have them return a status object instead.

This also cleans up the handling of Status objects in some of the API
modules.

Change-Id: I9dd9f0fd499c37f29fa12bcdb6142238a1f11e4d

10 years agodoc: speed up dot generation
Antoine Musso [Thu, 20 Jun 2013 18:27:04 +0000 (20:27 +0200)]
doc: speed up dot generation

dot supports generating multiple graphs in one run, that was not always
the case and Doxygen had a default of not using that feature.  Given it
got introduced in dot 1.8.10 and Wikimedia CI server has 2.26.x, I guess
it is safe to enable this.

End result, is less shell out overhead.

Change-Id: Ia07b430bd1af608bbe9c10eecbe2df3e0b9c74fc

10 years agodoc: raise doxygen lookup cache
Antoine Musso [Thu, 20 Jun 2013 18:23:30 +0000 (20:23 +0200)]
doc: raise doxygen lookup cache

At the end of a run, doxygen emits a notice regarding the cache lookup
size being too small.  This cache is used to find symbols given their
name which would speed up processing a bit.

The notice before this patch:

lookup cache used 65536/65536 hits=2258467 misses=112595
Note: based on cache misses the ideal setting for LOOKUP_CACHE_SIZE is 1
at the cost of higher memory usage.

And after:

lookup cache used 104632/131072 hits=2131285 misses=105434

That is 7% less miss, not that much but still.  Note how the cache is
well filled (80%).

Change-Id: I0b97e8c5581a63c44a382891f8f1fc8d60975e80

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 20 Jun 2013 19:02:16 +0000 (19:02 +0000)]
Merge "Localisation updates from translatewiki.net."

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

Change-Id: I213cd86665ecdbd77e7504e9cd77eea9cbd15b07

10 years agodoc: sync with doxygen 1.7.6.1
Antoine Musso [Thu, 20 Jun 2013 18:19:35 +0000 (20:19 +0200)]
doc: sync with doxygen 1.7.6.1

The Wikimedia CI server runs doxygen 1.7.6.1, this patch sync our
configuration with that version.

TCL_SUBST and LOOKUP_CACHE_SIZE have been added.
IDL_PROPERTY_SUPPORT default value changed, unused by us though

Change-Id: Ic43d99c4675eb8f1772a72a9b9bfaf16057e19f1

10 years agoMerge "Fixed doc typo"
jenkins-bot [Thu, 20 Jun 2013 16:54:46 +0000 (16:54 +0000)]
Merge "Fixed doc typo"