lhc/web/wiklou.git
11 years agoQUnit: Re-enable config.requireExpects and add missing numbers.
Timo Tijhof [Tue, 12 Mar 2013 05:33:40 +0000 (06:33 +0100)]
QUnit: Re-enable config.requireExpects and add missing numbers.

Change-Id: I214b3d4da46f3f3bb0fcde313ac2d82439e40e3c

11 years agoFixed @param tags to conform with Doxygen format.
Tyler Anthony Romeo [Mon, 11 Mar 2013 17:15:01 +0000 (13:15 -0400)]
Fixed @param tags to conform with Doxygen format.

Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.

Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13

11 years agoMerge "Make sure Parsoid doesn't get snobbish and treat non-html5 tags badly."
GWicke [Mon, 11 Mar 2013 16:56:07 +0000 (16:56 +0000)]
Merge "Make sure Parsoid doesn't get snobbish and treat non-html5 tags badly."

11 years agoMerge "Fixes for e288e4036"
jenkins-bot [Mon, 11 Mar 2013 16:22:48 +0000 (16:22 +0000)]
Merge "Fixes for e288e4036"

11 years agoMerge "Fixed many small spelling mistakes and php docs, var decl."
jenkins-bot [Mon, 11 Mar 2013 14:17:08 +0000 (14:17 +0000)]
Merge "Fixed many small spelling mistakes and php docs, var decl."

11 years ago(bug 45978) Correct case of Special:Userrights' canonical name
Alexandre Emsenhuber [Mon, 11 Mar 2013 06:34:06 +0000 (07:34 +0100)]
(bug 45978) Correct case of Special:Userrights' canonical name

Fix for I50796216 (17e17ba).

The error is PHP Notice:  Found alias defined for Userrights when
searching for special page aliases for UserRights. Case mismatch?

Bug: 45978
Change-Id: Ib82bd38d0229af7571f2ab3c0470fa0f0384b635

11 years agoIcuCollation::$tailoringFirstLetters: 'en', 'it', 'hu', 'pt', 'uk' verified
MatmaRex [Tue, 5 Mar 2013 12:47:05 +0000 (13:47 +0100)]
IcuCollation::$tailoringFirstLetters: 'en', 'it', 'hu', 'pt', 'uk' verified

* en: obviously
* it: per Nemo_bis in comments on change I97273c52
* hu: per Tisza Gergő in comments on bug 45596
* pt: 'uca-default' collation is deployed on pt.wiki, 'uca-pt' is the same thing
* uk: per Dmytro Dziuma in comments on bug 45444

Change-Id: Ia7568a9ad40ef991b73059b5269e6236f52681f1

11 years agolowercase second character in digraph letters in IcuCollation tailorings
MatmaRex [Sat, 9 Mar 2013 17:53:16 +0000 (18:53 +0100)]
lowercase second character in digraph letters in IcuCollation tailorings

This is *the* valid way for Hungarian (per bug 45596 comment 10), and
it's likely more appropriate for other languages as well.

I should have done it this way in the first place; the original data
source includes these forms along with the all-uppercase ones (I
checked them all), so they're certainly at least not wrong. Just an
overlooking on my part.

Change-Id: Ie0ca297a082ddba8d757beb85655f86b3ee70b02

11 years agoMerge "Lots of spelling mistakes and phpdoc attributes"
jenkins-bot [Mon, 11 Mar 2013 04:15:06 +0000 (04:15 +0000)]
Merge "Lots of spelling mistakes and phpdoc attributes"

11 years agoFixed many small spelling mistakes and php docs, var decl.
Yuri Astrakhan [Mon, 11 Mar 2013 03:45:51 +0000 (23:45 -0400)]
Fixed many small spelling mistakes and php docs, var decl.

Change-Id: I1508ed7eb77e5e4f700fb63955d626c4f5915840

11 years agoLots of spelling mistakes and phpdoc attributes
Yuri Astrakhan [Mon, 11 Mar 2013 03:16:28 +0000 (23:16 -0400)]
Lots of spelling mistakes and phpdoc attributes

@throw->@throws
@returns->@return
@seealso->@see
@cover->@covers
etc

Change-Id: I9ae6bc3034e9790e2d66cd96473b923fe9ee7953

11 years agoMerge "Add "User rights management" link on user page toolbox"
jenkins-bot [Sun, 10 Mar 2013 22:52:40 +0000 (22:52 +0000)]
Merge "Add "User rights management" link on user page toolbox"

11 years agoAdd "User rights management" link on user page toolbox
JuneHyeon Bae [Sun, 10 Mar 2013 09:55:14 +0000 (18:55 +0900)]
Add "User rights management" link on user page toolbox

Bug: 34040
Change-Id: I507962161581c3d9ae928594d8d280be9a4ffbdd

11 years agoMerge "(bug 25325) fix wlexcludeuser for ApiFeedWatchlist"
jenkins-bot [Sun, 10 Mar 2013 22:23:03 +0000 (22:23 +0000)]
Merge "(bug 25325) fix wlexcludeuser for ApiFeedWatchlist"

11 years agoMore job queue doc tweaks.
Aaron Schulz [Sat, 9 Mar 2013 21:00:16 +0000 (13:00 -0800)]
More job queue doc tweaks.

Change-Id: I06bae67f67da23190c0576902767dc38a0d8ca5b

11 years ago(bug 25325) fix wlexcludeuser for ApiFeedWatchlist
MatmaRex [Sun, 10 Mar 2013 21:08:22 +0000 (22:08 +0100)]
(bug 25325) fix wlexcludeuser for ApiFeedWatchlist

The effect of setting this option was later overwritten in the code; I
just moved an if a few lines down.

Also some null comparison cleanup.

Change-Id: I2a85673330681c6ff7facc25a7bbfb6972fe8fd5

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

Change-Id: I5efb53366137b0e6dceccf76a9cdaa3f7d77194f

11 years agoMerge "Kill off numerous unused variables"
jenkins-bot [Sun, 10 Mar 2013 14:13:29 +0000 (14:13 +0000)]
Merge "Kill off numerous unused variables"

11 years agoMerge "API param validation: Add wrong value to error message on user params"
jenkins-bot [Sat, 9 Mar 2013 22:41:41 +0000 (22:41 +0000)]
Merge "API param validation: Add wrong value to error message on user params"

11 years agoMerge "createaccount api action didn't handle no token and no cookie"
jenkins-bot [Sat, 9 Mar 2013 21:40:12 +0000 (21:40 +0000)]
Merge "createaccount api action didn't handle no token and no cookie"

11 years agoAPI param validation: Add wrong value to error message on user params
umherirrender [Sat, 9 Mar 2013 21:14:03 +0000 (22:14 +0100)]
API param validation: Add wrong value to error message on user params

It is always nice to get the wrong value back to know it.
Refactor a bit to avoid the array wrapping and unwrapping for non-multi
params.

Adjust another variable, add doc comments, removed a empty line and
reorder a condition for easy reading.

Change-Id: Ia91aa5908b82ad1209dc7da1139f91e1f2b45fac

11 years agoRemove the page from the LinkCache before adding it again in WikiPage::loadFromRow()
Alexandre Emsenhuber [Sat, 9 Mar 2013 20:00:14 +0000 (21:00 +0100)]
Remove the page from the LinkCache before adding it again in WikiPage::loadFromRow()

This makes sure the LinkCache doesn't list a page both as good and bad link at the
same time, e.g. when a page gets created or deleted in the request.

Change-Id: I6774132ba8e4d28deed1908150c02fbaa42111a5

11 years agoMerge "Return user ID as userid in watchlist API module"
jenkins-bot [Sat, 9 Mar 2013 18:40:19 +0000 (18:40 +0000)]
Merge "Return user ID as userid in watchlist API module"

11 years agoUse ContextSource::getLanguage instead of $wgLang
umherirrender [Sat, 9 Mar 2013 16:02:44 +0000 (17:02 +0100)]
Use ContextSource::getLanguage instead of $wgLang

Found two places, where $wgLang is used inside a ContextSource.

Change-Id: I1881a20d3cd9b50eb4af0cd588451ed941f936fa

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 9 Mar 2013 15:09:18 +0000 (15:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I60a4f38e6b3459cbc2fb758615a311d67800d54d

11 years agoMerge "Use TargetLanguage of the Parser in ImageGallery"
jenkins-bot [Sat, 9 Mar 2013 14:40:24 +0000 (14:40 +0000)]
Merge "Use TargetLanguage of the Parser in ImageGallery"

11 years agoMerge "(Bug 34798) Synced the FeedUtils.php page with mediawiki.action.history.diff...
jenkins-bot [Sat, 9 Mar 2013 14:04:58 +0000 (14:04 +0000)]
Merge "(Bug 34798) Synced the FeedUtils.php page with mediawiki.action.history.diff.css"

11 years agoUse TargetLanguage of the Parser in ImageGallery
umherirrender [Sat, 9 Mar 2013 13:59:36 +0000 (14:59 +0100)]
Use TargetLanguage of the Parser in ImageGallery

If there is a parser set on ImageGallery, the target language of the
parser should be used, because this parsed piece of html can get into
the parser cache.

Change-Id: I2e47b316e3dcc6a3db4fb5d13f5065e35fc369dd

11 years agoSync messages.inc with MessagesEn.php
raymond [Sat, 9 Mar 2013 08:42:56 +0000 (09:42 +0100)]
Sync messages.inc with MessagesEn.php

rotate: Followup to Id15a92d19cda8256917e7e1e5ee4241012214102
pageswith props: sometimes earlier...

Change-Id: I8da23c89d5b1ebe669b4e4ef1e0d67ce8064a860

11 years agocreateaccount api action didn't handle no token and no cookie
Brian Wolff [Sat, 9 Mar 2013 08:38:02 +0000 (04:38 -0400)]
createaccount api action didn't handle no token and no cookie

If you made a request to action=createaccount and this was
the first time (so no account creation token had yet been
generated for you) a "nocookiesfornew" error was returned.

This is incorrect, what is supposed to happen in that
case is the api returns what token to use. This is
how users are supposed to request tokens, so the
issue is very confusing.

No release notes since this module was introduced in
this version.

Also removed sessionfailure from possible errors,
as it isn't one (that status triggers the needtoken
result).

Change-Id: Ibfc3879fa89b1e11303aef65feb45a91afc215e6

11 years agoUpdated job queue README.
Aaron Schulz [Sat, 9 Mar 2013 04:00:28 +0000 (20:00 -0800)]
Updated job queue README.

Change-Id: I8f884823cc5396e38bc5cd2f803f062a2dbdfac8

11 years ago(bug 45922) Fix arbitrary inconsistency in page title and headings for message accmai...
Matthew Bowker [Sat, 9 Mar 2013 06:35:03 +0000 (23:35 -0700)]
(bug 45922) Fix arbitrary inconsistency in page title and headings for message accmailtitle

bug: 459222
Change-Id: If582242f0473bce81a80f05d77421bdf6e5a3f29

11 years ago(Bug 34798) Synced the FeedUtils.php page with mediawiki.action.history.diff.css
rahul21 [Mon, 11 Feb 2013 19:22:24 +0000 (00:52 +0530)]
(Bug 34798) Synced the FeedUtils.php page with mediawiki.action.history.diff.css

->Added the background,border in diff-context,diff-addedline,diff-deleted line in $styles array in the FeedUtils.php

Change-Id: Icbfb6cfc659652c146e565b760d0815640fdad64

11 years agoMerge "(Bug 45854) Unset the cgroup if we don't have a memory limit"
jenkins-bot [Fri, 8 Mar 2013 23:34:15 +0000 (23:34 +0000)]
Merge "(Bug 45854) Unset the cgroup if we don't have a memory limit"

11 years agoMerge "Fix more UnitTests for databases that do not use integer timestamps"
jenkins-bot [Fri, 8 Mar 2013 22:54:28 +0000 (22:54 +0000)]
Merge "Fix more UnitTests for databases that do not use integer timestamps"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 8 Mar 2013 21:47:00 +0000 (21:47 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Icec7f2891935766ba5406d7932198b0f07a8a6d9

11 years agoMerge "Add the global correctly"
jenkins-bot [Fri, 8 Mar 2013 21:11:00 +0000 (21:11 +0000)]
Merge "Add the global correctly"

11 years agoFixes for e288e4036
Platonides [Fri, 8 Mar 2013 12:07:32 +0000 (13:07 +0100)]
Fixes for e288e4036

Changed static calls to instance functions.

Make BitmapHandler::rotate() non-static.

We don't have a Bitmap class. It should have
been falling back to BitmapHandler class.
(JpegHandler ← ExifBitmapHandler ← BitmapHandler)

Change-Id: I17be410456b00cef2ded8d6e2282ae0de4785695

11 years agoFix more UnitTests for databases that do not use integer timestamps
Brent Garber [Mon, 21 Jan 2013 23:01:05 +0000 (23:01 +0000)]
Fix more UnitTests for databases that do not use integer timestamps

Change-Id: I6f8b19aa6e6a9efc3320bb18fa8c7ec8b72a0c17

11 years agoMerge "Fixed $vCallback comment and removed unused return value."
jenkins-bot [Fri, 8 Mar 2013 19:00:20 +0000 (19:00 +0000)]
Merge "Fixed $vCallback comment and removed unused return value."

11 years ago[JobQueue] Made supportedOrders() protected.
Aaron Schulz [Fri, 8 Mar 2013 18:20:54 +0000 (10:20 -0800)]
[JobQueue] Made supportedOrders() protected.

Change-Id: I7237472d8281c06aff11c4644e9a59848c325263

11 years agoFixed $vCallback comment and removed unused return value.
Aaron Schulz [Fri, 8 Mar 2013 17:49:13 +0000 (09:49 -0800)]
Fixed $vCallback comment and removed unused return value.

Change-Id: If438d83e1b43c110b3c23e8d0a7705fa0795049f

11 years agofix MessageCacheTest for non-english wikis
umherirrender [Fri, 8 Mar 2013 16:09:06 +0000 (17:09 +0100)]
fix MessageCacheTest for non-english wikis

MessageCacheTest::addDBData is called before setUp, so wgLanguageCode
and wgContLang are not set to 'en', which result in mediawiki pages
created as $key/en. When the test runs, the language is set correctly
and mediawiki is searching under $key, and does not find anything.

Set wgLanguageCode and wgContLang at the begin of addDBData

1) MessageCacheTest::testMessageFallbacks with data set #0
('FallbackLanguageTest-Full', 'ab', 'ab')
Message fallback failed.
Failed asserting that false matches expected 'ab'.

Change-Id: I8e70b7b424df6a9ad98bfb6c228809f4b4437d1e

11 years agoMerge "Use output/error maintenance functions"
jenkins-bot [Fri, 8 Mar 2013 15:40:58 +0000 (15:40 +0000)]
Merge "Use output/error maintenance functions"

11 years agoAdd the global correctly
Platonides [Fri, 8 Mar 2013 11:59:56 +0000 (12:59 +0100)]
Add the global correctly

Change-Id: I03be0cf1e82fc9f8f00727bed5aca9d9d2758c2e

11 years ago(Bug 45854) Unset the cgroup if we don't have a memory limit
Platonides [Fri, 8 Mar 2013 09:51:55 +0000 (10:51 +0100)]
(Bug 45854) Unset the cgroup if we don't have a memory limit

We only create the cgroup if there's a memory limit, but it
tried to always cleanup it, regardless if it was used or not,
resulting in a «/sys/fs/cgroup/memory/mediawiki/job/32466/tasks:
No such file or directory» error, when run with MW_CGROUP='mediawiki';
MW_MEM_LIMIT=0

Change-Id: I7fdb545b336ead62aa743b1bc3afdbfba2c3113f

11 years agoMerge "Add SpecialPage::getGroupName and use it"
jenkins-bot [Fri, 8 Mar 2013 06:59:00 +0000 (06:59 +0000)]
Merge "Add SpecialPage::getGroupName and use it"

11 years ago[JobQueue] Cleaned up handling of orders a bit.
Aaron Schulz [Sun, 3 Mar 2013 04:41:38 +0000 (20:41 -0800)]
[JobQueue] Cleaned up handling of orders a bit.

Change-Id: I83d060e0db97d5bebf042041b0bd20563b093418

11 years agoRemoved "poolSize" option from RedisConnectionPool.
Aaron Schulz [Thu, 7 Mar 2013 06:45:59 +0000 (22:45 -0800)]
Removed "poolSize" option from RedisConnectionPool.

* The size is now automatically based on the number of servers.

Change-Id: I6ea53378c9c8254e8556c0a1e4efe64fd71ba356

11 years ago[JobQueue] Added JobQueue::getAllQueuedJobs() function.
Aaron Schulz [Thu, 21 Feb 2013 01:19:38 +0000 (17:19 -0800)]
[JobQueue] Added JobQueue::getAllQueuedJobs() function.

* Also added a small MappedIterator class for convenience.

Change-Id: I7dac1001a8e048cb524f7fbfee50a20a32e598ba

11 years agoUse output/error maintenance functions
Reedy [Sat, 2 Feb 2013 18:15:47 +0000 (18:15 +0000)]
Use output/error maintenance functions

Change-Id: I9f9ebee9e577ab3cc7a042e5280161d2b2bad57a

11 years agoKill off numerous unused variables
Reedy [Sun, 9 Dec 2012 03:27:02 +0000 (03:27 +0000)]
Kill off numerous unused variables

Change-Id: I7039f1328f37ee669b694f73ee282602186bffd1

11 years agoMerge "mw.loader: Buffer cssText in addEmbeddedCSS."
jenkins-bot [Fri, 8 Mar 2013 01:29:59 +0000 (01:29 +0000)]
Merge "mw.loader: Buffer cssText in addEmbeddedCSS."

11 years agoMerge "mw.loader: Create new style tags instead of appending text"
jenkins-bot [Fri, 8 Mar 2013 01:28:06 +0000 (01:28 +0000)]
Merge "mw.loader: Create new style tags instead of appending text"

11 years agoAdding validation for checkmatrix (same as for multiselect)
Kaldari [Thu, 7 Mar 2013 22:35:48 +0000 (14:35 -0800)]
Adding validation for checkmatrix (same as for multiselect)

Change-Id: I825ec8a6094405cf7d74597a0eeda3898981763b

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 7 Mar 2013 22:02:23 +0000 (22:02 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Few more message parameter type hints"
jenkins-bot [Thu, 7 Mar 2013 21:49:43 +0000 (21:49 +0000)]
Merge "Few more message parameter type hints"

11 years ago(bug 33186) image rotate api
Jan Gerber [Tue, 8 Jan 2013 11:35:55 +0000 (11:35 +0000)]
(bug 33186) image rotate api

add api action imagerotate to rotate images.
rotations are stored as a new version of the image.

Change-Id: Id15a92d19cda8256917e7e1e5ee4241012214102

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 7 Mar 2013 21:32:10 +0000 (21:32 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If4f63fa6338b3c1938b54a88857dfc5014d75372

11 years agoTwo typo-bugs, credits update
Yuri Astrakhan [Thu, 7 Mar 2013 20:31:43 +0000 (15:31 -0500)]
Two typo-bugs, credits update

* ApiMain::addFormat() had a missed bug for custom formatters.
* ApiPageSet used incorrect variable
* Marked Roan as leading until 2009 (per IRC discussion)
* Updated my involvement to present

Change-Id: I5964bcdd3f82fedad06732df39f420796abe972b

11 years agoAdd SpecialPage::getGroupName and use it
umherirrender [Thu, 7 Mar 2013 20:15:54 +0000 (21:15 +0100)]
Add SpecialPage::getGroupName and use it

Having all group mapping for Special:SpecialPages in the global
$wgSpecialPageGroups is not a good OO style.
Created a method SpecialPage::getGroupName, which than can be overridden
by each subclasses to the featured group name.

Added also SpecialPage::getFinalGroupName to get the groupname on
Special:SpecialPages to handle the customization and
to keep $wgSpecialPageGroups for b/c

Change-Id: I1de3a186f0a59ec5ecb8996c5f805cf164e9637f

11 years agoMerge "Docs for gerrit 47419"
jenkins-bot [Thu, 7 Mar 2013 18:07:43 +0000 (18:07 +0000)]
Merge "Docs for gerrit 47419"

11 years agoMerge "[FileBackend] Added a "ttl" option to getFileHttpUrl()."
Reedy [Thu, 7 Mar 2013 17:59:48 +0000 (17:59 +0000)]
Merge "[FileBackend] Added a "ttl" option to getFileHttpUrl()."

11 years agoDocs for gerrit 47419
Matthias Mullie [Thu, 7 Mar 2013 17:54:12 +0000 (18:54 +0100)]
Docs for gerrit 47419

Change-Id: I021b7250418e60397127e1778107ee3da77ffb18

11 years agoMerge "Read full memcached response before manipulating data"
jenkins-bot [Thu, 7 Mar 2013 17:34:05 +0000 (17:34 +0000)]
Merge "Read full memcached response before manipulating data"

11 years agoMerge "fix some spacing"
jenkins-bot [Thu, 7 Mar 2013 17:13:27 +0000 (17:13 +0000)]
Merge "fix some spacing"

11 years agofix some spacing
umherirrender [Thu, 7 Mar 2013 16:50:43 +0000 (17:50 +0100)]
fix some spacing

Added/removed spaces around logical/arithmetic operator
Reduced multiple empty lines to one empty line
Removed wrong tabs before comments at end of line
Removed too many spaces in assigments

Change-Id: I2bba4e72f9b5f88c53324d7b70e6042f1aad8f6b

11 years agoFix align of block comments
umherirrender [Thu, 7 Mar 2013 16:27:38 +0000 (17:27 +0100)]
Fix align of block comments

Change-Id: I88ea33a125a71671886b49e4ebf4c1d0a1cce572

11 years agoMerge "(bug 1495) Enable on-wiki message language fallbacks"
jenkins-bot [Thu, 7 Mar 2013 15:27:36 +0000 (15:27 +0000)]
Merge "(bug 1495) Enable on-wiki message language fallbacks"

11 years agoRead full memcached response before manipulating data
Matthias Mullie [Mon, 4 Feb 2013 16:54:53 +0000 (17:54 +0100)]
Read full memcached response before manipulating data

Memcached response when fetching data typically looks like this:
VALUE <the stored value for whatever key you requested>
END

What the code used to do is read the first line (the VALUE) and re-
assemble the data being fetched there (like unserializing serialized
data). After that, it will read the next line (END).

The value could be a serialized object, which could have a __wakeup.
This __wakeup could have code which in turn executes Memcached-
related stuff. The problem is that, while that object is being
unserialized already, it's wakeup code is attempting to read new
stuff from Memcached, but we have yet to read the END of the data
we're attempting to unserialize (when we'll read a new value from
Memcached, the first thing we'd get is the END we have not yet read..)

The correct way to go about this would be to first read the full
Memcached response, and only unserialize the read data after that.
This is exactly what this patchset does.

Change-Id: I902809c6dde657091c8161a09df823170bd41f7a

11 years agoChanging position of colon
shirayuki [Thu, 7 Mar 2013 10:59:24 +0000 (19:59 +0900)]
Changing position of colon

Change-Id: I5a973a04221f730c3b6cb4e1abf1a6d0bd95d107

11 years agoAdd full stop to full sentences
raymond [Thu, 7 Mar 2013 08:27:02 +0000 (09:27 +0100)]
Add full stop to full sentences

Change-Id: I3182c093ce582fb24db1fd8216aa9b9e756edf9a

11 years agoRemove the mediawiki.api.titleblacklist module
Alex Monk [Sun, 3 Mar 2013 22:51:27 +0000 (22:51 +0000)]
Remove the mediawiki.api.titleblacklist module

Moved to the TitleBlacklist extension in I5bf7064a.

Bug: 38244
Change-Id: Ia595085371615da057aaa358d76929916a3e2186

11 years agoMerge "Revert "(bug 45677) CSSJanus: support text-shadow and box-shadow flipping""
Krinkle [Thu, 7 Mar 2013 06:19:33 +0000 (06:19 +0000)]
Merge "Revert "(bug 45677) CSSJanus: support text-shadow and box-shadow flipping""

11 years agoRevert "(bug 45677) CSSJanus: support text-shadow and box-shadow flipping"
Krinkle [Thu, 7 Mar 2013 06:19:26 +0000 (06:19 +0000)]
Revert "(bug 45677) CSSJanus: support text-shadow and box-shadow flipping"

See I5d24c7d8456e2. This is a wontfix per Trevor and myself.

This reverts commit e457d804eb6f854baf5edfd022ce217d53d6e946

Change-Id: I886a078cbeedd5a742e9c6dfedc9bd718bab089c

11 years ago[FileBackend] Added a "ttl" option to getFileHttpUrl().
Aaron Schulz [Thu, 7 Mar 2013 04:47:30 +0000 (20:47 -0800)]
[FileBackend] Added a "ttl" option to getFileHttpUrl().

Change-Id: Ifc7b9c012276ed1f1e436ffafbd5615689680054

11 years agomw.loader: Buffer cssText in addEmbeddedCSS.
Timo Tijhof [Thu, 7 Mar 2013 00:24:05 +0000 (01:24 +0100)]
mw.loader: Buffer cssText in addEmbeddedCSS.

I52252e699a improved the repaint situation (bug 45810) a
bit, but not as much as we hoped. Inserting a stylesheet and
applying it to the page is a fairly expensive operation.
Invalidating the previous one in the process didn't help, but
fixing that didn't make a lot of difference.

This is a much more significant improvement by reducing the
number of <style> tags in the first place.

When a load.php request is handled, it reponds with many
mw.loader.implement() calls, one directly after the other
(not asynchronous in any way).

In the long term we could change the server side to combine
these better but for now the easiest fix with the largest gain
is to buffer it, yield once, and then insert it all at once.

This means we insert only one <style> for each load.php request.

Bug: 45810
Change-Id: I430fba9998b133a85dd3ac38237dc44b38630a9c

11 years agomw.loader: Create new style tags instead of appending text
Timo Tijhof [Wed, 6 Mar 2013 23:02:51 +0000 (00:02 +0100)]
mw.loader: Create new style tags instead of appending text

As brought to our attention by Chromium/WebKit developers at Google,
when we fixed bug 31676 (IE stylesheet limit) by appending to
<style> whenever we can (i.e. whenever the received stylesheet
does not involve @import which only works on top of the a
stylesheet) – this is causing several slowdowns.

Which build up on mobile to several dozen seconds in pages
with a lot of content and many modules being loaded.

Appending a text node to a <style> tag, while it doesn't require
the DOM to do anything fancy (no need to reparse the contents).
The stylesheet handler of the browser has to re-parse the css text
after each modification as the css syntax is too tolerant to be
able to just pick up parsing again (at least, as of writing
neither Gecko or WebKit are able to do so).

As a result, the stylesheet is invalidated, re-parsed and
re-applied to the page.

So instead default the other way around and only re-use a <style>
tag if we have to do so for IE.

Bug: 45810
Change-Id: I52252e699a518dc1c1327ee598a9e023cc2555e2

11 years ago(bug 33304) Fix ApiQueryAllPages and old indef protections
Brad Jorsch [Wed, 30 Jan 2013 00:57:56 +0000 (19:57 -0500)]
(bug 33304) Fix ApiQueryAllPages and old indef protections

In the query to find only protected pages, ApiQueryAllPages includes a
clause to make sure it doesn't find expired protections. But it doesn't
take into account the possibility that the protection might be an old
infinite protection where the expiry is represented as NULL instead of
'infinity'.

Note this may not close the whole bug; that remains to be determined.

Bug: 33304
Change-Id: If85591986a19bf78f7d56ad60d251fbc450ac451

11 years agoMerge "Few minor parameter type hints in documentation"
jenkins-bot [Thu, 7 Mar 2013 01:01:39 +0000 (01:01 +0000)]
Merge "Few minor parameter type hints in documentation"

11 years agoMade syncFileBackend.php clearer with handling --postime.
Aaron Schulz [Wed, 6 Mar 2013 23:19:23 +0000 (15:19 -0800)]
Made syncFileBackend.php clearer with handling --postime.

Change-Id: I9462fb2aeef0597c3a7a0d1b0b4856ffea2460f6

11 years agoMerge "Resolve config defaults in RedisConnectionPool in the singleton()."
jenkins-bot [Wed, 6 Mar 2013 22:50:39 +0000 (22:50 +0000)]
Merge "Resolve config defaults in RedisConnectionPool in the singleton()."

11 years agoMerge "Don't set wgPostEdit for null edits."
jenkins-bot [Wed, 6 Mar 2013 22:26:42 +0000 (22:26 +0000)]
Merge "Don't set wgPostEdit for null edits."

11 years agoMerge "Maintain the page ID in WikiPage instead of relying on Title"
jenkins-bot [Wed, 6 Mar 2013 21:28:11 +0000 (21:28 +0000)]
Merge "Maintain the page ID in WikiPage instead of relying on Title"

11 years agoFew more message parameter type hints
Reedy [Wed, 6 Mar 2013 01:25:45 +0000 (01:25 +0000)]
Few more message parameter type hints

Change-Id: I9017170a434b8924692e04410acc88831237ef8d

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 6 Mar 2013 21:02:21 +0000 (21:02 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 6 Mar 2013 20:44:33 +0000 (20:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I34195aefb7ae833e983cd0e2612d3af6c29414c1

11 years agoMerge "Force $wgCategoryCollation to be uppercase in tests"
jenkins-bot [Wed, 6 Mar 2013 20:39:42 +0000 (20:39 +0000)]
Merge "Force $wgCategoryCollation to be uppercase in tests"

11 years agoDon't set wgPostEdit for null edits.
Matthew Flaschen [Wed, 6 Mar 2013 20:32:56 +0000 (12:32 -0800)]
Don't set wgPostEdit for null edits.

Bug: 45781

Change-Id: Ia2c3e02304fad07425af520850fe30ca5eab0c8e

11 years agoMerge changes I97273c52,I560d766f
jenkins-bot [Wed, 6 Mar 2013 20:13:37 +0000 (20:13 +0000)]
Merge changes I97273c52,I560d766f

* changes:
  adjusted comments for IcuCollation::$tailoringFirstLetters
  language-specific collations: be-tarask added; be, be-tarask, ru verified

11 years agoMerge "Vector: Don't create an extra request for skins.vector module"
Trevor Parscal [Wed, 6 Mar 2013 20:00:36 +0000 (20:00 +0000)]
Merge "Vector: Don't create an extra request for skins.vector module"

11 years ago(bug 1495) Enable on-wiki message language fallbacks
Matthew Walker [Wed, 16 Jan 2013 07:28:54 +0000 (23:28 -0800)]
(bug 1495) Enable on-wiki message language fallbacks

The core function behind wfMessage() (MessageCache->get()) did not
apply the language fallback chain to on-wiki messages.

This patch has changed the behavior to iterate over all possible
on-wiki fallbacks (starting with the user's language) before
using the built-in language cache (CDB files). Previously we only looked
for the existence of an on-wiki message in the users's language.

Performance wise, using the 'ab' language ('ru', 'en' fallbacks)
MessageCache::get (Averaged over runs and calls)
New Code: ~8.5% TET (110us/call)
Old Code: ~6.5% TET ( 90us/call)

TET: Total Execution Time

Change-Id: Iaaf6ccebd8c40c9602748c58c3a5c73c29e7aa4d

11 years agoRemove german special page alias for 'Version'
umherirrender [Wed, 6 Mar 2013 19:15:43 +0000 (20:15 +0100)]
Remove german special page alias for 'Version'

The english alias was also used years in german, because it means the
same, so there is no need for a alias/translation. But translatewiki.net
does not allow aliases, which are the same than the english word. That
means the field on Special:AdvancedTranslate is empty and animated
people to fill it.

Follow up Id1400249 (same release, so removing should not be a problem)

Change-Id: I7a451b5cf1c973b0b04270335ff31f81271f27a2

11 years agoMerge "American spelling - recognize/customize"
jenkins-bot [Wed, 6 Mar 2013 15:19:45 +0000 (15:19 +0000)]
Merge "American spelling - recognize/customize"

11 years agoAmerican spelling - recognize/customize
shirayuki [Tue, 5 Mar 2013 23:28:07 +0000 (08:28 +0900)]
American spelling - recognize/customize

Change-Id: I41b2f8113cf84e16430c1f59a76acbb539269833

11 years agoMerge "Changing position of colon for consistency"
jenkins-bot [Wed, 6 Mar 2013 11:50:28 +0000 (11:50 +0000)]
Merge "Changing position of colon for consistency"

11 years agoMerge "Use American English spelling for behavior"
jenkins-bot [Wed, 6 Mar 2013 09:00:26 +0000 (09:00 +0000)]
Merge "Use American English spelling for behavior"

11 years agoMake default params to CategoryViewer usable as defaults.
Ori Livneh [Sat, 2 Mar 2013 00:34:09 +0000 (16:34 -0800)]
Make default params to CategoryViewer usable as defaults.

If the '$from' and '$to' parameters to the CategoryViewer constructor are left
off, they default to empty arrays. This makes later checks for $from['page'],
etc. issue an 'Undefined index' notice.

Using 'empty' would be more concise but could hide bugs.

Change-Id: I78793d13745d1fc1010b8e6861bdc3a89a39a87f

11 years agoExtend the SpecialStatsAddExtra hook for a more distinct display of extra items
mwjames [Mon, 5 Nov 2012 10:24:52 +0000 (19:24 +0900)]
Extend the SpecialStatsAddExtra hook for a more distinct display of extra items

The current approach leaves not much room for a meaningful
display of varying extra statistical items nor its ability to display
a special page link as item name.

The change proposed allows for varying header titles as well as
item descriptions using the standard language parser. The proposed
change uses is similar approach as in the InfoAction hook. A item
now is specified as [<header-message>][<item-message>] = number

Use === array() check instead of a count() and continue legacy support
for the single array structure used prio 1.21.

Change-Id: I78107c72953878c86d221fb6f83baff5f6c11f09

11 years agoMerge "normalize filenames of maintenance scripts"
jenkins-bot [Wed, 6 Mar 2013 06:15:27 +0000 (06:15 +0000)]
Merge "normalize filenames of maintenance scripts"