lhc/web/wiklou.git
10 years agoAdd a few @since to mediawiki.api
Niklas Laxström [Sat, 22 Mar 2014 14:03:03 +0000 (14:03 +0000)]
Add a few @since to mediawiki.api

Change-Id: I0717d1171a7179beb4cee6a922d682864e600e9c

10 years agoSwap wfProfileIn/Out calls for ProfileSection
Chad Horohoe [Fri, 21 Mar 2014 17:13:28 +0000 (10:13 -0700)]
Swap wfProfileIn/Out calls for ProfileSection

Change-Id: Iece1532241dda4297dd4ca2c93287c13462eb2e9

10 years agoMerge "Avoid showing crazy staleness times at ActiveUsers"
jenkins-bot [Fri, 21 Mar 2014 23:15:27 +0000 (23:15 +0000)]
Merge "Avoid showing crazy staleness times at ActiveUsers"

10 years agoMerge "Remove completely useless implementation of getInfo()"
jenkins-bot [Fri, 21 Mar 2014 23:13:43 +0000 (23:13 +0000)]
Merge "Remove completely useless implementation of getInfo()"

10 years agoMWException: Expand {{SITENAME}} in pagetitle with Message::text()
Brian Wolff [Fri, 28 Feb 2014 13:01:10 +0000 (09:01 -0400)]
MWException: Expand {{SITENAME}} in pagetitle with Message::text()

Bug: 58447
Change-Id: I5f4fcb6d6e044f708cd6adb1bc7312d592fc74dd

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 21 Mar 2014 20:46:11 +0000 (20:46 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I18970accbce3b383e4ad89df2b5cd0d638861e26

10 years agoUpdate OOjs UI to v0.1.0-pre (3b434d5388)
James D. Forrester [Fri, 21 Mar 2014 18:06:33 +0000 (11:06 -0700)]
Update OOjs UI to v0.1.0-pre (3b434d5388)

New changes:
076b85e Split autoAdd into catchall and group specific settings

Change-Id: Idb99c0af20f966ead553c7a7eded421ad8b44382

10 years agoMerge "Updating link protocols for WMF wikis in the interwiki map"
jenkins-bot [Fri, 21 Mar 2014 11:23:13 +0000 (11:23 +0000)]
Merge "Updating link protocols for WMF wikis in the interwiki map"

10 years agoMerge "Adding Wikivoyage to the default interwiki map"
jenkins-bot [Fri, 21 Mar 2014 11:22:12 +0000 (11:22 +0000)]
Merge "Adding Wikivoyage to the default interwiki map"

10 years agoMerge "ResourceLoaderStartUpModule: Improve comment about modifiedTime hack"
jenkins-bot [Fri, 21 Mar 2014 10:49:01 +0000 (10:49 +0000)]
Merge "ResourceLoaderStartUpModule: Improve comment about modifiedTime hack"

10 years agoMerge "ResourceLoaderStartUpModule: Remove no-op "delete isCompatible""
jenkins-bot [Fri, 21 Mar 2014 10:46:45 +0000 (10:46 +0000)]
Merge "ResourceLoaderStartUpModule: Remove no-op "delete isCompatible""

10 years agoMerge "Fix possible error list of action=revisiondelete"
jenkins-bot [Fri, 21 Mar 2014 10:39:33 +0000 (10:39 +0000)]
Merge "Fix possible error list of action=revisiondelete"

10 years agoExclude prop=uploadwarning from allimages and stashimageinfo
umherirrender [Sun, 9 Feb 2014 14:00:11 +0000 (15:00 +0100)]
Exclude prop=uploadwarning from allimages and stashimageinfo

Was added with I4a0af8986f924cd127a73828e72da6998f28536c,
but looks only useful on prop=imageinfo

Change-Id: I59c5f11f83be7e59f317686ab7fa16ad6fda008b

10 years agoMake Special:Whatlinkshere.php transcludable
aalekhN [Thu, 9 Jan 2014 21:57:27 +0000 (03:27 +0530)]
Make Special:Whatlinkshere.php transcludable

This commit makes Special:Whatlinkshere transcludable by extending
SpecialWhatLinksHere with IncludableSpecialPage. It also adds a condition
in the showIndirectLinks function to avoid displaying the form when the
page is being transcluded.

Bug: 35486
Change-Id: I49d6be57a9a780f9f959cb4356c5ac026db81775

10 years agoUpdating link protocols for WMF wikis in the interwiki map
kaldari [Fri, 21 Mar 2014 00:16:14 +0000 (17:16 -0700)]
Updating link protocols for WMF wikis in the interwiki map

Change-Id: I18d281104c1c670c3b2dce6b2970930aba26bef0

10 years agoAdding Wikivoyage to the default interwiki map
kaldari [Fri, 21 Mar 2014 00:04:26 +0000 (17:04 -0700)]
Adding Wikivoyage to the default interwiki map

Note that this has already been added to the WMF interwiki map, so
it will have no effect on WMF wikis, only 3rd party wikis.

I'll update the link protocols in a follow-up commit.

Change-Id: I78fbd3ec32c02e2b080c3ee64c6bb36218930a84

10 years agoMerge "Add link to PD help translatable pages from sidebar"
jenkins-bot [Thu, 20 Mar 2014 23:17:26 +0000 (23:17 +0000)]
Merge "Add link to PD help translatable pages from sidebar"

10 years agoMerge "Get rid of Internet Explorer for Mac fixes in Monobook's main.css."
jenkins-bot [Thu, 20 Mar 2014 22:53:25 +0000 (22:53 +0000)]
Merge "Get rid of Internet Explorer for Mac fixes in Monobook's main.css."

10 years agoFix possible error list of action=revisiondelete
umherirrender [Thu, 20 Mar 2014 18:14:02 +0000 (19:14 +0100)]
Fix possible error list of action=revisiondelete

Bug: 62853
Change-Id: I0efec9e8a6cf761def7673011bcc22a9f11111a9

10 years agoMerge "Fixed spacing"
jenkins-bot [Thu, 20 Mar 2014 20:45:37 +0000 (20:45 +0000)]
Merge "Fixed spacing"

10 years agoFixed spacing
umherirrender [Thu, 20 Mar 2014 18:59:20 +0000 (19:59 +0100)]
Fixed spacing

- Added spaces after if/foreach/catch
- Added new line before end of file
- Added or removed spaces before/after parenthesis, comma
- Added spaces around string concat

Change-Id: I0590070f1b3542108e242730e8d9a3ba9831e94f

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 20 Mar 2014 20:31:14 +0000 (20:31 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idf379fd907b86b191bf863d4dded00e5d9c94f35

10 years agoMerge "mediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong"
jenkins-bot [Thu, 20 Mar 2014 18:20:10 +0000 (18:20 +0000)]
Merge "mediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong"

10 years agomediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong
Thiemo Mättig [Thu, 6 Feb 2014 14:33:01 +0000 (15:33 +0100)]
mediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong

If the exposed function is called from a gadget or user script but
no watch/unwatch link was found the function fails even if the
first parameter is a valid jQuery object as required by the
documentation. $link.attr(...) returns null and null.match(...)
fails.

A very simple example why this can happen is as follows:
mw.page.watch.updateWatchLink( $( '#ca-watch a' ), 'watch', 'loading' );
mw.page.watch.updateWatchLink( $( '#ca-watch a.loading' ), 'unwatch' );
(starts the spinning loading animation and tries to stop it
afterwards but may fail if something went wrong, e.g. the user
clicked the star).

The action parameter needs to be checked because it is used to
build an ID and a message key. Bad values turn the page in an
unrecoverable state (the watch link gets an empty action=, the
label turns into something <undefined> and no script can recover
that broken state since the ID turned into whatever). While such a
check is not necesarry in most cases it is here, because the
function is exposed.

Change-Id: I6ee9a7ee6b7c0fc7a5444674afd1ed6f8cacc858

10 years agoMerge "Allow setting default thumb size in parser tests"
jenkins-bot [Thu, 20 Mar 2014 17:58:56 +0000 (17:58 +0000)]
Merge "Allow setting default thumb size in parser tests"

10 years agoAllow setting default thumb size in parser tests
C. Scott Ananian [Wed, 19 Mar 2014 18:51:21 +0000 (14:51 -0400)]
Allow setting default thumb size in parser tests

The mediawiki default thumb size is 180px.  The Parsoid default thumb
size is 220px, to match the default thumb size for most WMF wikipedias
(see https://bugzilla.wikimedia.org/show_bug.cgi?id=43336).

This discrepancy leads to inconsistent image-related test output.
Allow a test to set an explicit default thumb size with the
'thumbsize' option so that it is possible to write consistent tests.

Change-Id: Ib764d1f1660a50caaf8f0ff245822d1d1a1d264e

10 years agoMerge "Update the documentation at the top of parserTests.txt"
jenkins-bot [Thu, 20 Mar 2014 17:39:59 +0000 (17:39 +0000)]
Merge "Update the documentation at the top of parserTests.txt"

10 years agoMerge "Fix wording of protect-cascadeon"
jenkins-bot [Thu, 20 Mar 2014 17:19:06 +0000 (17:19 +0000)]
Merge "Fix wording of protect-cascadeon"

10 years agoChange URLs to mediawiki.org in comments to HTTPS
Ladsgroup [Thu, 20 Mar 2014 15:45:01 +0000 (15:45 +0000)]
Change URLs to mediawiki.org in comments to HTTPS

These are only documentation fixes
http://www.mediawiki.org --> https://www.mediawiki.org

Change-Id: I62ad42be1a3aac410cc53e98ce79389ceddd8988

10 years agoFix wording of protect-cascadeon
Jackmcbarn [Thu, 20 Mar 2014 16:30:26 +0000 (12:30 -0400)]
Fix wording of protect-cascadeon

In some cases, users who are not capable of changing the protection level
will see the protect-cascadeon message. Update it to not imply that they
are able to change the protection level.

Change-Id: I102aea94f4b5ad29fa928e865d2f20ec7def4b30

10 years agoUpdate the installer to use JSON i18n
Siebrand Mazeland [Wed, 19 Mar 2014 18:34:06 +0000 (19:34 +0100)]
Update the installer to use JSON i18n

Change-Id: Iedcacbd26385c331cd78b92f7ec55a4ef9c015ef

10 years agoMerge "mediawiki.inspect: add method for grepping loaded modules"
jenkins-bot [Thu, 20 Mar 2014 06:11:08 +0000 (06:11 +0000)]
Merge "mediawiki.inspect: add method for grepping loaded modules"

10 years agoResourceLoaderStartUpModule: Improve comment about modifiedTime hack
Timo Tijhof [Thu, 20 Mar 2014 04:32:30 +0000 (05:32 +0100)]
ResourceLoaderStartUpModule: Improve comment about modifiedTime hack

* Re-ordering code to bring the modifiedTime hack and the
  loop it serves closer together.
* Separating the fact that it needs a value and the mtime of
  startup.js since that is just one of the three factors we use.
  This way it's clearer that the startup.js mtime is not just a
  bogus value, but not more or less important than wgCacheEpoch
  and modules mtime either.
* Remove duplicate '/* Methods */' comment, we already have this
  marker a few methods higher up.

Change-Id: Id3a07f02566c0f04b612b81f8353f70fa4ab3977

10 years agoResourceLoaderStartUpModule: Remove no-op "delete isCompatible"
Timo Tijhof [Thu, 20 Mar 2014 04:15:25 +0000 (05:15 +0100)]
ResourceLoaderStartUpModule: Remove no-op "delete isCompatible"

Due to the way this function being defined as a function or var
declaration instead of a function expression assigned to a property
it can't be deleted.

JavaScript doesn't throw an error when deletion is not permitted
though, the operator returns false instead.

> delete isCompatible;
  false

We already removed 'delete startUp' from mediawiki.js in favour
of startUp = undefined; (r107402, r74325).

Change-Id: I7aa02e3f4deb3a4f00177b70978bfcb83c80988a

10 years agomediawiki.inspect: add method for grepping loaded modules
Ori Livneh [Tue, 26 Nov 2013 22:30:28 +0000 (14:30 -0800)]
mediawiki.inspect: add method for grepping loaded modules

Example usage:

>>> mw.inspect.grep(':hover .settings-text')
["ext.uls.init"]
>>> mw.inspect.grep('options.expire')
["jquery.cookie", "mediawiki.user"]

Use cases:
* You're debugging a layout bug and want to trace a CSS rule to the module
  which inserts it.
* A JavaScript error contains a distinct and plausibly unique substring (such
  as a variable name), and you want to identify the module that is causing the
  error.

You can re-load the page with debug=1, but you still need to decipher load.php
URLs for non-file modules, and you might not be able to reproduce the issue in
debug mode. Alternately, you can grep a full clone of the production branch
that the wiki is running (assuming you have one handy), but that won't help you
if the module is a gadget.

Change-Id: Ie5f0e7d1c7022f8d399e895f157db8acefc8abee

10 years agoUpdate OOjs UI to v0.1.0-pre (0f50cdc46c)
James D. Forrester [Thu, 20 Mar 2014 00:39:16 +0000 (17:39 -0700)]
Update OOjs UI to v0.1.0-pre (0f50cdc46c)

New changes:
6c014fd Revert "Use super to call parent methods"

Change-Id: Iccbb2a1b86af8dc10568855eecb7d31e67b86756

10 years agoMerge "Update OOjs UI to v0.1.0-pre (53f2410336)"
jenkins-bot [Wed, 19 Mar 2014 22:59:30 +0000 (22:59 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (53f2410336)"

10 years agoMerge "Preferences.php: avoid "Undefined index" if key 'realname' don't exist in...
jenkins-bot [Wed, 19 Mar 2014 22:53:31 +0000 (22:53 +0000)]
Merge "Preferences.php: avoid "Undefined index" if key 'realname' don't exist in $formdata"

10 years agoUpdate OOjs UI to v0.1.0-pre (53f2410336)
James D. Forrester [Wed, 19 Mar 2014 22:51:21 +0000 (15:51 -0700)]
Update OOjs UI to v0.1.0-pre (53f2410336)

New changes:
16a7989 Localisation updates from https://translatewiki.net.
c5339e7 Localisation updates from https://translatewiki.net.
48b5403 Fix documentation of toolFactory
6fc6d7b Use super to call parent constructor
b81b5f1 demo: Add ToggleSwitchWidget (disabled, checked)
a72a6e3 Use super to call parent methods
53f2410 Localisation updates from https://translatewiki.net.

Change-Id: I4aeb49dc9a139936c48f1cd790da9f39dc39c1c6

10 years agoAdd link to PD help translatable pages from sidebar
Federico Leva [Sat, 7 Sep 2013 08:09:56 +0000 (10:09 +0200)]
Add link to PD help translatable pages from sidebar

Reuses the existing helppage default message and
adds it to ignored messages as Special:MyLanguage
is used and translations have to be removed:
this does not bother customised local links.

Now using HTTPS URL to mediawiki.org per Brion
on bug 54835. This slightly increases the footprint
of the change but should keep everything functionally
equivalent. The sidebar is not bothered by full URLs,
except in self-defeating tests which are also fixed here.

Bug: 53887
Change-Id: I999b97729536dbab4a3a5efd8d6f86527f031948

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 19 Mar 2014 20:44:32 +0000 (20:44 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: If3a8ff71e98aab98c39991147c715ec388ef91aa

10 years agoRemove completely useless implementation of getInfo()
Chad Horohoe [Wed, 19 Mar 2014 16:35:23 +0000 (09:35 -0700)]
Remove completely useless implementation of getInfo()

Embedding random strings in Special:Search's comments doesn't
help debugging and just increases page size.

Bug: 62768
Change-Id: I51270aa3f2cba921841e2d8ebbd4fa665542f8a9

10 years agoBreak up SearchEngine.php into a couple of other files
Chad Horohoe [Wed, 19 Mar 2014 16:19:46 +0000 (09:19 -0700)]
Break up SearchEngine.php into a couple of other files

Change-Id: I753eec1d0cf78f2ea08897c7fd3b83f2c88be18d

10 years agoMerge "Use square brackets instead of curly braces for char of a string"
jenkins-bot [Wed, 19 Mar 2014 19:43:51 +0000 (19:43 +0000)]
Merge "Use square brackets instead of curly braces for char of a string"

10 years agoRemove bogus entry
Siebrand Mazeland [Wed, 19 Mar 2014 19:20:42 +0000 (20:20 +0100)]
Remove bogus entry

Change-Id: I7955931c054e3970cd7bfc1e0df275d9d4bf1880

10 years agoUse square brackets instead of curly braces for char of a string
umherirrender [Wed, 19 Mar 2014 19:13:19 +0000 (20:13 +0100)]
Use square brackets instead of curly braces for char of a string

The use of curly braces is deprecated in php 4.0, so changing it to
square brackets

Change-Id: Ia820cea34d2bd92fe1c3bc8fd773942a425ec90a

10 years agoUpdate the documentation at the top of parserTests.txt
C. Scott Ananian [Wed, 19 Mar 2014 18:48:54 +0000 (14:48 -0400)]
Update the documentation at the top of parserTests.txt

The meaning of the php/parsoid options changed slightly with
change Ie4e68960ca7c352af495ebb59ba83488935a44c4.  Update the
documentation comment at the top of the parser test file to match.

Change-Id: If0caac128704a15b824ccbcfbfb3f49812510f1d

10 years agoGet rid of Internet Explorer for Mac fixes in Monobook's main.css.
Jack Phoenix [Tue, 18 Mar 2014 23:47:10 +0000 (01:47 +0200)]
Get rid of Internet Explorer for Mac fixes in Monobook's main.css.

Wikipedia says that IEMac's initial release was 17 years ago and final
release 10 years ago.

IEMacFixes.css, which was basically unmaintained after r2909 (which was
done to ensure HTML validation compliance), was deleted in r61787.

Moved some rules which apparently still apply to IE6 to IE6Fixes.css, as
per code review.

These fixes were originally added in the following revisions (incomplete
list):
* r2909
* r3165
* r3181
* r3658
* r3765

Change-Id: I2352be07964060bc5ed7b3bd82007755b3168654

10 years agoshared.css: Canonicalize and simplify background image rules
Bartosz Dziewoński [Wed, 19 Mar 2014 11:34:27 +0000 (12:34 +0100)]
shared.css: Canonicalize and simplify background image rules

* Use the same form as in the LESS mixin:
  * Don't embed the PNG version
  * Do embed the SVG version
  * Use the -webkit- form too
* Add a descriptive comment
* Don't use quotes inside url() syntax

Change-Id: I044a04a321f0dbba7687c2ce1681028ed5cf0ea4

10 years agoMake use of strong consistency with Ceph RGW
Aaron Schulz [Tue, 18 Mar 2014 06:47:53 +0000 (23:47 -0700)]
Make use of strong consistency with Ceph RGW

Change-Id: Ic3b764363e91c3279d3dc017ddce630dae26bec5

10 years agoMerge "Fix path after file got moved"
jenkins-bot [Wed, 19 Mar 2014 13:52:06 +0000 (13:52 +0000)]
Merge "Fix path after file got moved"

10 years agoFix path after file got moved
jeroendedauw [Wed, 19 Mar 2014 13:44:29 +0000 (14:44 +0100)]
Fix path after file got moved

Change-Id: I947b9f6c9b42a2d0e0061f92c5bedf6d2ecfba4d

10 years agoMerge "Link to existing login help page by default from helplogin-url"
jenkins-bot [Wed, 19 Mar 2014 10:48:19 +0000 (10:48 +0000)]
Merge "Link to existing login help page by default from helplogin-url"

10 years agoUnify coding style of jQuery( '<element>' ) calls
Thiemo Mättig [Wed, 19 Mar 2014 10:20:36 +0000 (11:20 +0100)]
Unify coding style of jQuery( '<element>' ) calls

According to jQuery and our MediaWiki style guide all kinds of
$( '<element>' )
$( '<element/>' )
$( '<element />' )
$( '<element></element>' )
are identical. So yes, all this patch does is removing characters
that are ignored anyway. Using the same style everywhere makes the
code easier to read and understand and may save a few bytes when it
is gzipped.

The current core/resources/ folder contains 148 jQuery calls of
that kind. Only this file (plus some jQuery plugins I don't want to
touch) do not use the most simple <element> style.

Plus:
* Added some line breaks.
* Fixed broken inline documentation.

Change-Id: I080716f21f2ab95164a9ca241a4ce4fc351e0b55

10 years agoMerge "Allow login with passwords not meeting complexity requirements"
jenkins-bot [Wed, 19 Mar 2014 02:11:39 +0000 (02:11 +0000)]
Merge "Allow login with passwords not meeting complexity requirements"

10 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 18 Mar 2014 23:21:44 +0000 (23:21 +0000)]
Merge "Sync up with Parsoid parserTests."

10 years agoAvoid header notice log spam from RunJobs API
Aaron Schulz [Wed, 12 Mar 2014 19:19:27 +0000 (12:19 -0700)]
Avoid header notice log spam from RunJobs API

* Moved ApiRunJobs to a special page instead of going through
  ApiMain and having to fight the logic there. As a separate
  internal API, this does not show up on the API help page and
  is no longer effected by $wgEnableAPI.

bug: 62233
Change-Id: I1db6f526d02e130a66ee03289858a734d89e6c00

10 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Tue, 18 Mar 2014 21:58:45 +0000 (17:58 -0400)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 52b4e410acae520c1ecaed76efe062945b123187

Change-Id: I36ad89667817a94720fc0674cb39a5802d2c026c

10 years agoMerge "Added a __sleep() method to ParserOutput to exclude cruft"
jenkins-bot [Tue, 18 Mar 2014 21:07:39 +0000 (21:07 +0000)]
Merge "Added a __sleep() method to ParserOutput to exclude cruft"

10 years agoAllow login with passwords not meeting complexity requirements
csteipp [Sat, 8 Mar 2014 01:14:24 +0000 (17:14 -0800)]
Allow login with passwords not meeting complexity requirements

As part of https://www.mediawiki.org/wiki/Requests_for_comment/Passwords

This patch:
* Allows users to login with a password that does not meet the
  requirements of User::isValidPassword(), including the minimum password
  length.
* Adds a configuration flag that specifies if users should be sent to
  the change password form when they login with a password that doesn't
  meet the requirements of User::isValidPassword().

To test the UX as it will be on WMF wikis, set
$wgMinimalPasswordLength=6 in your LocalSettings.php.

Change-Id: Ib7b72005fea1c69073c0a33a68c0a0df0d6528d2

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 18 Mar 2014 20:38:58 +0000 (20:38 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Id6221ab7d0d906278a9163513ca63b74c9d41645

10 years agoAdded a __sleep() method to ParserOutput to exclude cruft
Aaron Schulz [Tue, 18 Mar 2014 20:20:09 +0000 (13:20 -0700)]
Added a __sleep() method to ParserOutput to exclude cruft

Change-Id: I1a3c45288bf8b29c27277a3e70362ddc36713538

10 years agoMerge "Call ignore_user_abort() right before committing to the DB"
jenkins-bot [Tue, 18 Mar 2014 19:51:54 +0000 (19:51 +0000)]
Merge "Call ignore_user_abort() right before committing to the DB"

10 years agoMerge "Fix Status::getMessage accidentially returning string instead of Message"
jenkins-bot [Tue, 18 Mar 2014 19:16:37 +0000 (19:16 +0000)]
Merge "Fix Status::getMessage accidentially returning string instead of Message"

10 years agoParser tests: Make Foobar.svg consistent.
C. Scott Ananian [Tue, 18 Mar 2014 17:00:11 +0000 (13:00 -0400)]
Parser tests: Make Foobar.svg consistent.

The parserTest.inc file created metadata saying that Foobar.svg was
240x180px, but created an empty SVG file; the DEFAULT_WIDTH and
DEFAULT_HEIGHT in includes/media/SVGMetadataExtractor.php would have
caused this to be treated as a 512x512px image.

In NewParserTest.php, a 200x200px image was created for Foobar.svg.

That caused inconsistent and confusing results for SVG-related parser
tests, depending on which of the testing frameworks you used.

Fixed both of these to use a consistent 240x180px image, since
non-square images are better for checking correct scaling.
(Parsoid has always used a 240x180px size for Foobar.svg).
The non-square image has caused three parser test results to
slightly change.

Change-Id: Ib60a7412d9be808a0995e94d3aa373f2c5ca9bad

10 years agoMerge "Moved ProcessCacheLRU to /libs"
jenkins-bot [Tue, 18 Mar 2014 17:22:34 +0000 (17:22 +0000)]
Merge "Moved ProcessCacheLRU to /libs"

10 years agoMerge "Put SiteList navigation ids into cache"
jenkins-bot [Tue, 18 Mar 2014 15:51:25 +0000 (15:51 +0000)]
Merge "Put SiteList navigation ids into cache"

10 years agoMerge "Moved $wgQueryPages stuff out of the global scope and into a function"
jenkins-bot [Tue, 18 Mar 2014 15:42:47 +0000 (15:42 +0000)]
Merge "Moved $wgQueryPages stuff out of the global scope and into a function"

10 years agoMoved $wgQueryPages stuff out of the global scope and into a function
Chad Horohoe [Tue, 4 Feb 2014 19:50:11 +0000 (11:50 -0800)]
Moved $wgQueryPages stuff out of the global scope and into a function

Change-Id: Ica034bdad89133bfce0b4238d62ed00865936644

10 years agoInprove the exception message in JobSpecification::validateParams
Marius Hoch [Tue, 18 Mar 2014 15:34:31 +0000 (16:34 +0100)]
Inprove the exception message in JobSpecification::validateParams

Change-Id: Ifcaa5e89e6b5dd4d89ca26203400082bff6fd85a

10 years agoPut SiteList navigation ids into cache
aude [Mon, 17 Mar 2014 21:48:27 +0000 (22:48 +0100)]
Put SiteList navigation ids into cache

These are ids used by extension(s) such as Wikibase
to add language links in the sidebar.

Bug: 62754
Change-Id: Ie21fc3ea500bd7de3c01a9d8ec05373f016f339a

10 years agoAdd user friendlier display text to links
Siebrand Mazeland [Tue, 18 Mar 2014 13:26:57 +0000 (14:26 +0100)]
Add user friendlier display text to links

Follow-up to 782afa6ef01940.

Change-Id: Ib6236fc453e8fbc68ae2f3dab2ddba4727a6051c

10 years agoMerge "Method to identify if a ChangesList is watchlist or normal"
jenkins-bot [Tue, 18 Mar 2014 13:08:59 +0000 (13:08 +0000)]
Merge "Method to identify if a ChangesList is watchlist or normal"

10 years agoMerge "Send the full title to the 'nogomatch' debug log group"
jenkins-bot [Tue, 18 Mar 2014 11:40:21 +0000 (11:40 +0000)]
Merge "Send the full title to the 'nogomatch' debug log group"

10 years agoMerge "Don't use isset() to check whether an existing variable is null"
jenkins-bot [Tue, 18 Mar 2014 11:39:20 +0000 (11:39 +0000)]
Merge "Don't use isset() to check whether an existing variable is null"

10 years agoMerge "Only put returnto parameter if needed on the from-http redirect in Special...
jenkins-bot [Tue, 18 Mar 2014 11:25:50 +0000 (11:25 +0000)]
Merge "Only put returnto parameter if needed on the from-http redirect in Special:Userlogin"

10 years agoFix profiling error in LocalisationCache::readJSONFile()
Alexandre Emsenhuber [Tue, 18 Mar 2014 08:41:45 +0000 (09:41 +0100)]
Fix profiling error in LocalisationCache::readJSONFile()

Follow-up I8d137e15e1 (6380e81).

Also added more blank lines for better readability.

Change-Id: Iae7921b017f81d5512e71384d7999502154c034c

10 years agoMerge "Change date and decimal separators for Uzbek (uz)"
jenkins-bot [Tue, 18 Mar 2014 07:48:28 +0000 (07:48 +0000)]
Merge "Change date and decimal separators for Uzbek (uz)"

10 years agoChange date and decimal separators for Uzbek (uz)
madurangasiriwardena [Thu, 13 Mar 2014 18:12:38 +0000 (23:42 +0530)]
Change date and decimal separators for Uzbek (uz)

Change the date format dd mm to dd-mm and adding space instead
of commas for 3-digit grouping, decimal comma instead of
decimal point.

Bug: 46453
Change-Id: I1318b18f10a1b048c3574013a52775d5309f8abc

10 years agoLink to existing login help page by default from helplogin-url
Federico Leva [Sat, 7 Sep 2013 07:38:06 +0000 (09:38 +0200)]
Link to existing login help page by default from helplogin-url

Detailed rationale discussed on bugzilla, bug 53888 and parent,
where consensus on the design was gained.

Using https link per Brion et al. in comments and bug 54835,
with new keys for the messages in order to avoid any conflict
with existing messages. (The translations of the removed messages
will be automatically removed by localisation updates.)

https://www.mediawiki.org/wiki/Help:Logging_in was improved by Lloffiwr
and now also marked for translation. The link is ready for future
translations thanks to the use of the standard Special:MyLanguage, hence
the message is made ignored to allow customisations only locally.

Bug: 53888
Change-Id: I8cefafbcd3bd1d6a03cec7cf1d0efdf607fec21d

10 years agoMerge "Refactor password validity checking"
jenkins-bot [Mon, 17 Mar 2014 23:38:01 +0000 (23:38 +0000)]
Merge "Refactor password validity checking"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 17 Mar 2014 21:11:15 +0000 (21:11 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I91e14444039b2b1345602a8c3291794ab3beafd1

10 years agoFix Status::getMessage accidentially returning string instead of Message
Thiemo Mättig [Thu, 6 Mar 2014 20:16:27 +0000 (21:16 +0100)]
Fix Status::getMessage accidentially returning string instead of Message

This mistake was introduced in commit
92e284d3fa62f45e20fed34c4359c575481d583c and the reason for the two
disabled tests. I did not enabled the second test because of an
unrelated problem. The first enabled test already covers the fix.

The method should return Message objects only but did return a
string in that special case (multiple warnings set but no context
message key).

Unfortunatelly Status::getMessage does have many, many more
problems but I understand it's not a good idea to address them all
in a single confusing patch.

Change-Id: I0dc37e248f407019d5921aaaca3eabba338b0fd3

10 years agoMerge "Cleanup a bunch of tests and add todos"
jenkins-bot [Mon, 17 Mar 2014 09:34:02 +0000 (09:34 +0000)]
Merge "Cleanup a bunch of tests and add todos"

10 years agoMoved ProcessCacheLRU to /libs
Aaron Schulz [Sun, 16 Mar 2014 19:28:18 +0000 (12:28 -0700)]
Moved ProcessCacheLRU to /libs

Change-Id: I7052d04d9847f0310c1e62bd66365c813fddeab5

10 years agoMerge "mediawiki.api: Use Promise.then instead of manual Deferred wrap"
jenkins-bot [Sun, 16 Mar 2014 21:51:01 +0000 (21:51 +0000)]
Merge "mediawiki.api: Use Promise.then instead of manual Deferred wrap"

10 years agomediawiki.api: Use Promise.then instead of manual Deferred wrap
Timo Tijhof [Wed, 5 Mar 2014 13:25:29 +0000 (14:25 +0100)]
mediawiki.api: Use Promise.then instead of manual Deferred wrap

This is exactly what Promise.then is built for.

As a nice bonus, this way the fail/reject handler is transferred
automatically, and we don't need to call resolve() manually
since the return value from then(Function done) is the resolved
value (or another promise).

Minor clean up:

* category: Fix type documentation (primitive string instead of String object).
* category: Use simple boolean check to assert value is no longer false.
* Use String() cast instead of explicitly calling .toString.
* parse: Fix bug where in theory the deferred would never be resolved if
   the condition evaluated to false.
* watch: Add missing @static.
* watch: Simplify params/$.extend logic.

Change-Id: Iedbc70b2573c4f6b0d9e133c6f31e8f0b19c6f5e

10 years agoMerge "New 'profileerror' log group for profiling errors"
jenkins-bot [Sun, 16 Mar 2014 21:03:19 +0000 (21:03 +0000)]
Merge "New 'profileerror' log group for profiling errors"

10 years agoMerge "Move variable definitions near to where they are used"
jenkins-bot [Sun, 16 Mar 2014 17:54:39 +0000 (17:54 +0000)]
Merge "Move variable definitions near to where they are used"

10 years agoMerge "Renamed /job to /jobqueue"
jenkins-bot [Sun, 16 Mar 2014 11:41:29 +0000 (11:41 +0000)]
Merge "Renamed /job to /jobqueue"

10 years agoOnly put returnto parameter if needed on the from-http redirect in Special:Userlogin
Alexandre Emsenhuber [Fri, 22 Nov 2013 19:36:17 +0000 (20:36 +0100)]
Only put returnto parameter if needed on the from-http redirect in Special:Userlogin

The default value of the $mReturnTo and $mReturnToQuery member variables is '',
even if they were not passed. This means that they would always be present
in the redirected URL when accessing Special:Userlogin from HTTP and HTTPS
is available.

Now the special case '' is changed to null so that they don't appear anymore
if not needed.

Change-Id: I49a085feaa49d4b2954ff280db241234d2d46258

10 years agoRename some local vars to start with a lowercase letter
umherirrender [Sat, 15 Mar 2014 11:32:44 +0000 (12:32 +0100)]
Rename some local vars to start with a lowercase letter

Change-Id: I6e5975ed7351c1439eda19afaba5120c6afa50f1

10 years agoFix spacing between two functions
umherirrender [Sat, 15 Mar 2014 19:57:00 +0000 (20:57 +0100)]
Fix spacing between two functions

Added and removed some new lines to have one new line between two
functions

Change-Id: I1ccfbd575dd26b160396ef3d3e2e079f5cdbe196

10 years agoFix formatting of some php docs
umherirrender [Sat, 15 Mar 2014 20:13:54 +0000 (21:13 +0100)]
Fix formatting of some php docs

php docs of functions should have newline in it and not in one line.

Change-Id: If4a29aefb46a7f73d75593814e597fdb792d5470

10 years agoNew 'profileerror' log group for profiling errors
Alexandre Emsenhuber [Sat, 15 Mar 2014 20:43:39 +0000 (21:43 +0100)]
New 'profileerror' log group for profiling errors

Easier to catch them than if they are in the default debug log.

Added Profiler::debugGroup() as wrapper to wfDebugLog(), as
there already is Profiler::debug() for wfDebug(), so that
there won't be a fatal error if the error happens before the
inclusion of GlobalFunctions.php and converted other calls
to wfDebugLog() to use it.

Change-Id: Ie8481a2e13a94efa0248dd5a36b6b1a22811817e

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 15 Mar 2014 20:07:15 +0000 (20:07 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: If66ddc1478b986417b08bd6d84cf441ea7f4526c

10 years agoMerge "Reapplying r45820 to support the NewSignupPage extension."
jenkins-bot [Sat, 15 Mar 2014 18:48:34 +0000 (18:48 +0000)]
Merge "Reapplying r45820 to support the NewSignupPage extension."

10 years agoMerge "Use "elseif" instead of "else if" in PHP"
jenkins-bot [Sat, 15 Mar 2014 13:42:31 +0000 (13:42 +0000)]
Merge "Use "elseif" instead of "else if" in PHP"

10 years agoMerge "Put the "else" (or "elseif") on the same line as the previous closing brace"
jenkins-bot [Sat, 15 Mar 2014 13:42:15 +0000 (13:42 +0000)]
Merge "Put the "else" (or "elseif") on the same line as the previous closing brace"

10 years agoMove variable definitions near to where they are used
Alexandre Emsenhuber [Sat, 15 Mar 2014 13:34:52 +0000 (14:34 +0100)]
Move variable definitions near to where they are used

In LoadBalancer::reuseConnection(), if the condition
"$serverIndex === null || $refCount === null" is met,
then those variables will not be used. So only define
them when they will readlly be used.

Change-Id: Ifbd4131f40d3babe733b8723d0d29d39890bb309