lhc/web/wiklou.git
11 years agoCLDR Plural rules based plural form calculation
Santhosh Thottingal [Mon, 18 Jun 2012 08:28:44 +0000 (13:58 +0530)]
CLDR Plural rules based plural form calculation

* Use the plurals.xml of CLDR for the plural rules of languages
* Use plurals-mediawiki.xml to override or extend the rules inside MW
* Remove the convertPlural method in each LanguageXX.php
* Parse and load the xml files in LocalisationCache
* Use the CLDRPluralRuleEvaluator.php for parsing the cldr plural rules
  (This is taken from Translate extension and might require a replacement
   parser without using eval)
* Add getPluralRules() to make the CLDR plural rules available to JS.

PS3: More method documentation, cleanup

Change-Id: I58a9cdfe60c7b9027bf031c91370472054f04ae2

11 years ago[FileBackend] Added resyncFiles() function to multiwrite backend.
Aaron [Thu, 16 Aug 2012 00:24:20 +0000 (17:24 -0700)]
[FileBackend] Added resyncFiles() function to multiwrite backend.

* Also fixed the the SHA1 function calls in consistencyCheck().

Change-Id: I29758ff79102929aa0ffb756526d7918bf74ca39

11 years agoAdd in a comment about some funky behavior
Mark Holmquist [Wed, 15 Aug 2012 22:44:35 +0000 (15:44 -0700)]
Add in a comment about some funky behavior

At Gabriel's behest, I've added some information about a test that
is inconsistent with the actual behavior of the parser. Please
consider fixing this if you have the time, else, the parser will
get fixed sometime in the future by someone on the parsoid team.

Change-Id: I2c5db4d9eab6f5f9e84aa354a22eeb2b5124bb0a

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 15 Aug 2012 19:44:32 +0000 (19:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ieeb8ea6edf05429cd6bbae96bf15c149df863fbe

11 years agoMerge "allow localization of elements via data-msg-text and data-msg-html"
Catrope [Wed, 15 Aug 2012 18:42:40 +0000 (18:42 +0000)]
Merge "allow localization of elements via data-msg-text and data-msg-html"

11 years agoallow localization of elements via data-msg-text and data-msg-html
jrobson [Tue, 14 Aug 2012 00:15:24 +0000 (17:15 -0700)]
allow localization of elements via data-msg-text and data-msg-html

to distinguish from attributes i've reversed the order e.g. instead of
html-msg i've used msg-html

i've added the data prefix to allow for html validation.

this is important as an OPTION tag cannot have any children so currently
there is no way to localize it. This provides a route.

Documentation needed.

Change-Id: Iefdbbf0e55ab3c6c6a9564b568980a7319bc4453

11 years agoMerge "Allow aliased field names with separated syntax"
Catrope [Wed, 15 Aug 2012 18:01:18 +0000 (18:01 +0000)]
Merge "Allow aliased field names with separated syntax"

11 years agoMerge "Allow importing pages as subpage"
Catrope [Wed, 15 Aug 2012 17:54:55 +0000 (17:54 +0000)]
Merge "Allow importing pages as subpage"

11 years agoDrop the user option 'nolangconversion'.
Liangent [Wed, 15 Aug 2012 16:33:05 +0000 (00:33 +0800)]
Drop the user option 'nolangconversion'.

Currently no core code is using it, searched
by grepping nolangconversion in core.

Change-Id: I92e8de7dc5100ef2fb346277966246339d3dcf79

11 years agoMerge "Follow-up I6b0c58fb (d50b416): add message to messages.inc"
Siebrand [Wed, 15 Aug 2012 13:28:36 +0000 (13:28 +0000)]
Merge "Follow-up I6b0c58fb (d50b416): add message to messages.inc"

11 years agoAllow aliased field names with separated syntax
umherirrender [Wed, 15 Aug 2012 13:16:09 +0000 (15:16 +0200)]
Allow aliased field names with separated syntax

This introduce the syntax from aliased table names for aliased field
names into the abstract database layer:

array( 'alias' => 'field' ) gives 'field AS alias'

This patch also includes changes to query pages, api and some more
places to show, how the new syntax looks in "production".

This allow us to remove the "AS" for Non-PostgreSQL databases, if we
want that.

Change-Id: I5f0de1c2f29092c173aec3de93ffdef436799e8d

11 years agoMerge "(bug 37638) Remove calls to deprecated LogPage::logName method."
IAlex [Wed, 15 Aug 2012 10:28:12 +0000 (10:28 +0000)]
Merge "(bug 37638) Remove calls to deprecated LogPage::logName method."

11 years agoFollow-up I6b0c58fb (d50b416): add message to messages.inc
Alexandre Emsenhuber [Wed, 15 Aug 2012 09:47:23 +0000 (11:47 +0200)]
Follow-up I6b0c58fb (d50b416): add message to messages.inc

Change-Id: I81cba3c97b124661aefacf3affce9ef86311ba31

11 years agoMoved "action links" from LogEventsList to LogFormatter.
Alexandre Emsenhuber [Sat, 30 Jun 2012 18:18:03 +0000 (20:18 +0200)]
Moved "action links" from LogEventsList to LogFormatter.

* This allow extensions to set both action text and links directly
  from a subclass LogFormatter instead of having to use the LogLine
  hooks for this purpose.
* Moved stuff for logs that already use a subclass of LogFormatter
  there and the remaining in LegacyLogFormatter. I had to an hack
  there so that the pass-by-ref of the comment parameter in the
  LogLine hook still works.
* Removed RevisionDeleter::getLogLinks(), included it directly in
  DeleteLogFormatter::getActionLinks(); it have a so ugly signature
  that is very hard to use it somewhere else (and maintain backward
  compatibility too).
* Removed the message caching system in LogEventsList since it's
  not used anymore.
* Some misc cleanup to LogEventsList::logLine()

Change-Id: I96d696eed2ae35f5f5640e422ceb0a5b0c33babf

11 years agoAllow importing pages as subpage
umherirrender [Wed, 15 Aug 2012 08:07:26 +0000 (10:07 +0200)]
Allow importing pages as subpage

Adding a "root page" input to Special:Import, which is used as prefix
before each imported page. With this option, it is possible to import
pages as subpage of a user or a project page.

On de.wp the import is often done into a low used namespace (100 or 101)
and than moved to the user space. Doing this in one step, makes things
easier.

Change-Id: Id5dbf742295a1bbddd8cb6eaa09fb28051f26613

11 years agoPass the 'returntoquery' parameter when clicking on a language selector link.
Alexandre Emsenhuber [Wed, 15 Aug 2012 08:03:51 +0000 (10:03 +0200)]
Pass the 'returntoquery' parameter when clicking on a language selector link.

Also updated the check to pass the 'returnto' parameter
to be consistent with I2714ba1c (56dbeaa).

Change-Id: I009089c9e943952287cc5515515f6a28ca194b16

11 years ago(bug 37638) Remove calls to deprecated LogPage::logName method.
Dereckson [Mon, 18 Jun 2012 22:56:55 +0000 (00:56 +0200)]
(bug 37638) Remove calls to deprecated LogPage::logName method.

The LogPage::logName method has been deprecated in 1.19,
warnings being planned in 1.21.

This change removes any call in the MediaWiki core to this
deprecated method.

Removing extra whitespaces/tabs in includes/ProtectionForm.php.

Change-Id: I1907f17341ecb6448967a5283e3c913778dcb1a9

11 years agoMerge "Fix checks to pass or display "return to" links in Special:UserLogin."
Catrope [Wed, 15 Aug 2012 01:38:00 +0000 (01:38 +0000)]
Merge "Fix checks to pass or display "return to" links in Special:UserLogin."

11 years agoMerge "(bug 24437) Add nofollow to image link"
Catrope [Wed, 15 Aug 2012 01:37:24 +0000 (01:37 +0000)]
Merge "(bug 24437) Add nofollow to image link"

11 years agoMerge "store text length in local var in Preprocess::processToObj/Xml"
Aaron Schulz [Wed, 15 Aug 2012 00:22:10 +0000 (00:22 +0000)]
Merge "store text length in local var in Preprocess::processToObj/Xml"

11 years agoMerge "Notice: Undefined property: stdClass::$hitcount in list=tags"
Catrope [Wed, 15 Aug 2012 00:17:03 +0000 (00:17 +0000)]
Merge "Notice: Undefined property: stdClass::$hitcount in list=tags"

11 years agoMerge "output errors as debug info in api, when display_errors is on"
Catrope [Wed, 15 Aug 2012 00:13:44 +0000 (00:13 +0000)]
Merge "output errors as debug info in api, when display_errors is on"

11 years agoMerge "(bug 31040) Fixed $wgSecureLogin effect on returnto."
Catrope [Wed, 15 Aug 2012 00:12:47 +0000 (00:12 +0000)]
Merge "(bug 31040) Fixed $wgSecureLogin effect on returnto."

11 years agoMerge "Follow-up I47412b67: pass an array of query parameters to Linker::link()"
Aaron Schulz [Tue, 14 Aug 2012 23:17:59 +0000 (23:17 +0000)]
Merge "Follow-up I47412b67: pass an array of query parameters to Linker::link()"

11 years agoMerge "(bug 33471) Changed detection of secure cookies."
Demon [Tue, 14 Aug 2012 23:14:40 +0000 (23:14 +0000)]
Merge "(bug 33471) Changed detection of secure cookies."

11 years agoMerge "(bug 36776) Changing User::getNewtalk to use $wgDisableAnonTalk."
Demon [Tue, 14 Aug 2012 23:14:20 +0000 (23:14 +0000)]
Merge "(bug 36776) Changing User::getNewtalk to use $wgDisableAnonTalk."

11 years agoAdded UserCache class for doing name/title batch lookups.
Aaron Schulz [Sat, 19 May 2012 20:41:41 +0000 (13:41 -0700)]
Added UserCache class for doing name/title batch lookups.

* Made Special:ListFiles be the first user of this class.

Change-Id: I2ea068d4765fe6ae12445786c38217119e79f823

11 years agooutput errors as debug info in api, when display_errors is on
umherirrender [Tue, 14 Aug 2012 20:00:04 +0000 (22:00 +0200)]
output errors as debug info in api, when display_errors is on

With format=xml errors never outputted, only in the html version

Change-Id: I4364cee041ea42ed3a4ab43ac77a1ba3cc2cb886

11 years agoNotice: Undefined property: stdClass::$hitcount in list=tags
umherirrender [Tue, 14 Aug 2012 19:34:09 +0000 (21:34 +0200)]
Notice: Undefined property: stdClass::$hitcount in list=tags

Full message:
Notice: Undefined property: stdClass::$hitcount in
..\includes\api\ApiQueryTags.php on line 76

Change-Id: I773e0a5f70ee025033899d6950336dff0829e09b

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 14 Aug 2012 19:32:01 +0000 (19:32 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id509f00680d69ec2a5de30fd5762e0bf50476e76

11 years agoMerge "New hook 'ParserTestGlobals'"
Demon [Tue, 14 Aug 2012 17:53:58 +0000 (17:53 +0000)]
Merge "New hook 'ParserTestGlobals'"

11 years agoMerge "(bug 38406) Properly quote table names in DatabaseBase::tableName()"
Demon [Tue, 14 Aug 2012 17:42:20 +0000 (17:42 +0000)]
Merge "(bug 38406) Properly quote table names in DatabaseBase::tableName()"

11 years agoPHP 5.4 has JSON_PRETTY_PRINT
Reedy [Sun, 12 Aug 2012 19:31:01 +0000 (20:31 +0100)]
PHP 5.4 has JSON_PRETTY_PRINT

Use this conditionally when $isHtml is true, and is
also running on PHP > = 5.4. Else return default 0

Change-Id: Ief775720a99d1a305c3f9f4ba7cc04eb96817fb3

11 years agoFollow-up I47412b67: pass an array of query parameters to Linker::link()
Alexandre Emsenhuber [Tue, 14 Aug 2012 11:27:54 +0000 (13:27 +0200)]
Follow-up I47412b67: pass an array of query parameters to Linker::link()

Change-Id: I3cdc0a57a9cda740c482addd2c9c833a70897381

11 years ago(bug 36524) "Show" options are now remembered between successive clicks.
Alexandre Emsenhuber [Mon, 16 Jul 2012 08:45:27 +0000 (10:45 +0200)]
(bug 36524) "Show" options are now remembered between successive clicks.

The problem is that $options in SpecialRecentChanges::makeOptionsLink()
can that values set to false and wfArrayToCgi() omits such items;
instead they have to be explicitely converted to "0" to not be omitted.

Change-Id: I20af27fc4e012fec36d48b9120ec49a39f5cbb1f

11 years agoMerge "Fix permissions check to show "hide" buttons."
Siebrand [Tue, 14 Aug 2012 10:28:32 +0000 (10:28 +0000)]
Merge "Fix permissions check to show "hide" buttons."

11 years agoFollow-up I47412b67 (dde8471): convert string query to array
Alexandre Emsenhuber [Tue, 14 Aug 2012 09:51:26 +0000 (11:51 +0200)]
Follow-up I47412b67 (dde8471): convert string query to array

If we detect and warn that the $query parameter is in an incorrect
format, we may as well convert it to the correct one.

Change-Id: Ief137ab758c65ec562c2a523f76b1a4f8c2617b5

11 years agoMerge "Added utility method taking an array of elements and wrapping each element...
Aaron Schulz [Tue, 14 Aug 2012 03:25:13 +0000 (03:25 +0000)]
Merge "Added utility method taking an array of elements and wrapping each element in it's own array."

11 years agoMerge "Added GenericArrayObject class and associated test base"
Aaron Schulz [Tue, 14 Aug 2012 03:22:01 +0000 (03:22 +0000)]
Merge "Added GenericArrayObject class and associated test base"

11 years agoAdded GenericArrayObject class and associated test base
jeroendedauw [Fri, 27 Jul 2012 18:31:23 +0000 (20:31 +0200)]
Added GenericArrayObject class and associated test base

Change-Id: Id7e9b59c7ed4a9338744db58935307ecb4bc441f

11 years agoNew hook 'ParserTestGlobals'
Daniel Werner [Mon, 13 Aug 2012 22:18:50 +0000 (00:18 +0200)]
New hook 'ParserTestGlobals'

Allows to set globals before running parser tests.

Change-Id: Iea057b992b260611bca7f3adade2c8214b0dcea2

11 years agoMerge "add 'editprotected' right to list of available rights"
Aaron Schulz [Mon, 13 Aug 2012 20:52:11 +0000 (20:52 +0000)]
Merge "add 'editprotected' right to list of available rights"

11 years agoMerge "Move method to its using test class rather then having a public static thing...
Aaron Schulz [Mon, 13 Aug 2012 20:14:19 +0000 (20:14 +0000)]
Merge "Move method to its using test class rather then having a public static thing in the base test class"

11 years agoMerge "Fix for assertArrayEquals. Was throwing fatal for object elements"
Aaron Schulz [Mon, 13 Aug 2012 20:09:10 +0000 (20:09 +0000)]
Merge "Fix for assertArrayEquals. Was throwing fatal for object elements"

11 years agoMerge "Improve documentation of maintenance scripts."
Aaron Schulz [Mon, 13 Aug 2012 20:05:19 +0000 (20:05 +0000)]
Merge "Improve documentation of maintenance scripts."

11 years agoMerge "add 'reupload-own' right to list of available rights"
Aaron Schulz [Mon, 13 Aug 2012 20:04:39 +0000 (20:04 +0000)]
Merge "add 'reupload-own' right to list of available rights"

11 years agoMerge "add 'passwortreset' right to list of available rights"
Aaron Schulz [Mon, 13 Aug 2012 20:04:30 +0000 (20:04 +0000)]
Merge "add 'passwortreset' right to list of available rights"

11 years agoMerge "add 'patrolmarks' right to list of available rights"
Aaron Schulz [Mon, 13 Aug 2012 20:04:18 +0000 (20:04 +0000)]
Merge "add 'patrolmarks' right to list of available rights"

11 years agoMerge "Fix documentation of WikiPage::doDeleteArticle(Real)?()"
Aaron Schulz [Mon, 13 Aug 2012 20:03:35 +0000 (20:03 +0000)]
Merge "Fix documentation of WikiPage::doDeleteArticle(Real)?()"

11 years agoMerge "(bug 39296) Fix broken table sorting"
Catrope [Mon, 13 Aug 2012 20:01:40 +0000 (20:01 +0000)]
Merge "(bug 39296) Fix broken table sorting"

11 years ago(bug 39296) Fix broken table sorting
Brad Jorsch [Mon, 13 Aug 2012 14:12:57 +0000 (10:12 -0400)]
(bug 39296) Fix broken table sorting

Javascript's Array.sort wants -1, 0, or 1. Not false, true, or 0.

Change-Id: I2cb73668793092b53be0c1c6f7ffc647a88bf30a

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 13 Aug 2012 19:43:35 +0000 (19:43 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I655913611a5ec051ee4c01d3c2e20245e2f647c0

11 years agoMerge "Added a Redis client for object cache storage"
Aaron Schulz [Mon, 13 Aug 2012 18:05:29 +0000 (18:05 +0000)]
Merge "Added a Redis client for object cache storage"

11 years agoMerge "remove bizarre overflow:hidden from lists in sidebar on Vector"
Trevor Parscal [Mon, 13 Aug 2012 16:54:14 +0000 (16:54 +0000)]
Merge "remove bizarre overflow:hidden from lists in sidebar on Vector"

11 years agoFix documentation of WikiPage::doDeleteArticle(Real)?()
Alexandre Emsenhuber [Mon, 13 Aug 2012 14:09:25 +0000 (16:09 +0200)]
Fix documentation of WikiPage::doDeleteArticle(Real)?()

- The $suppress parameter is a boolean indicating whether
  revision will be suppressed
- Added @since to WikiPage::doDeleteArticleReal()

Change-Id: I3af14f8cc7bf771f4d07215ca1dba2d6b6f05553

11 years ago(bug 31040) Fixed $wgSecureLogin effect on returnto.
Tyler Romeo [Fri, 10 Aug 2012 18:59:08 +0000 (14:59 -0400)]
(bug 31040) Fixed $wgSecureLogin effect on returnto.

Added parameter to Title::getFullURL to allow specification
of a protocol rather than assuming PROTO_RELATIVE. Also
added an accompanying parameter to Skin::makeSpecialUrl
to make a link for a specific protocol.

Cleaned up the creation of personal URLs in SkinTemplate.php
so that when $wgSecureLogin is enabled, the returnto
query is not lost in the process.

Note: This will only work if $wgServer is set to a
protocol relative URL.

Change-Id: Iba48eb3620fb3a721220364185f7abfd902412d0
Signed-off-by: Tyler Romeo <tylerromeo@gmail.com>
11 years agoadd 'patrolmarks' right to list of available rights
umherirrender [Mon, 13 Aug 2012 07:51:02 +0000 (09:51 +0200)]
add 'patrolmarks' right to list of available rights

now it is shown and selectable on api (list=allusers&aurights=) and
Special:GlobalGroupPermissions (from CentralAuth)

Change-Id: I9464109c2d1648e5668e545b9c7109ced656f4d7

11 years agoadd 'reupload-own' right to list of available rights
umherirrender [Mon, 13 Aug 2012 07:43:51 +0000 (09:43 +0200)]
add 'reupload-own' right to list of available rights

Follow up bug 5057, now it is shown and selectable on api
(list=allusers&aurights=) and Special:GlobalGroupPermissions
(from CentralAuth)

Change-Id: Ic7c57c8b29a385ad9c1ad8328ee08af758e3a4f7

11 years agoremove bizarre overflow:hidden from lists in sidebar on Vector
MatmaRex [Sat, 11 Aug 2012 23:34:25 +0000 (01:34 +0200)]
remove bizarre overflow:hidden from lists in sidebar on Vector

I have no idea what this rule was there for. It serves no purpose (the
bullets are already hidden by list-style-type:none several lines above
it), and it only makes it harder to add a bullet point there, e.g. to mark
featured/good articles in interwiki links. I spent 15 minutes figuring out
why the hell they are staying hidden after I set list-style-type to disc.

I believe that this one line was the sole cause of awful hacks used for
the purpose of marking FA/GA interwikis, such as the one on en.wiki[1]
or pl.wiki[2].

[1] https://en.wikipedia.org/wiki/MediaWiki:Vector.css - grep for
    {{tl|Link GA}}, {{tl|Link FA}}

[2] https://pl.wikipedia.org/wiki/MediaWiki:Gadget-featured-articles-links.css
    - grep for .skin-vector

Patchset 2: add word-wrap:break-word per Trevor's suggestion.

Change-Id: Ic993b0fbcc5e468effab3552b032ff4946c18b46

11 years agoadd 'passwortreset' right to list of available rights
umherirrender [Mon, 13 Aug 2012 07:29:44 +0000 (09:29 +0200)]
add 'passwortreset' right to list of available rights

Follow up bug 30636, now it should be shown and selectable on api
(list=allusers&aurights=) and Special:GlobalGroupPermissions (from
CentralAuth)

Change-Id: Id09d144f523c1ed687bd766945dbf9281e1d38c6

11 years agoadd 'editprotected' right to list of available rights
umherirrender [Mon, 13 Aug 2012 06:46:00 +0000 (08:46 +0200)]
add 'editprotected' right to list of available rights

Follow up bug 13137, now it should be shown and selectable on
Special:GlobalGroupPermissions (of CentralAuth)

Change-Id: Iebdf0454ff3636585983b07eab3d2387f404498f

11 years agoMerge "Clean up mw.util.jsMessage"
Trevor Parscal [Mon, 13 Aug 2012 03:18:41 +0000 (03:18 +0000)]
Merge "Clean up mw.util.jsMessage"

11 years agoRemove workaround hack for php bug 46944
Reedy [Sun, 12 Aug 2012 20:11:34 +0000 (21:11 +0100)]
Remove workaround hack for php bug 46944

https://bugs.php.net/bug.php?id=46944

Fixed for 5.3.0, and as we require >= 5.3.2, workaround is redundant

http://php.net/ChangeLog-5.php

Change-Id: I567466c0c747dba2f903e9258d0f06f725cefb8f

11 years agoFix for assertArrayEquals. Was throwing fatal for object elements
jeroendedauw [Sun, 12 Aug 2012 20:55:55 +0000 (22:55 +0200)]
Fix for assertArrayEquals. Was throwing fatal for object elements

Change-Id: I8fa45237e028a814e0895ac0f2b3723394b50d6b

11 years agoMerge "Localisation updates from http://translatewiki.net."
IAlex [Sun, 12 Aug 2012 20:10:52 +0000 (20:10 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMove method to its using test class rather then having a public static thing in the...
jeroendedauw [Sun, 12 Aug 2012 19:47:06 +0000 (21:47 +0200)]
Move method to its using test class rather then having a public static thing in the base test class

Change-Id: Id82225d0fb65dcd30b5724ee4f2d7838dfcb5ea6

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 12 Aug 2012 19:44:03 +0000 (19:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I18d4e10c42bbda638eeb887a473e5ee2ee90909f

11 years agoAdded utility method taking an array of elements and wrapping each element in it...
jeroendedauw [Sun, 12 Aug 2012 19:37:54 +0000 (21:37 +0200)]
Added utility method taking an array of elements and wrapping each element in it's own array.

Useful for data providers that only return a single argument.

Change-Id: I220948865e3de395363bf8858098e61de3c8d35b

11 years agoAdded missing @since tags and fixed style
jeroendedauw [Sun, 12 Aug 2012 19:35:37 +0000 (21:35 +0200)]
Added missing @since tags and fixed style

Change-Id: I8941345be8f754bda40f4c36cf2082ca3d408c50

11 years agoMerge "Follow-up I1fc22b16 (06db921): Cast "required" parameter to boolean"
Nikerabbit [Sun, 12 Aug 2012 17:58:58 +0000 (17:58 +0000)]
Merge "Follow-up I1fc22b16 (06db921): Cast "required" parameter to boolean"

11 years agoFollow-up I1fc22b16 (06db921): Cast "required" parameter to boolean
Alexandre Emsenhuber [Sun, 12 Aug 2012 16:59:42 +0000 (18:59 +0200)]
Follow-up I1fc22b16 (06db921): Cast "required" parameter to boolean

Change-Id: I24e678500ab6b207b1d0ef32dd901913d8f131ed

11 years agoMerge "Improve handling of the required argument in HTMLForm field definitions"
IAlex [Sun, 12 Aug 2012 16:58:36 +0000 (16:58 +0000)]
Merge "Improve handling of the required argument in HTMLForm field definitions"

11 years agoClean up mw.util.jsMessage
Timo Tijhof [Sun, 12 Aug 2012 05:04:50 +0000 (07:04 +0200)]
Clean up mw.util.jsMessage

* Re-use hideMessage()
* Actually set messageBoxEvents to true so that the one-time
  setup is only set up once.
* Optimize hex colors ({6}->{3}).
  While at it, also ran it for the rest of the file.

* Follows-up I41c70d78

Change-Id: I1863b62003edc825fdefe53d02c2d22e36409234

11 years agoUpdate message specialpages-group-login to match other similar messages
Reedy [Sat, 11 Aug 2012 23:28:58 +0000 (00:28 +0100)]
Update message specialpages-group-login to match other similar messages

Swap signup for create account

Change-Id: I3b90729a345946b48c1fc30e1d3bdd4a192f5283

11 years agoImprove handling of the required argument in HTMLForm field definitions
jeroendedauw [Sat, 11 Aug 2012 22:23:46 +0000 (00:23 +0200)]
Improve handling of the required argument in HTMLForm field definitions

array( 'required' => false ) will now result in the field not being required rather then the unexpected opossite.

And this is now possible (without doing some extra if)

array( 'required' => getSomeBoolean() )

Change-Id: I1fc22b16ab1fa17111c48aa664aaf47de5f7075a

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Sat, 11 Aug 2012 20:48:09 +0000 (22:48 +0200)]
Improve documentation of maintenance scripts.

Change-Id: I29dd0d4d18ea3d1b9795fac2f0b74b04ef2d955a

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 11 Aug 2012 19:11:00 +0000 (19:11 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib0ec788f7d5031e7e1eeab4c9da5d1cc78c1d6a9

11 years agoMerge "(bug 34264) Add id="t-print" to the print toolbox link."
Krinkle [Sat, 11 Aug 2012 15:48:18 +0000 (15:48 +0000)]
Merge "(bug 34264) Add id="t-print" to the print toolbox link."

11 years ago(bug 34264) Add id="t-print" to the print toolbox link.
Daniel Friesen [Sat, 11 Aug 2012 04:48:00 +0000 (21:48 -0700)]
(bug 34264) Add id="t-print" to the print toolbox link.

Change-Id: I62c2d6e4c194c4905ae1942f723a41fd20df3a98

11 years agoMerge "Add rule in Uzbek language converter"
Nikerabbit [Sat, 11 Aug 2012 13:52:21 +0000 (13:52 +0000)]
Merge "Add rule in Uzbek language converter"

11 years agoMerge "jQuery 1.8"
Krinkle [Sat, 11 Aug 2012 10:51:27 +0000 (10:51 +0000)]
Merge "jQuery 1.8"

11 years agojsMessage: Redesign in Vector/Monobook as bubble with auto-hide
Trevor Parscal [Fri, 3 Aug 2012 18:50:36 +0000 (11:50 -0700)]
jsMessage: Redesign in Vector/Monobook as bubble with auto-hide

A bit like the "Growl" notifications on Mac.

The message will auto-hide in all skins, which is especially useful
with VisualEditor because you it does most things through ajax which
means that a msg in there could be visible for way longer than it
should be with no way of hiding it.

By being designed as a floating bubble instead of a static positioned
element in regular document flow it also prevents the page flow
from being interrupted and moved down a bit. Again that was
especially annoying in VisualEditor because jsMessage forced itself
between the tab bar and the editor toolbar, which were meant to be
against each other.

Auto-hiding is disabled while the mouse if hovering the message.
The timer starts again when the mouse is no longer on it.

Also:
* cleaned up some whitespace issues in vector.js
* Removed jshintignore for skins/common
  Removed whitelisting of 'mw' global
  skins/common may not be prefect, but at least this way it gives
  warnings inside the code when writing/editing something, which is
  still useful.
  It helped to catch that 'mw' was used from the global scope.

Change-Id: I41c70d78c8ed8aeb91a598dc4a7b26dfad8d8f6c

11 years agoRemoved useless fj_path_sha1 field to save space.
Aaron Schulz [Sat, 11 Aug 2012 06:03:31 +0000 (23:03 -0700)]
Removed useless fj_path_sha1 field to save space.

* Searches by path are not used by any code, and small blobs
  are stored with the rest of the row in innoDB, so there is
  no gain there. The field is mostly a hangover from a use case
  that never materialized (where it would be indexed).

Change-Id: I5515f15bd35823736138a79a4942c7207e519e5c

11 years ago[FileBackend] Added UTF-8 restriction to file names to avoid CF breakage.
Aaron [Fri, 10 Aug 2012 21:25:59 +0000 (14:25 -0700)]
[FileBackend] Added UTF-8 restriction to file names to avoid CF breakage.

Change-Id: Id0f246c80f2595fba96e99b3bbe778e89dbc6e84

11 years agoAdd rule in Uzbek language converter
robin [Fri, 10 Aug 2012 20:59:59 +0000 (22:59 +0200)]
Add rule in Uzbek language converter

Per user feedback, make sure yo? gets converted to ??, and not to ???

Change-Id: I7a161cfd4c2bc782091ef3844ff5facf0cf27278

11 years ago(bug 33471) Changed detection of secure cookies.
Tyler Romeo [Fri, 10 Aug 2012 20:27:13 +0000 (16:27 -0400)]
(bug 33471) Changed detection of secure cookies.

Changed code in Setup.php that checks whether or
not to use secure cookies. Previously it just
looked at $wgServer, which doesn't work with
protocol-relative URLs. Now it uses WebRequest::detectProtocol(),
which in turn checks $_SERVER.

Change-Id: I6adc7e3e9bd224608b13cbb748bdd2b61edaa764
Signed-off-by: Tyler Romeo <tylerromeo@gmail.com>
11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 10 Aug 2012 19:33:03 +0000 (19:33 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoPass the parameters to the error message in UploadStash::stashFile().
Alexandre Emsenhuber [Fri, 10 Aug 2012 19:14:01 +0000 (21:14 +0200)]
Pass the parameters to the error message in UploadStash::stashFile().

Currently it shows the error message without any parameters since
$error is an array with the message name and its parameters, and
the Message class thinks that this is a message with its fallbacks
(see wfMessageFallback())

Change-Id: I5d825144795ad108f0a71f90cc530629c5c98a41

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

Change-Id: I37f865ec089be6fdc78bec4736144b2a7749f06f

11 years agoMerge "[FileBackend] Added option for copy script to skip non-UTF8 filenames."
Demon [Fri, 10 Aug 2012 18:47:03 +0000 (18:47 +0000)]
Merge "[FileBackend] Added option for copy script to skip non-UTF8 filenames."

11 years agoMerge "Trim $dbSupport in WebInstallerPage.php"
IAlex [Fri, 10 Aug 2012 17:40:01 +0000 (17:40 +0000)]
Merge "Trim $dbSupport in WebInstallerPage.php"

11 years ago[FileBackend] Added option for copy script to skip non-UTF8 filenames.
Aaron Schulz [Fri, 10 Aug 2012 05:23:44 +0000 (22:23 -0700)]
[FileBackend] Added option for copy script to skip non-UTF8 filenames.

Change-Id: I9b48012d890c2c4589984576a31d84dde535ad5b

11 years agoMerge "(bug 38388) Add documentation for MediaWiki:Config-support-info"
Siebrand [Fri, 10 Aug 2012 15:34:19 +0000 (15:34 +0000)]
Merge "(bug 38388) Add documentation for MediaWiki:Config-support-info"

11 years ago(bug 38388) Add documentation for MediaWiki:Config-support-info
Liangent [Fri, 10 Aug 2012 15:16:50 +0000 (23:16 +0800)]
(bug 38388) Add documentation for MediaWiki:Config-support-info

Change-Id: I7463974d1ed2811150bfe50f291fc81f3e7d4ea0

11 years agoTrim $dbSupport in WebInstallerPage.php
Liangent [Fri, 10 Aug 2012 15:11:07 +0000 (23:11 +0800)]
Trim $dbSupport in WebInstallerPage.php

This removes the trailing "\n" which introduces an extra new line.

Change-Id: I74d5d1c95259ca5144932fbe8aa50cb69e036054

11 years agojQuery 1.8
Reedy [Thu, 2 Aug 2012 20:04:37 +0000 (21:04 +0100)]
jQuery 1.8

http://blog.jquery.com/2012/08/09/jquery-1-8-released/

Change-Id: I7b85e1382615e76b1737c7c52691cf8079a55f6e

11 years agoFollow-up I62ba23bd (a47892a): update AutoLoader comment.
Alexandre Emsenhuber [Fri, 10 Aug 2012 09:58:08 +0000 (11:58 +0200)]
Follow-up I62ba23bd (a47892a): update AutoLoader comment.

Also moved the the section to the correct location.

Change-Id: I9cd2d65f7473c513b1fe86aa53e9f83be08a44da

11 years agoFix typo: occured -> occurred.
Siebrand Mazeland [Fri, 10 Aug 2012 08:59:55 +0000 (10:59 +0200)]
Fix typo: occured -> occurred.

Change-Id: I5e66fdd52791487f81796ae1965ac31c94b36182

11 years agoFix documentation for hook AbortNewAccount.
Siebrand Mazeland [Thu, 9 Aug 2012 22:36:13 +0000 (00:36 +0200)]
Fix documentation for hook AbortNewAccount.

Change-Id: I8982f5f512eec0742fe5232c2e68396e9b1c95f4

11 years agoMerge "[FileBackend] Moved filerepo/backend/ up to filebackend"
Demon [Thu, 9 Aug 2012 20:07:47 +0000 (20:07 +0000)]
Merge "[FileBackend] Moved filerepo/backend/ up to filebackend"