lhc/web/wiklou.git
10 years agoMerge "Clarify userrights-conflict"
jenkins-bot [Sat, 10 Aug 2013 12:37:00 +0000 (12:37 +0000)]
Merge "Clarify userrights-conflict"

10 years agoMerge "Make two info action row headers plural-compatible and consistent"
jenkins-bot [Sat, 10 Aug 2013 12:34:16 +0000 (12:34 +0000)]
Merge "Make two info action row headers plural-compatible and consistent"

10 years agoMerge "Make logout text simpler and more general"
jenkins-bot [Sat, 10 Aug 2013 12:31:59 +0000 (12:31 +0000)]
Merge "Make logout text simpler and more general"

10 years agoMerge "Clarify info action's "search engine status""
jenkins-bot [Sat, 10 Aug 2013 12:27:50 +0000 (12:27 +0000)]
Merge "Clarify info action's "search engine status""

10 years agoMerge "Remove positional reference from createaccountmail"
jenkins-bot [Sat, 10 Aug 2013 12:26:26 +0000 (12:26 +0000)]
Merge "Remove positional reference from createaccountmail"

10 years agoMerge "Just use "You" in userrights-notallowed"
jenkins-bot [Sat, 10 Aug 2013 12:24:28 +0000 (12:24 +0000)]
Merge "Just use "You" in userrights-notallowed"

10 years agoJust use "You" in userrights-notallowed
Nemo bis [Sat, 10 Aug 2013 12:00:21 +0000 (14:00 +0200)]
Just use "You" in userrights-notallowed

Unnecessary complexity; inconsistent with messages using "you"
just around this one.

Change-Id: I18016bfca6f03dd484db749f6a9045c5876b779b

10 years agotypo fixed: User::getIntOption returns an integer, not a boolean
Wikinaut [Sat, 10 Aug 2013 11:48:37 +0000 (13:48 +0200)]
typo fixed: User::getIntOption returns an integer, not a boolean

Change-Id: Ied47f53ccf567ae8fcd047481d46d28c9960b549

10 years agoRemove positional reference from createaccountmail
Nemo bis [Sat, 10 Aug 2013 11:37:53 +0000 (13:37 +0200)]
Remove positional reference from createaccountmail

<https://www.mediawiki.org/wiki/Localisation#Avoid_references_to_screen_layout_and_positions>

Change-Id: I1a930fd402b5de020b7ad509e74a0f35638ba7f8

10 years agoMerge "Reusable external store insertion with fallback"
jenkins-bot [Sat, 10 Aug 2013 04:52:12 +0000 (04:52 +0000)]
Merge "Reusable external store insertion with fallback"

10 years agoClean up comment style in DefaultSettings.php
umherirrender [Tue, 30 Jul 2013 07:36:33 +0000 (09:36 +0200)]
Clean up comment style in DefaultSettings.php

Add some line breaks and break long lines

Change-Id: I915c4c1c3b0f4d5c26fe3e1320fcfdaa70a27e64

10 years agoMerge "More rigorous clearing of image redirect cache"
jenkins-bot [Fri, 9 Aug 2013 21:29:27 +0000 (21:29 +0000)]
Merge "More rigorous clearing of image redirect cache"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 9 Aug 2013 19:10:54 +0000 (19:10 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0bfaa4425628474b81f31b7ab3dcce28779998de

10 years agoClarify info action's "search engine status"
Nemo bis [Fri, 9 Aug 2013 18:31:06 +0000 (20:31 +0200)]
Clarify info action's "search engine status"

We are using the word "indexing" anyway and I doubt the concept
of internal vs. external search engine is any more complex than
the concept of "robot" which also relates to robots.txt.
"Allowed" or "disallowed" also seems appropriate, as it describes
the permission without speaking of actual impossibility, though
some describe it as "preventing" indexing.

Examples:
http://www.robotstxt.org/meta.html
https://en.wikipedia.org/wiki/Noindex
https://support.google.com/webmasters/answer/93710?hl=en
http://googlewebmastercentral.blogspot.fi/2007/03/using-robots-meta-tag.html
https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
http://www.w3.org/TR/html401/appendix/notes.html#h-B.4.1.2

Bug: 43935
Change-Id: I856767f9e4951b165b589a553dd84e35fc55822e

10 years agoMerge "Accessibility: make columnheader the primary role of the element"
jenkins-bot [Fri, 9 Aug 2013 18:13:43 +0000 (18:13 +0000)]
Merge "Accessibility: make columnheader the primary role of the element"

10 years agoMerge "Accessibility: Don't arbitrarily override role"
jenkins-bot [Fri, 9 Aug 2013 18:10:17 +0000 (18:10 +0000)]
Merge "Accessibility: Don't arbitrarily override role"

10 years agoMake logout text simpler and more general
Nemo bis [Fri, 9 Aug 2013 11:39:28 +0000 (13:39 +0200)]
Make logout text simpler and more general

By removing one sentence that is not true on private wikis.
Per Siebrand on previous patch, better simplify the logout
interface than make it heavier.

Bug: 33439
Change-Id: I1f02d4ba6981b34aa2ff16a0c6632e0b58b23bb4

10 years agoMake two info action row headers plural-compatible and consistent
Nemo bis [Fri, 9 Aug 2013 09:37:50 +0000 (11:37 +0200)]
Make two info action row headers plural-compatible and consistent

Plural support was asked, but as it is a table it makes more sense
to just align them to the "Number of X" style of the other rows.

Bug: 48634
Change-Id: I32a760e59a3c86b5baa6096e0a28e8b4681f4a3f

10 years agoAttempt to remove a hard-coded "wikipedia".
Liangent [Sat, 1 Jun 2013 15:52:26 +0000 (15:52 +0000)]
Attempt to remove a hard-coded "wikipedia".

Change-Id: I3c1567929eaa11a6ca0f3e8d7fe73653375b595b

10 years agoPreprocessor: Don't treat a line containing multiple comments as a blank line.
C. Scott Ananian [Wed, 7 Aug 2013 00:21:00 +0000 (20:21 -0400)]
Preprocessor: Don't treat a line containing multiple comments as a blank line.

After this patch, 'a', 'b', and 'c' are all treated as members of the
same list in the following wikitext:

*a
 <!--x-->
*b
 <!--x--> <!--y-->
*c

The old comment-removal rule was "trim a comment which is both
preceded and followed by a newline (ignoring spaces)".  This only works
if there is a single comment on the line, and was often surprising
to users.  The new rule allows any number of whitespace-separated
comments on the line.

Bug: 41756
Change-Id: I6030086226e1eeece59643c29dbb4361668b4bd6

10 years agoMerge "Never prefix table names with $wgSharedDB when used in foreign DB"
jenkins-bot [Fri, 9 Aug 2013 00:19:48 +0000 (00:19 +0000)]
Merge "Never prefix table names with $wgSharedDB when used in foreign DB"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 8 Aug 2013 19:45:39 +0000 (19:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib69b81ccaa674d51ac92640e6adbb7214ba1cff9

10 years agoMerge "Revert "Pedantic tweak to README""
jenkins-bot [Thu, 8 Aug 2013 19:18:54 +0000 (19:18 +0000)]
Merge "Revert "Pedantic tweak to README""

10 years agoReusable external store insertion with fallback
Erik Bernhardson [Tue, 6 Aug 2013 21:55:29 +0000 (14:55 -0700)]
Reusable external store insertion with fallback

Minor refactor allows insertion to ES from an alternate set of backend servers.

Change-Id: I72cf2514265e052b839e0ac31c171e91727fb9af

10 years agoMerge "Have separate timeouts for upload by url ($wgCopyUpload[Async]Timeout)"
jenkins-bot [Thu, 8 Aug 2013 17:05:47 +0000 (17:05 +0000)]
Merge "Have separate timeouts for upload by url ($wgCopyUpload[Async]Timeout)"

10 years agoMerge "Add more parser tests for magic words."
jenkins-bot [Thu, 8 Aug 2013 16:56:31 +0000 (16:56 +0000)]
Merge "Add more parser tests for magic words."

10 years agoApply conversion on namespace names on Special:Search
Liangent [Thu, 14 Mar 2013 15:26:29 +0000 (23:26 +0800)]
Apply conversion on namespace names on Special:Search

Change-Id: I2dc8d1a28dd6b273a63dc6e5a06d3c18c720b3f7

10 years agoAdd more parser tests for magic words.
umherirrender [Thu, 8 Aug 2013 08:09:06 +0000 (10:09 +0200)]
Add more parser tests for magic words.

Change-Id: I79023a1585f92be6c0cea13a462ae091a60838d3

10 years agoMerge "(bug 46463) Mark edit preview as in page view language"
jenkins-bot [Thu, 8 Aug 2013 07:16:04 +0000 (07:16 +0000)]
Merge "(bug 46463) Mark edit preview as in page view language"

10 years agoMerge "Add wfResetSessionID()"
jenkins-bot [Wed, 7 Aug 2013 23:24:36 +0000 (23:24 +0000)]
Merge "Add wfResetSessionID()"

10 years agoMerge "Improve WebResponse::setcookie"
jenkins-bot [Wed, 7 Aug 2013 23:21:40 +0000 (23:21 +0000)]
Merge "Improve WebResponse::setcookie"

10 years agoAdd wfResetSessionID()
Brad Jorsch [Wed, 7 Aug 2013 16:21:22 +0000 (12:21 -0400)]
Add wfResetSessionID()

The code for changing the session id cookie from Special:Userlogin is
also needed in CentralAuth. So let's factor it out to avoid code
duplication.

Change-Id: I777f76ee8e2b953a1e972327bedc28e0ab1acf0d

10 years agoImprove WebResponse::setcookie
Brad Jorsch [Tue, 6 Aug 2013 20:04:15 +0000 (16:04 -0400)]
Improve WebResponse::setcookie

Various bits of code are not using this because it doesn't support
various use cases, e.g. session cookies, httpOnly, custom paths, etc.

Refactor it to add all those options. Also add a hook so extensions can
override the setting of the cookie.

Change-Id: Ia0c424a48d9455a8574d91631cde0f00c9882288

10 years agoMerge "Make revision content decompression publicly available"
jenkins-bot [Wed, 7 Aug 2013 21:00:02 +0000 (21:00 +0000)]
Merge "Make revision content decompression publicly available"

10 years agoMore rigorous clearing of image redirect cache
Brian Wolff [Wed, 7 Aug 2013 20:26:52 +0000 (17:26 -0300)]
More rigorous clearing of image redirect cache

Instead of deleting the cache key, set a temporary
value, so that the key stays "deleted" long enough
so that replag won't cause the key to be repopulated with
an incorrect value from a slave db.

Bug: 52200
Change-Id: I0941c93b76fb0aa8eedb883a3ed1167c6e14d0c0

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 7 Aug 2013 19:34:09 +0000 (19:34 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I479c11deb744b7c44a5a814985166dcbd60ea261

10 years agoHave separate timeouts for upload by url ($wgCopyUpload[Async]Timeout)
Brian Wolff [Thu, 6 Jun 2013 03:55:18 +0000 (00:55 -0300)]
Have separate timeouts for upload by url ($wgCopyUpload[Async]Timeout)

Add $wgCopyUploadTimeout and $wgCopyUploadAsyncTimeout to control
the timeout for the http request used to fetch the file during upload
by url. People reasonably may want to make this higher than $wgHTTPTimeout
for the case where very large files are being downloaded.

Also add the ability for callers of UploadFromUrl::fetchFile
to override the timeout as they please (and set any other HTTP opts).

This patch was inspired by conversation with dan-nl about gwtoolset.

Change-Id: Ia85a97434c14adcdaafc0802cbe0530bfa57a435

10 years agoMake revision content decompression publicly available
Matthias Mullie [Wed, 7 Aug 2013 16:14:18 +0000 (18:14 +0200)]
Make revision content decompression publicly available

compressRevisionText() is already publicly available, but the decompression was
not. For others using compressRevisionText(), the only way to decompress was to
duplicate the gzinflate code.

Change-Id: I61cd87acb52a482ba88f7c9d3826ecee66c89911

10 years agoMerge "thumb_handler.php doesn't seem to extract path_info correctly"
jenkins-bot [Wed, 7 Aug 2013 18:00:40 +0000 (18:00 +0000)]
Merge "thumb_handler.php doesn't seem to extract path_info correctly"

10 years agoAccessibility: make columnheader the primary role of the element
Derk-Jan Hartman [Wed, 7 Aug 2013 15:22:59 +0000 (17:22 +0200)]
Accessibility: make columnheader the primary role of the element

The role attribute overrides implicit roles. Since here the
columnheader role of the th is more important than the secondary role
of being a button, we should force it explicitly in that order.

Follow up of: I2b937eba605b7e6a98612a02c75eb9e7f3477527

Change-Id: I07211263876a58c62e5a349eab6f78e43d412680

10 years agoAccessibility: Don't arbitrarily override role
Derk-Jan Hartman [Wed, 7 Aug 2013 15:29:18 +0000 (17:29 +0200)]
Accessibility: Don't arbitrarily override role

Role overrides implicit role of an element. Since here we don't know
the original element type that we are overriding, we shouldn't just
set the role. It might break th, li etc items.

In the long term, we should add a jquery.accessibility lib that can
take into account things like this, without having to write a ton of
code.

Bug: 17616
Change-Id: Ie27df93acbc778396ad54abc5bde9abb3268a86d
Follow-up: If59590de159a2756bf5b859ce48a23e1af7650fa

10 years agoMerge "Whitelist the <wbr> element."
jenkins-bot [Wed, 7 Aug 2013 14:38:32 +0000 (14:38 +0000)]
Merge "Whitelist the <wbr> element."

10 years agoMerge "Make line breaks in <blockquote> behave like <div> (bug 6200)."
jenkins-bot [Tue, 6 Aug 2013 19:55:26 +0000 (19:55 +0000)]
Merge "Make line breaks in <blockquote> behave like <div> (bug 6200)."

10 years agoMake line breaks in <blockquote> behave like <div> (bug 6200).
C. Scott Ananian [Tue, 6 Aug 2013 19:22:18 +0000 (15:22 -0400)]
Make line breaks in <blockquote> behave like <div> (bug 6200).

This is an old, old bug: the earliest filed dup is bug 1857, on 2005-04-10.
However, it was not too hard to fix.

See bug 51086 for a modern discussion.  With this patch the PHP parser
matches the Parsoid output.

This also fixes (or works around) bug 15491, which is really a bug in tidy.
But because <blockquote> content is typically wrapped with <p> tags now,
we don't trigger the tidy bug (see
https://bugzilla.wikimedia.org/show_bug.cgi?id=15491#c7 for details).

Credit to Aryeh Gregor (https://bugzilla.wikimedia.org/show_bug.cgi?id=6200#c8)
and Vitaliy Filippov (https://bugzilla.wikimedia.org/show_bug.cgi?id=6200#c37)
for almost-correct patches for this bug, which saved me a bunch of effort.

Bug: 6200
Bug: 15491
Change-Id: Iecab69460c6aac36acfe2d9440dc5d3590de8b57

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 6 Aug 2013 19:29:03 +0000 (19:29 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I214a58c78fb3f63785ff117156746f862bc0f317

10 years agoMerge "Force lazy loading of text in Revision::getSerializedData()"
jenkins-bot [Tue, 6 Aug 2013 18:13:02 +0000 (18:13 +0000)]
Merge "Force lazy loading of text in Revision::getSerializedData()"

10 years agoForce lazy loading of text in Revision::getSerializedData()
Petr Onderka [Tue, 6 Aug 2013 14:03:16 +0000 (16:03 +0200)]
Force lazy loading of text in Revision::getSerializedData()

Change-Id: Ic47fd482523e0a2c705c24e93525959eca52409a

10 years agoMerge "Update outdated references to maintenance/ in documentation comments."
jenkins-bot [Tue, 6 Aug 2013 16:11:39 +0000 (16:11 +0000)]
Merge "Update outdated references to maintenance/ in documentation comments."

10 years agoUpdate outdated references to maintenance/ in documentation comments.
C. Scott Ananian [Tue, 6 Aug 2013 15:53:27 +0000 (11:53 -0400)]
Update outdated references to maintenance/ in documentation comments.

Change-Id: I2e424addb27b980dd5e8658b8ce79590b7b5db62

10 years agoMerge "Non-word characters don't terminate tag names."
jenkins-bot [Tue, 6 Aug 2013 16:04:23 +0000 (16:04 +0000)]
Merge "Non-word characters don't terminate tag names."

10 years agoMerge "jquery.makeCollapsible: Some low-level tests"
TheDJ [Tue, 6 Aug 2013 15:52:18 +0000 (15:52 +0000)]
Merge "jquery.makeCollapsible: Some low-level tests"

10 years agoNon-word characters don't terminate tag names.
C. Scott Ananian [Tue, 6 Aug 2013 15:17:38 +0000 (11:17 -0400)]
Non-word characters don't terminate tag names.

The PHP sanitizer was including only \w+ in tag names.  This meant that
<b.foo> and <bä> were converted to <b> tags (bug 17663); <s.foo> and
<s-id> were treated as <s> tags (bug 40670), and <sub-ID#1> was treated
as a <sub> tag (bug 52022).  (But note that <strike> *is* actually a valid
synonym for <s>.)

Fix the sanitizer.

Bug: 17663
Change-Id: Iceec404f46703065bf080dd2cbfed1f88c204fa5

10 years agoMerge "Fix language code output for firstHeading"
TheDJ [Tue, 6 Aug 2013 15:46:07 +0000 (15:46 +0000)]
Merge "Fix language code output for firstHeading"

10 years agoRemove superfluous re- from confirmemail_body_set
Nemo bis [Tue, 6 Aug 2013 13:36:20 +0000 (15:36 +0200)]
Remove superfluous re- from confirmemail_body_set

We can't know if the email had ever been set before.
And it doesn't matter.
<https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Confirmemail_body_set/en>

Change-Id: I88ae448ac6a4742ae42dd354ff784c2506105313

10 years agoMerge "skins: Make border style of <pre> more subtle for common skins"
jenkins-bot [Tue, 6 Aug 2013 11:26:09 +0000 (11:26 +0000)]
Merge "skins: Make border style of <pre> more subtle for common skins"

10 years agoMerge "Batch retreival of ES data with minimal round trips"
jenkins-bot [Tue, 6 Aug 2013 07:43:50 +0000 (07:43 +0000)]
Merge "Batch retreival of ES data with minimal round trips"

10 years agoMerge "Customise linktrail for Gujarati (gu)"
jenkins-bot [Mon, 5 Aug 2013 23:44:25 +0000 (23:44 +0000)]
Merge "Customise linktrail for Gujarati (gu)"

10 years agoMerge "API: DWIM for action=edit&section=new&appendtext=..."
jenkins-bot [Mon, 5 Aug 2013 22:00:51 +0000 (22:00 +0000)]
Merge "API: DWIM for action=edit&section=new&appendtext=..."

10 years agoMerge "Use action=tokens for api test tokens"
jenkins-bot [Mon, 5 Aug 2013 20:40:31 +0000 (20:40 +0000)]
Merge "Use action=tokens for api test tokens"

10 years agoUse action=tokens for api test tokens
addshore [Mon, 5 Aug 2013 19:31:45 +0000 (21:31 +0200)]
Use action=tokens for api test tokens

Change-Id: I5d517eca7529dd57e14629a1ea5dd4d50110f39f

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 5 Aug 2013 19:43:22 +0000 (19:43 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 5 Aug 2013 18:58:53 +0000 (18:58 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I39c73bd17c148f669e5dad1c3c605792af7fee59

10 years agoAllow different users to login in Api tests
addshore [Mon, 5 Aug 2013 18:15:49 +0000 (20:15 +0200)]
Allow different users to login in Api tests

Change-Id: I6f79416e4580ed8bf57836b78aa7027ea8f0d280

10 years agoBatch retreival of ES data with minimal round trips
Erik Bernhardson [Fri, 2 Aug 2013 23:08:22 +0000 (16:08 -0700)]
Batch retreival of ES data with minimal round trips

Batches ES urls by schema and host to reduce round trips required to retreive
many pieces of data.  Takes array of ES urls to retreive and returns a map
from ES urls to their data.  Errored urls are represented with a boolean false
in the result set.  Initially implemented for ExternalStoreDB, other stores
fallback to serial requests.

Change-Id: If1bef25f57bfe7de32fc6787f553a90bd76e87ea

10 years agoAPI: DWIM for action=edit&section=new&appendtext=...
Brad Jorsch [Mon, 5 Aug 2013 15:26:49 +0000 (11:26 -0400)]
API: DWIM for action=edit&section=new&appendtext=...

While it doesn't make a whole lot of sense to prepend or append with
section=new, the user certainly doesn't intend to be copying the
contents of section 0. In the spirit of "do what I mean", we should
probably prepend/append to empty text in this situation.

Bug: 52538
Change-Id: I9b03635906ca665a4f68b3bd35d05ae9108e2356

10 years agoMerge "Typo fix"
jenkins-bot [Mon, 5 Aug 2013 08:11:59 +0000 (08:11 +0000)]
Merge "Typo fix"

10 years agoRevert "Pedantic tweak to README"
Ori.livneh [Sat, 3 Aug 2013 07:51:27 +0000 (07:51 +0000)]
Revert "Pedantic tweak to README"

This reverts commit 9a497dd3c9, which added an additional blank line to
the README in an attempt to work around a bug in GitHub's wikitext
renderer which causes it to swallow any whitespace that follows a bulleted
list. It didn't fix the issue (it's now simply swallowing two lines rather
than one).

Change-Id: I4312d783eea5585f5c3e3b895ab2c78a170b682d

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 4 Aug 2013 18:53:37 +0000 (18:53 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I2a60ba1062f102f1773585fe4fde9917584699c5

10 years agoMerge "Clean up: Remove wrong or redundant CSS prefixes"
jenkins-bot [Sun, 4 Aug 2013 12:30:02 +0000 (12:30 +0000)]
Merge "Clean up: Remove wrong or redundant CSS prefixes"

10 years agoMake action=purge on file redirects purge the file redirect cache.
Brian Wolff [Sun, 4 Aug 2013 03:36:38 +0000 (00:36 -0300)]
Make action=purge on file redirects purge the file redirect cache.

Seems like something that should get purged. Inspired specificly
by bug 52200 (Not intended to be a solution to that bug, that bug
just illustrated that this cache is not purged on action=purge).

Change-Id: Ib70eef800f686a96a261ee38de5df239847ace8a

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 3 Aug 2013 19:44:26 +0000 (19:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I49aea9fa387bd2d2e070ef4150b24327333f9307

10 years agoCustomise linktrail for Gujarati (gu)
Nemo bis [Sat, 3 Aug 2013 15:54:10 +0000 (17:54 +0200)]
Customise linktrail for Gujarati (gu)

Full Unicode range per Santhosh.

Bug: 48798
Change-Id: I516eaf99d1811c7560bb30ae48acf611da594b77

10 years agoPedantic tweak to README
Ori Livneh [Sat, 3 Aug 2013 06:11:06 +0000 (23:11 -0700)]
Pedantic tweak to README

Add an extra line of whitespace between the final bullet-point item and
the paragraph that proceeds it.

Change-Id: I10d7abf86d630da4970a1d7b3e103cff4e83e691

10 years agoMerge "Make wfForeignMemcKey consistent with wfMemcKey"
jenkins-bot [Sat, 3 Aug 2013 05:20:17 +0000 (05:20 +0000)]
Merge "Make wfForeignMemcKey consistent with wfMemcKey"

10 years agoClean up: Remove wrong or redundant CSS prefixes
Timo Tijhof [Sat, 3 Aug 2013 02:45:40 +0000 (04:45 +0200)]
Clean up: Remove wrong or redundant CSS prefixes

* Text shadow:
  -moz-text-shadow
  > [FF22] Unknown property '-moz-text-shadow'.  Declaration dropped.
  -webkit-text-shadow
  > [Cr29] Invalid CSS property name: -webkit-text-shadow

  These never existed. If they did, they have been both unneeded
  and even removed from browsers many years ago.

  http://caniuse.com/css-textshadow

* Border radius:

  Unprefixed since
  - Firefox > 3.6
  - Chrome > 4
  - Safari > 4
  - Mobile Safari > 3

  Firefox < 4 has been blacklisted in the startup module.
  Latest Firefox dropped support for -moz-border-radius.
  > [FF12] Unknown property '-moz-border-radius'.  Declaration dropped.
  WebKit still supports both.

  Removing both -webkit and -moz.

  http://caniuse.com/border-radius

* Box shadow:
  Unprefixed since:
  - Firefox > 3.6
  - Chrome > 9
  - Safari > 5.0 (Safari 5.1 has it)
  - Mobile Safari > 4.3 (iOS 5 has it)

  Keeping -webkit for now for iOS 4.
  Removing -moz per above.

  http://caniuse.com/css-boxshadow

Change-Id: Ie5ce3202b48f42460911a7f6fa9afe4e03326c95

10 years agoMerge "Add getId to mw.user, returning wgUserId (or 0 for anons)."
jenkins-bot [Sat, 3 Aug 2013 02:02:58 +0000 (02:02 +0000)]
Merge "Add getId to mw.user, returning wgUserId (or 0 for anons)."

10 years agoAdd getId to mw.user, returning wgUserId (or 0 for anons).
Matthew Flaschen [Thu, 25 Jul 2013 08:49:40 +0000 (01:49 -0700)]
Add getId to mw.user, returning wgUserId (or 0 for anons).

This is equivalent to how User->getId works on the server.

Small formatting update to another documentation block.

Change-Id: I31906398f572dd4f62d89b53dfd05a362bf6d5a5

10 years agoMerge "Code style cleanups to parserTest.inc and NewParserTest.php."
jenkins-bot [Sat, 3 Aug 2013 00:07:11 +0000 (00:07 +0000)]
Merge "Code style cleanups to parserTest.inc and NewParserTest.php."

10 years agoMake wfForeignMemcKey consistent with wfMemcKey
Erik Bernhardson [Tue, 2 Jul 2013 23:38:04 +0000 (16:38 -0700)]
Make wfForeignMemcKey consistent with wfMemcKey

The wfMemcKey function converts any spaces in the key into _, while
the wfForeignMemcKey does not.  As such they would not return the same
key in certain corner cases.

Change-Id: I520dacdce953414dee5907324c2c98db858bcd42

10 years agoTypo fix
Aaron Schulz [Fri, 2 Aug 2013 23:48:40 +0000 (16:48 -0700)]
Typo fix

Change-Id: I778f1291cfcc1b6cc5441898607e4c1341c9f6df

10 years agoTweaked README's formatting
MZMcBride [Fri, 2 Aug 2013 22:30:32 +0000 (22:30 +0000)]
Tweaked README's formatting

Preceding spaces caused the links to be unclickable. Switch to bullets only.

Change-Id: I4653330465675e700aef82b7d743899cc39f7348
GitHub: https://github.com/wikimedia/mediawiki-core/pull/5

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 2 Aug 2013 21:40:25 +0000 (21:40 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9a8b8769d0077d4d406c27910b8f94d9f3a2ceeb

10 years agoMerge "Add parser tests for bug 52468 and bug 52363."
jenkins-bot [Fri, 2 Aug 2013 19:30:38 +0000 (19:30 +0000)]
Merge "Add parser tests for bug 52468 and bug 52363."

10 years agoWhitelist the <wbr> element.
Daniel Friesen [Mon, 13 May 2013 03:24:08 +0000 (20:24 -0700)]
Whitelist the <wbr> element.

Bug: 52468
Change-Id: If4a4882155888606c960237be0fbe7933a85c5f9

10 years agoAdd parser tests for bug 52468 and bug 52363.
C. Scott Ananian [Fri, 2 Aug 2013 17:22:18 +0000 (13:22 -0400)]
Add parser tests for bug 52468 and bug 52363.

Change-Id: I3a4361f8f40d941ec05b690311b33351f6425296

10 years agoMerge "Code style cleanups to Sanitizer.php."
jenkins-bot [Fri, 2 Aug 2013 19:10:49 +0000 (19:10 +0000)]
Merge "Code style cleanups to Sanitizer.php."

10 years agoMerge "Update README & COPYING"
jenkins-bot [Fri, 2 Aug 2013 18:06:12 +0000 (18:06 +0000)]
Merge "Update README & COPYING"

10 years agoMerge "Remove the showjumplinks user preference"
jenkins-bot [Fri, 2 Aug 2013 17:23:59 +0000 (17:23 +0000)]
Merge "Remove the showjumplinks user preference"

10 years agoMerge "Add methods to get raw request in WebRequest"
jenkins-bot [Fri, 2 Aug 2013 09:26:57 +0000 (09:26 +0000)]
Merge "Add methods to get raw request in WebRequest"

10 years agoMerge "mctest.php: nicely align server names"
jenkins-bot [Fri, 2 Aug 2013 08:53:10 +0000 (08:53 +0000)]
Merge "mctest.php: nicely align server names"

10 years agoMerge "mediawiki.util: Optimise logic in addPortletLink"
jenkins-bot [Fri, 2 Aug 2013 04:35:16 +0000 (04:35 +0000)]
Merge "mediawiki.util: Optimise logic in addPortletLink"

10 years agomediawiki.util: Optimise logic in addPortletLink
Timo Tijhof [Thu, 1 Aug 2013 23:38:16 +0000 (01:38 +0200)]
mediawiki.util: Optimise logic in addPortletLink

Optimised to no longer:
* boolean cast "nextnode" twice.
* assert nextnode.jquery when we know it is a jQuery object.
  > !!$( Node ).jquery
* assert nextnode.length when we know it has only 1 element.
  > $( Node ).length === 1
* execute $ul.find( selector ) twice for the CSS selector case.
* check for .length in some places and do an ignorant eq(0) in
  other cases (thus ignoring the case if there are multiple
  elements).

Tests still pass :-)

Change-Id: Ibc86c2dc33a8a3ba378138525c2523ba69bca8f1

10 years agodoc: Clarify documentation for ParserOptions::getUserLangObj
Timo Tijhof [Thu, 1 Aug 2013 20:37:41 +0000 (22:37 +0200)]
doc: Clarify documentation for ParserOptions::getUserLangObj

It no longer produces inconsistent link tables, that was fixed
in r89706 by setting the parser to the default language when
saving, and then when viewing it might reparse for a different
uselang if needed (without saving link updates).

Of course, that isn't pretty and it should still be discouraged.

Change-Id: I599a7162fed458713ffa3a754086c6a2ffdebe07

10 years agoUpdate README & COPYING
Ori Livneh [Mon, 29 Jul 2013 22:29:17 +0000 (15:29 -0700)]
Update README & COPYING

This patch contains a re-write of MediaWiki's README. The current README has
been obsoleted by the passage of time, and its current patchwork of contents
is not especially helpful or flattering to MediaWiki. GitHub automatically
renders a repository's README below its file listings; GitHub's popularity
thus means that this file is a lot more visible than it once was and is more
likely to shape a prospective developer's first impression of MediaWiki as a
software platform.

The re-write was conducted on-wiki, at <https://www.mediawiki.org/wiki/README>,
and advertised on wikitech-l. Not much time has passed since the announcement,
but even so the updated README is already considerably better, and there's no
reason not to continue synchronizing changes from the wiki page on an ongoing
basis, so the editorial work on MediaWiki.org need not stop as a consequence of
this change being merged.

This patch also includes an update to COPYING, incorporating legal text that
has been removed from the README, and adding some more information about
licensing. These changes include:

- changed URL from GPL (unspecified version, pointing currently to v3)
  to GPL v2, to match the text
- removed statement that the Foundation does not hold any rights in
  the codebase, as it may in some cases have rights through
  contractors
- added note about looking for information in individual components
- removed incorrect CC information about Sajax (which appears to be
  BSD-licensed, according to its file header in skins/common/ajax.js
- rephrased the CC license information to make more clear and precise

Bug: 50552
Change-Id: Iff7df2567bd90c136ef81fb8dbe7b6d4408be75f

10 years agoMerge "More accurate function descriptions"
jenkins-bot [Thu, 1 Aug 2013 23:58:49 +0000 (23:58 +0000)]
Merge "More accurate function descriptions"

10 years agoMore accurate function descriptions
kaldari [Fri, 19 Jul 2013 02:06:48 +0000 (19:06 -0700)]
More accurate function descriptions

Change-Id: I633a7740996b8933778aa32036cb429026f75ebe

10 years agomediawiki.util: Fix addPortletLink to allow jQuery objects
Mark Holmquist [Thu, 1 Aug 2013 00:25:29 +0000 (17:25 -0700)]
mediawiki.util: Fix addPortletLink to allow jQuery objects

The docs already say jQuery is a supported type for nextnode, it just
wasn't yet checking for it in the function.

Change-Id: I0bdc7dacd24aac720b70c6fc0ca3154ceccd0ebb

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 1 Aug 2013 20:40:25 +0000 (20:40 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "Add month-only date format."
jenkins-bot [Thu, 1 Aug 2013 20:15:58 +0000 (20:15 +0000)]
Merge "Add month-only date format."

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

Change-Id: Id3cc2067e5013e92faae47d31376b77087f3a9bc