lhc/web/wiklou.git
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

10 years agoMove translators credits list to a wiki page
Federico Leva [Sun, 14 Jul 2013 10:19:34 +0000 (12:19 +0200)]
Move translators credits list to a wiki page

* List as per Iedc78728156f04b16109140db485492ba7693f14
  (to be occasionally updated manually on wiki with automatic authors
  lists from the files as exported by the Translate extension)
* Link it from Special:Version
* Make protocol consistent in the different parts of the sentence

Change-Id: I3bb53d4c184173b5362f5036764fb38d8f07d178

10 years agoRemove verbosity in message
Siebrand Mazeland [Thu, 1 Aug 2013 18:29:56 +0000 (20:29 +0200)]
Remove verbosity in  message

Adding the information about "not fit for statistical purposes" will most
likely confuse more people than corrupt results of academic research, so
remove it.

Change-Id: I42ae79691305d8d429ea0e8337797911d1ba38f6

10 years agoUse page instead of article in UI
Siebrand Mazeland [Thu, 1 Aug 2013 18:26:35 +0000 (20:26 +0200)]
Use page instead of article in UI

Change-Id: Ie506fb929810c8190bf572b6114e91821845fe2f

10 years agoAdd Special:RandomInCategory.
Brian Wolff [Thu, 4 Jul 2013 16:19:47 +0000 (13:19 -0300)]
Add Special:RandomInCategory.

The method used is quite biased, but I believe its the best
possible without a schema change and still being efficient.
I think it is good enough for many of the use cases that
need different articles to pop up, but not "real" randomness.

The method used
is to chose a random timestamp and look at cl_timestamp. This method
will give good results if the timestamps are uniformly distributed
(which probably is not usually true). I think it may give acceptable
results in general, especially given most people are not interested
in true randomness, but more in "give me a result I haven't seen before".
(For example, to pick a random entry in a maintenance category to clean
up).

It also fudges the result a little bit using offset to stop really
biased results from happening. This is mostly meant to stop a
category with an extremely clumped distributed from returning
the exact same article every time. It is not meant to generally
increase randomness.

Bug: 25931
Change-Id: I0c48e4a236b50fb627af94f0df47fef8372ea14d

10 years agomctest.php: nicely align server names
Antoine Musso [Wed, 31 Jul 2013 12:25:30 +0000 (14:25 +0200)]
mctest.php: nicely align server names

The servers entries being made of an IP address and a port, they would
often have different lenghts which clutter the output indentation.

Previously the output columns would be slightly misaligned:

$ mwscript mctest.php --wiki=enwiki
10.4.1.255:11211 set: 100   time: 0.17192602157593
10.4.1.1:11211 set: 100   time: 0.19056081771851
$

With this patch:

$ mwscript mctest.php --wiki=enwiki
10.4.1.255:11211 set: 100   time: 0.17192602157593
10.4.1.1:11211   set: 100   time: 0.19056081771851
$

Change-Id: I80199a229ed6310686411f08e0344c7d906414ea

10 years agoMerge "mediawiki.js: Document that default message format is 'text'"
jenkins-bot [Thu, 1 Aug 2013 00:28:45 +0000 (00:28 +0000)]
Merge "mediawiki.js: Document that default message format is 'text'"

10 years agomediawiki.js: Document that default message format is 'text'
Matthew Flaschen [Wed, 31 Jul 2013 19:21:04 +0000 (15:21 -0400)]
mediawiki.js: Document that default message format is 'text'

Follows-up 2564de082e.

Change-Id: I73470cb9005051e4a43618ab8fd0707f3bd885f0

10 years agoAdd month-only date format.
Molly White [Wed, 31 Jul 2013 22:07:17 +0000 (18:07 -0400)]
Add month-only date format.

The BookManagerv2 extension needs support for dates that consist
of only a month and a year, and I think this is something that
would potentially be useful to other extensions as well.

Change-Id: I3672b0b0aee196890981302a41daeefb61130141

10 years agoMerge "vector: Move right tabs from behind to below left tabs"
TheDJ [Wed, 31 Jul 2013 21:02:45 +0000 (21:02 +0000)]
Merge "vector: Move right tabs from behind to below left tabs"

10 years agoRemove the showjumplinks user preference
Daniel Friesen [Sat, 29 Sep 2012 18:26:44 +0000 (11:26 -0700)]
Remove the showjumplinks user preference

This preference does not appear to have a valid purpose.  Jump links are
part of accessibility, sites must never force users to turn this on.

For logged in users there is no value in removing the links.  They take up
practically no space in the markup, and that would be a dubious reason.
And these links are not even visible so users should have no reason to be
bothered by them.

Change-Id: Ib506ffad41ac7f65629368bc41774fb689b882db

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 31 Jul 2013 19:45:54 +0000 (19:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9183d8713a58d6f7d0e3906391d85812e2a96f1d

10 years agoUse content format for unserializing in ApiEditPage
Marius Hoch [Wed, 31 Jul 2013 16:39:14 +0000 (18:39 +0200)]
Use content format for unserializing in ApiEditPage

Follow up to: Ia59fb6b

Change-Id: I42bc56aa439e88cbdb1abcafe2984ebf3eeb79af

10 years agoMerge "Make APIEditBeforeSave give the whole revision"
jenkins-bot [Wed, 31 Jul 2013 16:30:37 +0000 (16:30 +0000)]
Merge "Make APIEditBeforeSave give the whole revision"

10 years agoMake APIEditBeforeSave give the whole revision
Marius Hoch [Fri, 26 Jul 2013 11:43:08 +0000 (13:43 +0200)]
Make APIEditBeforeSave give the whole revision

rather then just the current section. This
makes the hook behave as documented in
docs/hooks.txt.

Bug: 52077
Change-Id: Ia59fb6bbcbf2ae4119aa9dc316af8130e0235e78

10 years ago$wgHTCPMulticastRouting rename + multi hosts support
Antoine Musso [Tue, 2 Jul 2013 10:50:48 +0000 (12:50 +0200)]
$wgHTCPMulticastRouting rename + multi hosts support

This patch does two things:

A) rename $wgHTCPMulticastRouting to $wgHTCPRouting since you can have
   MediaWiki send purge packets over unicast.
B) add support for multi hosts purge in the few cases one want to split
   the multicast groups per cache role but still want to purge more than
   one cache group.

A) rename

The rename adds deprecation notices in the comments and adds a back
compatibility layer in the case someone is already using this feature.
Given Wikimedia Foundation is not even using it, it is very unlikely,
but yet: better safe than sorry.

My logic is flawed sometime, so that needs a bit of review :) There is
two levels of deprecations to watch for:
- pre mw1.20 which useds $wgHTCPMulticastAddress and
  $wgHTCPMulticastPort
- pre mw1.22 (aka before this patch) that used $wgHTCPMulticastRouting

The resulting configuration should be properly loaded in $wgHTCPRouting.

B) multi hosts

The HTCP routing let you split purges to different hosts according to
the URL.  In some case, we want to be able to purge an URL from more
than one multicast group.  A Wikimedia example would be to send text
related purges to the text and mobiles caches while upload purges are
sent to the upload caches.

An abstracted example would be:

$wgHTCPRouting = array(

// upload URLs to upload caches
'/(upload|thumbs)/' => array(
'host' => '<ip for upload caches>'
),

// Everything else to text & mobile
'' => array(
array( 'host' => '<ip for text caches>' ),
array( 'host' => '<ip for mobile caches>' ),
),

);

Change-Id: Ie87f6b81007f47f9cb439371743f3ad9a4b0c774

10 years agoMerge "For rows added by the SpecialStatsAddExtra hook, add an HTML id of "mw-" plus...
jenkins-bot [Wed, 31 Jul 2013 04:51:47 +0000 (04:51 +0000)]
Merge "For rows added by the SpecialStatsAddExtra hook, add an HTML id of "mw-" plus the message key"

10 years agoFor rows added by the SpecialStatsAddExtra hook, add an HTML id of "mw-" plus the...
Kunal Mehta [Tue, 30 Jul 2013 00:58:30 +0000 (17:58 -0700)]
For rows added by the SpecialStatsAddExtra hook, add an HTML id of "mw-" plus the message key

This will allow for the row to be easily selected via CSS, so extensions
can easily point the user at the relevant row(s).

Change-Id: Ib93e05d1ef89666ddcb132b5eb4b620b160b5565

10 years agoMerge "Add a usage note to 'CanonicalNamespaces' hook docs"
jenkins-bot [Wed, 31 Jul 2013 02:18:09 +0000 (02:18 +0000)]
Merge "Add a usage note to 'CanonicalNamespaces' hook docs"

10 years agoAdd a usage note to 'CanonicalNamespaces' hook docs
Ori Livneh [Wed, 31 Jul 2013 01:44:01 +0000 (18:44 -0700)]
Add a usage note to 'CanonicalNamespaces' hook docs

It seems natural to defer namespace configuration until the namespace is
actually registered, but in the case of namespaces that are registered in
CanonicalNamespaces hook, doing so will not work or cause unpredictable
results. This patch adds a note of warning to hooks.txt. See bug 45031 for
context.

Change-Id: I3f2d56dc7ded5e00974de0baf1a84188eade823c

10 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Tue, 30 Jul 2013 21:15:31 +0000 (17:15 -0400)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 4c47bd124c4cc860b53764b42a2af2581b429eb7

Change-Id: I48f936e6e8c456fd92297d55229e37a8ab3bb07f

10 years agoMerge "Add new parserTests for image attributes coming from templates."
jenkins-bot [Tue, 30 Jul 2013 21:05:11 +0000 (21:05 +0000)]
Merge "Add new parserTests for image attributes coming from templates."

10 years agoAdd new parserTests for image attributes coming from templates.
C. Scott Ananian [Tue, 30 Jul 2013 20:17:57 +0000 (16:17 -0400)]
Add new parserTests for image attributes coming from templates.

Bug: 49400
Change-Id: I49e92f5ddf9ee32347e6b738329f16f9ca129888

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 30 Jul 2013 20:19:04 +0000 (20:19 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 30 Jul 2013 19:33:05 +0000 (19:33 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6c189aa54bf06cd8ebdaf935fb787cf49510517b

10 years agoMerge "Add new parserTests for table cell attributes coming from templates."
jenkins-bot [Tue, 30 Jul 2013 19:23:41 +0000 (19:23 +0000)]
Merge "Add new parserTests for table cell attributes coming from templates."

10 years agoAdd new parserTests for table cell attributes coming from templates.
C. Scott Ananian [Tue, 30 Jul 2013 18:58:47 +0000 (14:58 -0400)]
Add new parserTests for table cell attributes coming from templates.

Bug: 44498
Change-Id: I2b46dea4c075e9eac41dfceac40097ebfb3f8700

10 years agoCode style cleanups to Sanitizer.php.
C. Scott Ananian [Tue, 16 Jul 2013 18:36:01 +0000 (14:36 -0400)]
Code style cleanups to Sanitizer.php.

Fix warnings and errors from the PHP code style checker.

Note that phpcs is complaining about the constant '-1' -- it says:
'Expected 1 space after "-"; 0 found'.  That's ridiculous, so I didn't
"fix" that issue.

Change-Id: I87a50bbc5a4387ffbca9f55d07f66b6cf860a8ac

10 years agoDiffHistoryBlob: don't check for mhash extension
Kevin Israel [Tue, 30 Jul 2013 15:44:03 +0000 (11:44 -0400)]
DiffHistoryBlob: don't check for mhash extension

Checking for the mhash extension is pointless in PHP 5.3+ because
it only exists as B/C functions that are part of the hash extension.

From ext/hash/config.m4:

    if test "$PHP_MHASH" != "no"; then
      if test "$PHP_HASH" = "no"; then
        PHP_HASH="yes"
      fi

      AC_DEFINE(PHP_MHASH_BC, 1, [ ])
    fi

So if mhash() is compiled in, hash() must also be compiled in.

Change-Id: Ic376f4c438aaf701ebb4f1394ab6e4c1803fb8b8

10 years agoMerge "Fix parserTests.php for non-english test wikis"
jenkins-bot [Tue, 30 Jul 2013 13:57:30 +0000 (13:57 +0000)]
Merge "Fix parserTests.php for non-english test wikis"

10 years agoFix parserTests.php for non-english test wikis
umherirrender [Tue, 30 Jul 2013 13:12:12 +0000 (15:12 +0200)]
Fix parserTests.php for non-english test wikis

Running parserTests.php gives two failed test under a non-english wiki.

Both tests have corresponding article parts, which creates system
messages for the test.
While the messages gets added to the database, the language is not set
to en, so the created message gets under the wrong language into the
language cache.
When running the test, the language is set to en, but the message cannot
be found in the language cache. The message is not found.

Running test Bug 31098 Template which includes system messages which
includes the template... FAILED!
Running test Bug 32057: Title needed when expanding <h> nodes....
FAILED!

Change-Id: I18fb139e2227343018cdef737bda5aadb5c9fb35

10 years agoMerge "4-digits numbers in Spanish should not have a group separator"
jenkins-bot [Tue, 30 Jul 2013 13:02:30 +0000 (13:02 +0000)]
Merge "4-digits numbers in Spanish should not have a group separator"

10 years agoMerge "Replace "themselves" by "oneself""
jenkins-bot [Tue, 30 Jul 2013 12:14:09 +0000 (12:14 +0000)]
Merge "Replace "themselves" by "oneself""

10 years agoMerge "Fix EditPageTest for non-english test wikis"
jenkins-bot [Tue, 30 Jul 2013 11:13:29 +0000 (11:13 +0000)]
Merge "Fix EditPageTest for non-english test wikis"

10 years agoMerge "Follow-up 42333412833a - Fix behaviour $wgVerifyMimeType = false;"
jenkins-bot [Tue, 30 Jul 2013 08:52:13 +0000 (08:52 +0000)]
Merge "Follow-up 42333412833a - Fix behaviour $wgVerifyMimeType = false;"

10 years agoReturn messages in a consistent form from Status objects
daniel [Wed, 17 Jul 2013 17:11:56 +0000 (19:11 +0200)]
Return messages in a consistent form from Status objects

Also fixes Message::getKey() to always return a string.

Rationale:

Some code, like RollbackAction, assumes that Status::getErrorArray will
return an array of the form ( messagekey, param... ), but this was not
the case when a Message object was passed to the Status.

This change makes sure Status::getErrorArray will always return arrays
of the expected form. This is especially important since the messages in
the Status object may be provided by extensions.

In order to convert Message objects to arrays of message keys and parameters,
Message::getKey() needed to be fixed to return a single key always.

Bug: 49338
Change-Id: I0deaa9888e9d86726a8e41ca606c571f56190c91

10 years agoMerge "Installer: page refresh should refresh list of supported DBs"
MarkAHershberger [Mon, 29 Jul 2013 22:30:37 +0000 (22:30 +0000)]
Merge "Installer: page refresh should refresh list of supported DBs"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 29 Jul 2013 19:29:49 +0000 (19:29 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I811dc8a2b7065867047e4519257b6c611fdc47df

10 years agoMerge "Abort page restriction if no null revision can be created"
jenkins-bot [Mon, 29 Jul 2013 17:40:57 +0000 (17:40 +0000)]
Merge "Abort page restriction if no null revision can be created"

10 years agoAdd methods to get raw request in WebRequest
csteipp [Wed, 26 Jun 2013 21:10:52 +0000 (14:10 -0700)]
Add methods to get raw request in WebRequest

Make it possible to get the raw parameters given to the request, with
no escaping. This is needed for features like OAuth, where a signature
is calculated over the parameters to verify their integrity and source.

FauxRequest is extended so the original request doesn't pollute the
fake one. This could be extended so "raw" values could be set and used,
but there isn't a use case for that yet, so it's not done here.

Change-Id: I8710844f21d21cbbf28517b0cc25b0713b506bee

10 years agoMerge "updater: Move rev_sha1 addition before convertUserOptions"
MarkAHershberger [Mon, 29 Jul 2013 14:24:32 +0000 (14:24 +0000)]
Merge "updater: Move rev_sha1 addition before convertUserOptions"

10 years agoupdater: Move rev_sha1 addition before convertUserOptions
David Mudrák [Mon, 29 Jul 2013 13:09:25 +0000 (15:09 +0200)]
updater: Move rev_sha1 addition before convertUserOptions

Execution of the script and addition of rev_sha1 are both 1.19
activities, but for some reason the issue has only shown up in 1.21.

* MysqlUpdater::getCoreUpdateList() declares that 'doMigrateUserOptions'
  should be executed before adding the field rev_sha1 into the revision table
* ConvertUserOptions::execute() calls User::saveSettings()
* User::saveSettings() at its very end calls $this->getUserPage()->invalidateCache()
  and that is where the revision query is joining the party.

Bug: 48820
Change-Id: Id0a6efc33a8c46fdc3e9c294aa2d005d46c7dda0

10 years agoMerge "Use one call to .attr instead of two and linebreak consistency"
jenkins-bot [Mon, 29 Jul 2013 11:23:29 +0000 (11:23 +0000)]
Merge "Use one call to .attr instead of two and linebreak consistency"

10 years agoMerge "Improve documentation for $wgRecentChangesFlags"
jenkins-bot [Mon, 29 Jul 2013 08:26:55 +0000 (08:26 +0000)]
Merge "Improve documentation for $wgRecentChangesFlags"

10 years agoReplace "themselves" by "oneself"
shirayuki [Mon, 29 Jul 2013 00:47:13 +0000 (09:47 +0900)]
Replace "themselves" by "oneself"

For consistency

Spotted by Shirayuki
http://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Right-unblockself/en

Change-Id: Ie5c59f0133519ce4f93f373d20008808986fb8b4

10 years agoImprove documentation for $wgRecentChangesFlags
umherirrender [Fri, 19 Jul 2013 18:04:53 +0000 (20:04 +0200)]
Improve documentation for $wgRecentChangesFlags

Change-Id: If11461942462f48921a27d291c1bf383bc488a28

10 years agoUse one call to .attr instead of two and linebreak consistency
Derk-Jan Hartman [Sun, 28 Jul 2013 13:53:40 +0000 (15:53 +0200)]
Use one call to .attr instead of two and linebreak consistency

Follow-up to: I2b937eba605b7e6a98612a02c75eb9e7f347752

Change-Id: I45254ad2fee63918763cc7662523b80c26418177

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 28 Jul 2013 18:58:08 +0000 (18:58 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I525a26602a3f7d210b1a710cfc4b0d7b67961095

10 years ago4-digits numbers in Spanish should not have a group separator
Nemo bis [Sat, 27 Jul 2013 20:21:05 +0000 (22:21 +0200)]
4-digits numbers in Spanish should not have a group separator

Bug: 51157
Change-Id: I4fabf9569c38e5da7b20d70206445dd77a73b4a4

10 years agoMerge "Move unsortable class into tablesorter config"
jenkins-bot [Sun, 28 Jul 2013 15:08:38 +0000 (15:08 +0000)]
Merge "Move unsortable class into tablesorter config"

10 years agoMerge changes I48dcf831,I8922b80e
TheDJ [Sun, 28 Jul 2013 14:26:20 +0000 (14:26 +0000)]
Merge changes I48dcf831,I8922b80e

* changes:
  jquery.makeCollapsible: Consistency in test names
  jquery.makeCollapsible: Tests for collapse and expand text

10 years agoMove unsortable class into tablesorter config
Derk-Jan Hartman [Thu, 18 Jul 2013 19:43:15 +0000 (21:43 +0200)]
Move unsortable class into tablesorter config

Change-Id: I7fc1e9fe9e63128b3c6bac0ec067f1631e53cde2

10 years agoMake wfMatchesDomainList not match partial domains
Kevin Israel [Mon, 10 Jun 2013 02:04:24 +0000 (22:04 -0400)]
Make wfMatchesDomainList not match partial domains

Change-Id: I90e7af152fbd9bb8d84d5f2c54bd352b461c530d

10 years agoMerge "Correct the regular expression for explicit plural forms"
jenkins-bot [Sat, 27 Jul 2013 20:08:17 +0000 (20:08 +0000)]
Merge "Correct the regular expression for explicit plural forms"

10 years agoContentHandler: Fix a typo
Mark A. Hershberger [Sat, 27 Jul 2013 19:19:52 +0000 (15:19 -0400)]
ContentHandler: Fix a typo

Change-Id: I3accd0605f62e73d5ea527da7b3c03e4bdda3fc7

10 years agoMerge "Remove Persian from link underlining removal"
jenkins-bot [Sat, 27 Jul 2013 18:53:59 +0000 (18:53 +0000)]
Merge "Remove Persian from link underlining removal"

10 years agoRemove Persian from link underlining removal
Ebrahim Byagowi [Wed, 24 Jul 2013 14:47:29 +0000 (14:47 +0000)]
Remove Persian from link underlining removal

There was a discussion [1] on this on Persian Wikipedia and users
don't want it actually. It is such an UI inconsistency and detecting
links based on their color is hard. It may have problem on Amiri font
but not on System default font and Persian Wikipedia fonts.

[1] https://fa.wikipedia.org/wiki/MediaWiki:Common.css?oldid=10552148

Change-Id: I8168baff1b9e64d0c79dcd7a896b9cbeeed0b266

10 years agoMerge "Clarify exif-copyrighted-false means only Copyright flag not set"
jenkins-bot [Sat, 27 Jul 2013 18:12:41 +0000 (18:12 +0000)]
Merge "Clarify exif-copyrighted-false means only Copyright flag not set"

10 years agoMerge "Change name of Neapolitan language from "Nnapulitano" to "Napulitano""
jenkins-bot [Sat, 27 Jul 2013 18:10:08 +0000 (18:10 +0000)]
Merge "Change name of Neapolitan language from "Nnapulitano" to "Napulitano""

10 years agoMerge "Make prefs-advancedediting more consistent"
jenkins-bot [Sat, 27 Jul 2013 17:48:57 +0000 (17:48 +0000)]
Merge "Make prefs-advancedediting more consistent"

10 years agoMerge "mediawiki.page.startup: Fix typo in @event"
jenkins-bot [Sat, 27 Jul 2013 17:23:19 +0000 (17:23 +0000)]
Merge "mediawiki.page.startup: Fix typo in @event"

10 years agoMake prefs-advancedediting more consistent
Nemo bis [Sat, 27 Jul 2013 17:18:15 +0000 (19:18 +0200)]
Make prefs-advancedediting more consistent

Cf. "Advanced options", "Display options" etc.
<https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Prefs-advancedediting/pt-br>

Change-Id: I35608d99eff9a95a14bc12ace8de9a8e1dd808a1

10 years agomediawiki.page.startup: Fix typo in @event
Timo Tijhof [Sat, 27 Jul 2013 17:09:22 +0000 (19:09 +0200)]
mediawiki.page.startup: Fix typo in @event

Follows-up 736e7e843a.

Change-Id: Id796646228fb2468a084d5ce5b4f15acf8e517ec

10 years agoClarify exif-copyrighted-false means only Copyright flag not set
Nemo bis [Sat, 27 Jul 2013 17:00:27 +0000 (19:00 +0200)]
Clarify exif-copyrighted-false means only Copyright flag not set

The previous "Public domain" is misleading, as we can't assume
such a copyright status when the EXIF info is not set.
<https://translatewiki.net/wiki/Thread:Support/Change_MediaWiki:Exif-copyrighted-false>

Change-Id: Ic471ed5a997b476fd1e8b4a15106ffc8cd895197

10 years agoChange name of Neapolitan language from "Nnapulitano" to "Napulitano"
Nemo bis [Sat, 27 Jul 2013 16:25:49 +0000 (18:25 +0200)]
Change name of Neapolitan language from "Nnapulitano" to "Napulitano"

Bug: 43793
Change-Id: I08d6a07efac43565eeece324bc6a314a9a79f9c7

10 years agoMerge "Increase vertical offset of post-edit confirmation in MonoBook"
jenkins-bot [Sat, 27 Jul 2013 08:56:40 +0000 (08:56 +0000)]
Merge "Increase vertical offset of post-edit confirmation in MonoBook"

10 years agojquery.placeholder: Fixup for 7ec7d879ee
Timo Tijhof [Sat, 27 Jul 2013 05:59:48 +0000 (07:59 +0200)]
jquery.placeholder: Fixup for 7ec7d879ee

Check for 'arguments.length' was done in the wrong scope.
It checked for arguments to .each() which is always 2 (i, el).

This caused a regression where any call to .placeholder() without
arguments resulted in the string 'undefined' to be displayed as
placeholder (since it was doing setAttribute and passing it `text`
which is undefined, and then further using that undefined variable).

Until 7ec7d879ee / a8145d6fa2 this was the only way .placeholder
could be called, so this is a major regression affecting all use
of it.

Change-Id: I862b0f72548ec2122dad9c5d013149ac57688dab

10 years agoIncrease vertical offset of post-edit confirmation in MonoBook
Ori Livneh [Sat, 27 Jul 2013 00:00:29 +0000 (17:00 -0700)]
Increase vertical offset of post-edit confirmation in MonoBook

At an offset of 3em from the top, the confirmation message overlies MonoBook's
tabs. If the user already knows that they want to use one of the tabs to
navigate away from the article page, she must wait for the confirmation to
fade out so that the obscured tabs are again visible and clickable. Increasing
the offset to 6em seems to fix it.

Bug: 41240
Change-Id: Ifc09523858adf47b7f321d9e29dcb53d290e9d81

10 years agoFix EditPageTest for non-english test wikis
umherirrender [Fri, 26 Jul 2013 21:53:06 +0000 (23:53 +0200)]
Fix EditPageTest for non-english test wikis

Follow-up: I070036f341b866cda67eb928c5b74ad2ce6c527c
Change-Id: Id87832ef84cb091c44f5c78adf370e2fca8ca6d7

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 26 Jul 2013 20:29:23 +0000 (20:29 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9f146e7fbae674a1f09834b5335f47da647ae815

10 years agojquery.makeCollapsible: Consistency in test names
MatmaRex [Sun, 21 Jul 2013 11:52:47 +0000 (13:52 +0200)]
jquery.makeCollapsible: Consistency in test names

Mention which part of the code is being tested in parentheses in test
names. Some actions can be triggered inmore than one way or in more
than one context: this gives a clearer image of what has tests already
and what hasn't.

Change-Id: I48dcf831f6a622f08061b29ca90fb0614e4cbab6

10 years agoMerge "jquery.placeholder: Fixup for a8145d6fa2"
jenkins-bot [Fri, 26 Jul 2013 18:13:51 +0000 (18:13 +0000)]
Merge "jquery.placeholder: Fixup for a8145d6fa2"

10 years agojquery.placeholder: Fixup for a8145d6fa2
Marius Hoch [Fri, 26 Jul 2013 17:23:52 +0000 (19:23 +0200)]
jquery.placeholder: Fixup for a8145d6fa2

* add release notes
* fix minor bug where wrong value is used

Change-Id: Iaab38cc041d143228332e00092f8521f6f3de596

10 years agoMerge "Followup Idfee1b4d per Tim"
jenkins-bot [Fri, 26 Jul 2013 17:24:27 +0000 (17:24 +0000)]
Merge "Followup Idfee1b4d per Tim"

10 years agoMerge "jquery.placeholder: Take placeholder text as parameter"
jenkins-bot [Fri, 26 Jul 2013 17:07:33 +0000 (17:07 +0000)]
Merge "jquery.placeholder: Take placeholder text as parameter"

10 years agojquery.placeholder: Take placeholder text as parameter
rillke [Thu, 18 Jul 2013 09:42:40 +0000 (11:42 +0200)]
jquery.placeholder: Take placeholder text as parameter

After this change, it will be possible to supply the text to be used as
a placeholder to the plugIn. Instead of doing:
$('<input type="text" />').attr({
        placeholder: "Placeholder text"
}).placeholder();

you can now simply do:
$('input#myInput')
.placeholder("Placeholder text");

after loading the plug-in.

Bug: 40430
Change-Id: I25255b2ef657f3215e64895d7905b984a1e9d59a

10 years agoMerge "Watchlist: Separate non-form parts out of the <fieldset>"
jenkins-bot [Fri, 26 Jul 2013 16:36:29 +0000 (16:36 +0000)]
Merge "Watchlist: Separate non-form parts out of the <fieldset>"

10 years agoMerge "Allow debugging of unit tests via wfDebugLog."
jenkins-bot [Fri, 26 Jul 2013 16:05:33 +0000 (16:05 +0000)]
Merge "Allow debugging of unit tests via wfDebugLog."

10 years agoFollowup Idfee1b4d per Tim
Brad Jorsch [Fri, 26 Jul 2013 14:58:02 +0000 (10:58 -0400)]
Followup Idfee1b4d per Tim

OAuth was going to return different values for UserIsEveryoneAllowed
depending on whether OAuth headers were provided, so the bolding on
Special:SpecialPages wouldn't be odd. That wasn't liked, so instead
we'll only mark special pages as restricted based on $wgGroupPermissions
and not what extensions might do.

Also, it was suggested that if an extension can remove 'read' then the
cache headers set by RawAction and the API should reflect that.

Change-Id: I381553e79c5320083c6d6d9ddd5bc0b146600f9e

10 years ago(bug 49694) Apply $wgSpamRegex to the new section name in action=edit&section=new
Alexandre Emsenhuber [Wed, 24 Jul 2013 07:47:50 +0000 (09:47 +0200)]
(bug 49694) Apply $wgSpamRegex to the new section name in action=edit&section=new

Either on $this->sectiontitle or $this->summary depending on which will be used.

bug: 49694
Change-Id: Ie35c6bfe5cc66313930b0dc4d8f9e618657b3aea

10 years agoFix documentation of $wgTranscludeCacheExpiry
Alexandre Emsenhuber [Fri, 26 Jul 2013 12:30:33 +0000 (14:30 +0200)]
Fix documentation of $wgTranscludeCacheExpiry

Fix for 937fc3b (SVN r98467)...

Also improve the one of $wgEnableScaryTranscluding while I'm at it.

Bug: 52006
Change-Id: Ia84c826f4f4d8fa18d3bf36f732e5b487544caa2

10 years agoSpecial:PagesWithProp: Fix PHP notice if no page properties are present
Alexandre Emsenhuber [Fri, 26 Jul 2013 06:24:06 +0000 (08:24 +0200)]
Special:PagesWithProp: Fix PHP notice if no page properties are present

Always declare $propnames as an array; do not assume that there will
be a property to implicitly set it.

Bug: 51891
Change-Id: I82c6b71a3283c7dc17e66873c2e54cea973c67c0

10 years agoMake the templates/category lists on edit page collapsible
MatmaRex [Sat, 23 Mar 2013 15:36:14 +0000 (16:36 +0100)]
Make the templates/category lists on edit page collapsible

This is a total rewrite of Vector extension's functionality, to fix
various accessibility and internationalization issues with the
original one. Both the JavaScript and the CSS have been redone from
scratch.

Still, the look&feel is almost the same as in the original version,
save for the mentioned messaging changes and minor UI differences (the
toggles are no longer <a> elements). The same cookie names have been
used to avoid any issues when migrating.

Used standard arrow icons from the mediawiki.icon module.

Bug: 43689
Change-Id: I91a3704cb09b9e17dd8baa516ab6f8ee441b7467

10 years agojobqueue: made federated queue use HashRing for root job de-duplication
Aaron Schulz [Fri, 31 May 2013 03:46:33 +0000 (20:46 -0700)]
jobqueue: made federated queue use HashRing for root job de-duplication

* This can spread entries out across job servers rather than always $wgMemc.
* Also made the sectionsByWiki config default to an empty array.

Change-Id: I176ff02eb4f05a1ea7d3bf93e0a10e074bb27d11

10 years agoMerge "mediawiki.action.edit.preview: Fire "wikipage.content" mw.hook"
jenkins-bot [Fri, 26 Jul 2013 01:13:04 +0000 (01:13 +0000)]
Merge "mediawiki.action.edit.preview: Fire "wikipage.content" mw.hook"

10 years agoMerge "Fix the target URL of HTMLForm"
jenkins-bot [Fri, 26 Jul 2013 01:11:48 +0000 (01:11 +0000)]
Merge "Fix the target URL of HTMLForm"