lhc/web/wiklou.git
10 years agoAdd ChangesList function deprecation to release notes
aude [Mon, 8 Jul 2013 09:54:35 +0000 (09:54 +0000)]
Add ChangesList function deprecation to release notes

Follow-up to I9957696f

Change-Id: I240e9485011e474013e40490fa5f20a3ef742d23

10 years agoBlacklist plural checks for 'cdo'
Siebrand Mazeland [Mon, 8 Jul 2013 07:25:00 +0000 (09:25 +0200)]
Blacklist plural checks for 'cdo'

Per
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Nmembers/cdo_no_PLURAL:_in_our_language

Change-Id: I87253da38d7cb726250927939c33cc6b2cbdc6b0

10 years agoUpdate formatting
Siebrand Mazeland [Mon, 8 Jul 2013 07:23:07 +0000 (09:23 +0200)]
Update formatting

Reindent file.

Change-Id: I83415327289469ca1965a1f7b8a96fdcd4f9ad45

10 years agoDon't queue refreshLinks jobs on null edit
Tim Starling [Fri, 5 Jul 2013 04:49:02 +0000 (14:49 +1000)]
Don't queue refreshLinks jobs on null edit

Bug 50785: don't queue refreshLinks jobs on null edit or API
action=purge forcelinkupdate=1, since these actions are commonly
performed in order to clear the cache of a single page, and queueing
millions of jobs is not the response the user usually expects.

Change-Id: I2dbb5d21fa6b876adefd6bcfc93a83c5904d8d13

10 years agoAvoid date()/gmdate() for date formatting
umherirrender [Sat, 6 Jul 2013 19:59:35 +0000 (21:59 +0200)]
Avoid date()/gmdate() for date formatting

Added a MWTimestamp::format method to format a timestamp object in the
given pattern. This avoids date(), which needs the local time
zone corretly set on the server, which is assumed at the moment in
Setup.php

Added MWTimestamp::getInstance for gmdate() and
MWTimestamp::getLocalInstance for date() to create a MWTimestamp object
and use it as inline statement.
Also MWTimestamp::setTimezone and MWTimestamp::getTimzone was added for
timezone handling.

Change-Id: I812aa013be2f4380e0cf10dc465202756fe8347b

10 years agodate_default_timezone_set unneeded in Parser
umherirrender [Sat, 22 Jun 2013 09:33:19 +0000 (11:33 +0200)]
date_default_timezone_set unneeded in Parser

Since r88178 the global $wgLocaltimezone is always set and
date_default_timezone_set is always called, this makes explicit calls
before use of date() unneeded.

Change-Id: I7559c3699920837849696eabe6fee16179159697

10 years agoHave Chunked upload jobs bail if cannot associate with session.
Brian Wolff [Mon, 8 Jul 2013 01:37:02 +0000 (22:37 -0300)]
Have Chunked upload jobs bail if cannot associate with session.

Also add docs about how suhosin.session.encrypt tends to break
this (I was thinking about throwing an exception if the setting was
on in RequestContext::importScopedSession, but the docs seem to
indicate that you can tweak how the session is encrypted, so it
sounds like somebody could set up their php so everything worked).

Bug: 48371
Change-Id: I5a471c1f941fce046451fbb9abce1c830185cabb

10 years agoThumbnails: Set margin on magnify icon
Derk-Jan Hartman [Sun, 7 Jul 2013 20:42:06 +0000 (22:42 +0200)]
Thumbnails: Set margin on magnify icon

This prevents the caption from running straight up to the magnify
icon. We use the same offset as the padding used for the caption

Change-Id: Ia5af4b5fecf965ffd43f708c63671182d126edf2

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

Change-Id: I5e01e14f913210f56890636e3a6c59f4db7bbc30

10 years agoCorrectly use $wgFeedLimit in page history feed
MatmaRex [Sun, 7 Jul 2013 18:39:53 +0000 (20:39 +0200)]
Correctly use $wgFeedLimit in page history feed

The previous behavior enforced a minimal maximum of 10, even if
$wgFeedLimit was set to a lower value.

Also grepped everything for $wgFeedLimit and fixed all other
error-prone (but correct) uses.

Bug: 50886
Change-Id: Ia81bbadfcf4270b0f932b543265ca37f364530f3

10 years agojquery.makeCollapsible: Togglers accessibility
MatmaRex [Sun, 7 Jul 2013 18:26:28 +0000 (20:26 +0200)]
jquery.makeCollapsible: Togglers accessibility

Use tabindex="0" and role="button" for all togglers, custom or not.

Bug: 17616
Change-Id: If59590de159a2756bf5b859ce48a23e1af7650fa

10 years agofilebackend: normalize paths used in locking
Aaron Schulz [Sat, 6 Jul 2013 22:06:38 +0000 (15:06 -0700)]
filebackend: normalize paths used in locking

Change-Id: I0d823e4d20c89a22ad89a6af8739075f7a10c235

10 years agoShow change tags on diffs
MatmaRex [Sat, 6 Jul 2013 20:53:27 +0000 (22:53 +0200)]
Show change tags on diffs

This adds two very simple queries for every diff page view.

It could be made to only add one (loading tags for both revisions at
once), but it would be a little ugly.

It could even be made to add zero, but this would require either
rewriting and duplicating a lot of code here and constructing
Revisions by hand or making the Revision itself know about its tags.

Bug: 25824
Bug: 49602
Change-Id: Ic2ae58c703db7ceee5de4b320229d8c93810a73b

10 years agoMerge "Tablesorter: colSpan property was incorrectly accessed"
jenkins-bot [Sat, 6 Jul 2013 19:31:42 +0000 (19:31 +0000)]
Merge "Tablesorter: colSpan property was incorrectly accessed"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 6 Jul 2013 18:38:36 +0000 (18:38 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib392d87ec7efdaa4d446ee57579229915a3f21d8

10 years agoAdded log_search tag support to ManualLogEntry
Aaron Schulz [Sat, 6 Jul 2013 06:33:59 +0000 (23:33 -0700)]
Added log_search tag support to ManualLogEntry

Change-Id: I7e57cd3f2b8790aecd1c1831325c59a2be600780

10 years agoTablesorter: colSpan property was incorrectly accessed
Derk-Jan Hartman [Mon, 1 Jul 2013 21:19:50 +0000 (23:19 +0200)]
Tablesorter: colSpan property was incorrectly accessed

Due to mixing up of colspan attribute and colSpan property, the
condition always resolved to 1. This effectively made it a
headerIndex. Renamed it as such and moved the building of the
header/column mappings into the buildHeaders function, where it is
more suited.

Bug: 47654
Change-Id: I264afb565afbe555733bad499bad6f9c87894982

10 years agoMerge "mediawiki.page.startup: Code cleanup"
TheDJ [Sat, 6 Jul 2013 13:31:48 +0000 (13:31 +0000)]
Merge "mediawiki.page.startup: Code cleanup"

10 years agoMerge "SpecialUserlogin: fix typo in comment"
TheDJ [Sat, 6 Jul 2013 13:29:13 +0000 (13:29 +0000)]
Merge "SpecialUserlogin: fix typo in comment"

10 years agoMerge "jquery.makeCollapsible: fix jQuery memory leak"
TheDJ [Sat, 6 Jul 2013 13:27:01 +0000 (13:27 +0000)]
Merge "jquery.makeCollapsible: fix jQuery memory leak"

10 years agoMerge "jquery.checkboxShiftClick: Don't toggle disabled checkboxes"
TheDJ [Sat, 6 Jul 2013 13:22:00 +0000 (13:22 +0000)]
Merge "jquery.checkboxShiftClick: Don't toggle disabled checkboxes"

10 years agojquery.checkboxShiftClick: Don't toggle disabled checkboxes
MatmaRex [Sun, 16 Jun 2013 20:35:18 +0000 (22:35 +0200)]
jquery.checkboxShiftClick: Don't toggle disabled checkboxes

They are not togglable via normal user interaction, so shouldn't be
togglable this way either.

Bug: 49648
Change-Id: I14b90c86007b583aa27ab5312768b51f3a25cdbb

10 years agocolSpan: do proper accessing of the property/attribute colSpan
Derk-Jan Hartman [Sat, 6 Jul 2013 11:15:25 +0000 (13:15 +0200)]
colSpan: do proper accessing of the property/attribute colSpan

Change-Id: I192a95d2eeca40265156f7a05893ab3006f65ace

10 years agoDeprecate a few one-line global functions
Kevin Israel [Fri, 10 May 2013 05:24:35 +0000 (01:24 -0400)]
Deprecate a few one-line global functions

Additions to the PHP language made these redundant.

* wfArrayLookup() is similar to PHP 5.1's array_intersect_key()
  yet has serious limitations. For example, integer string values
  are implicitly cast to integers.

* wfArrayMerge() can be replaced by PHP 5.3's array_replace().

* wfTime() just returns microtime( true ).

Change-Id: I2c6844fc48a265d2d885083b5bed8df846e0aaf4

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 5 Jul 2013 21:43:07 +0000 (21:43 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "Remove unnecessary h5 selectors"
jenkins-bot [Fri, 5 Jul 2013 21:42:22 +0000 (21:42 +0000)]
Merge "Remove unnecessary h5 selectors"

10 years agoMerge "Make it show email as required if you choose to email a random password."
jenkins-bot [Fri, 5 Jul 2013 21:35:51 +0000 (21:35 +0000)]
Merge "Make it show email as required if you choose to email a random password."

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

Change-Id: I9e38037ff6c76317e58d034da678984d5095d19e

10 years agoRemove unnecessary h5 selectors
MatmaRex [Fri, 5 Jul 2013 21:07:05 +0000 (23:07 +0200)]
Remove unnecessary h5 selectors

They were only here for backwards-compatibility due to HTML caching
(see bug 42452).

Also change one JS test that still used <h5> (the tag used doesn't
matter in it anyway).

Change-Id: Ibdf248d9779ded03444fe68f3149d6531fc7b154

10 years agoMerge "Update autonym/interlanguage description for Hakka"
jenkins-bot [Fri, 5 Jul 2013 20:25:18 +0000 (20:25 +0000)]
Merge "Update autonym/interlanguage description for Hakka"

10 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Fri, 5 Jul 2013 20:17:04 +0000 (20:17 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Fri, 5 Jul 2013 19:28:31 +0000 (21:28 +0200)]
Localisation updates from translatewiki.net.

Updates for special page names.

Change-Id: Ib21a3dd748053d9d00385c424594f5b370debc30

10 years agoDo not allow sorting Special:Listfiles by img_name when filtering by username
Brian Wolff [Thu, 18 Apr 2013 23:56:35 +0000 (20:56 -0300)]
Do not allow sorting Special:Listfiles by img_name when filtering by username

We don't allow sorting by img_size due to lack of index. For consistency
we shouldn't allow by img_name either, since there is similarly
no index on (img_user_text, img_name) either

Also, let filtering by img_size when not in miser mode.

Change-Id: I5aaf1a3f39ddc23d5d009ada199b63a0e3133ef3

10 years agoUpdate autonym/interlanguage description for Hakka
Siebrand Mazeland [Fri, 5 Jul 2013 19:00:27 +0000 (21:00 +0200)]
Update autonym/interlanguage description for Hakka

As requested at
https://translatewiki.net/wiki/Thread:Support/Hakka_language_interwiki_name_change

Change-Id: I687d1abc47e838b3db0fc8a2bd47dcc58fcc6d97

10 years agoAllow handler specific parameters in <gallery> (page number, etc)
Brian Wolff [Thu, 25 Apr 2013 00:28:03 +0000 (21:28 -0300)]
Allow handler specific parameters in <gallery> (page number, etc)

For multipage media, people really want to be able to specify
if the image gallery should display page 1 or page 10. This
also allows other handler specific parameters like thumbtime
for videos, "lossy" for tiff files, etc.

Note, this only allows the handler specific options
(typically things that would change an image). Other options in
the thumb syntax like class, border, upright, left, etc are
still not supported (and mostly probably should not be)

Bug: 8480

Change-Id: Ib831d89ed8676deb2f44238ff9a23ce58ad4d2df

10 years agoMerge "Create redirects to titles correctly in WikitextContentHandler"
jenkins-bot [Fri, 5 Jul 2013 14:26:21 +0000 (14:26 +0000)]
Merge "Create redirects to titles correctly in WikitextContentHandler"

10 years agoAllow relative inclusions in Main namespace.
Vitaliy Filippov [Thu, 30 May 2013 12:23:33 +0000 (16:23 +0400)]
Allow relative inclusions in Main namespace.

In previous versions of MediaWiki, relative inclusions ({{../name}})
were not handled properly in the Main namespace - it tried to include
Template:Parent/name instead of just Parent/name article. In other
namespaces they worked, though (all in case of enabled subpages). The
patch fixes this inconsistence and allows to use relative inclusions
in Main.

Change-Id: Ie04f23c180e501631c629a39b997796a1725fb67

10 years agoMerge "Make button text black for non-Vector buttons:"
jenkins-bot [Fri, 5 Jul 2013 12:09:52 +0000 (12:09 +0000)]
Merge "Make button text black for non-Vector buttons:"

10 years agoMerge "Disable language conversion for echoed sortkeys in defaultsort errors."
jenkins-bot [Thu, 4 Jul 2013 21:46:59 +0000 (21:46 +0000)]
Merge "Disable language conversion for echoed sortkeys in defaultsort errors."

10 years agoDisable language conversion for echoed sortkeys in defaultsort errors.
Liangent [Thu, 4 Jul 2013 19:15:05 +0000 (19:15 +0000)]
Disable language conversion for echoed sortkeys in defaultsort errors.

Change-Id: I24ac06687df126b59a3eddeb4ed00b2ca0ee22e9

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 4 Jul 2013 19:58:00 +0000 (19:58 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Iec37b28f3b8deec9ca4be82356d33b9e07a5b6a1

10 years agoMerge "Parse duplicate-defaultsort error message"
jenkins-bot [Thu, 4 Jul 2013 18:56:10 +0000 (18:56 +0000)]
Merge "Parse duplicate-defaultsort error message"

10 years agoMerge "Installer: Remove wgResourceLoaderMaxQueryLength in LocalSettings"
jenkins-bot [Thu, 4 Jul 2013 15:24:58 +0000 (15:24 +0000)]
Merge "Installer: Remove wgResourceLoaderMaxQueryLength in LocalSettings"

10 years agoMerge "Ignore now empty message for translation"
jenkins-bot [Thu, 4 Jul 2013 10:26:47 +0000 (10:26 +0000)]
Merge "Ignore now empty message for translation"

10 years agoIgnore now empty message for translation
raymond [Thu, 27 Jun 2013 07:37:36 +0000 (09:37 +0200)]
Ignore now empty message for translation

Followup to I2622b35e712120dc171ea44a887d6b42286f2a06

Change-Id: I235fe77381e2ef2c763de33b59373649b3b8a50b

10 years agoMerge "Use a UNIX timestamp in the LoggedOut cookie"
jenkins-bot [Thu, 4 Jul 2013 06:00:18 +0000 (06:00 +0000)]
Merge "Use a UNIX timestamp in the LoggedOut cookie"

10 years agoUse a UNIX timestamp in the LoggedOut cookie
Tim Starling [Sun, 26 May 2013 12:14:49 +0000 (14:14 +0200)]
Use a UNIX timestamp in the LoggedOut cookie

Since it is easier to interpret in VCL. The read side code strangely
does not need to be updated, and MW will continue to work with
cookies sent before this change, because wfTimestamp() automatically
detects the timestamp format.

Change-Id: I8c661b735b1de8e295d5d713a5ca959ee99e274e

10 years agoIn $wgConf, allow wgCanonicalServer to be false or absent
Tim Starling [Thu, 16 May 2013 23:12:32 +0000 (09:12 +1000)]
In $wgConf, allow wgCanonicalServer to be false or absent

According to the doc comment, $wgCanonicalServer can be false, and this
is equivalent to it being set to $wgServer. So don't require it to be
set for foreign wikis in $wgConf, just use the same interpretation.

This makes it slightly easier to set up CentralAuth test servers.

Change-Id: I5eb11669236ed2a71d08f53a1393a3d5e8f5f770

10 years agoMerge "doc: Improve documentation for mw.Map and mw#config"
jenkins-bot [Thu, 4 Jul 2013 05:44:42 +0000 (05:44 +0000)]
Merge "doc: Improve documentation for mw.Map and mw#config"

10 years agoFix protection rights usage
Brad Jorsch [Fri, 28 Jun 2013 17:20:00 +0000 (13:20 -0400)]
Fix protection rights usage

It has long been recognized that using the 'protect' right to control
the ability to edit sysop-protected pages is troublesome. r31247 fixed
this by adding an 'editprotected' right, but for some reason in r32164
this was changed to bypass protection completely instead of fixing the
bug identified in r31462.

This patch goes back to do it the right way: editprotected no longer
bypasses all protection, and it is used instead of 'protect' for
controlling access to sysop-protected pages. For good measure, the same
is done with autoconfirmed protection (semiprotection): a new
editsemiprotected right is created instead of overloading the
existing autoconfirmed right.

This also fixes bug 27152 by making editprotected no longer special.

Bug: 13137
Bug: 27152
Change-Id: I6bf650a3fbdab8589ae6945c8c916eafd949e41c

10 years agoMerge "updateCollation.php: sanity check the collation before proceeding"
jenkins-bot [Thu, 4 Jul 2013 05:26:18 +0000 (05:26 +0000)]
Merge "updateCollation.php: sanity check the collation before proceeding"

10 years agoupdateCollation.php: sanity check the collation before proceeding
MatmaRex [Sat, 18 May 2013 19:46:32 +0000 (21:46 +0200)]
updateCollation.php: sanity check the collation before proceeding

In some cases the constructor will work, but trying to access first
letter data will raise an exception, breaking all category pages.

Bug: 46615
Change-Id: I77de040f97080653fe0d1734d38490eaa2d322db

10 years agoAdd wgIsProbablyEditable for editability based on quickUserCan.
Matthew Flaschen [Thu, 23 May 2013 04:31:11 +0000 (00:31 -0400)]
Add wgIsProbablyEditable for editability based on quickUserCan.

It uses quickUserCan like SkinTemplate, for performance reasons.

Bug: 43790
Change-Id: I2f77b69624cc1a4cd74c8178eea53681f3f2b107

10 years agoMerge "Add 'viewmyprivateinfo', 'editmyprivateinfo', and 'editmyoptions' rights"
jenkins-bot [Thu, 4 Jul 2013 04:25:08 +0000 (04:25 +0000)]
Merge "Add 'viewmyprivateinfo', 'editmyprivateinfo', and 'editmyoptions' rights"

10 years agodoc: Improve documentation for mw.Map and mw#config
Timo Tijhof [Mon, 24 Jun 2013 23:35:29 +0000 (16:35 -0700)]
doc: Improve documentation for mw.Map and mw#config

* Link to the list on mediawiki.org
* Document it as type mw.Map instead of implied from code (= null)
  the fact that the literal code in mediawiki.js is a placeholder
  is an implementation detail that shouldn't be in the API docs.
* Add example for mw.Map.

Change-Id: I5c3ff272e605ee3825320f27aec32a4b4bf18ee2

10 years agoCSSJanus: Fix handling of CSS3 color syntaxes
MatmaRex [Thu, 6 Jun 2013 15:33:37 +0000 (17:33 +0200)]
CSSJanus: Fix handling of CSS3 color syntaxes

The 'color' rule, and by extension 'four_notation_color' too,
only understood #rrggbb and named colors. Extend it to match
rgb[a](...) and hsl[a](...) syntaxes as well.

This makes usage of rgb(a)/hsl(a) syntax in declarations like
'border-color: a b c d;' be interpreted and flipped correctly.

Change-Id: I218a9aa55a86b3d955b92375c1a209fdde312138

10 years agoEnable @example for jsduck index
Timo Tijhof [Wed, 26 Jun 2013 23:33:51 +0000 (16:33 -0700)]
Enable @example for jsduck index

Change-Id: Ifa38338b797413b6ad54c49f508cabe21c1565ea

10 years agoFix occasional collapsibleTabs JS error
Roan Kattouw [Thu, 4 Jul 2013 00:54:33 +0000 (17:54 -0700)]
Fix occasional collapsibleTabs JS error

vector/vector.js depends on $.fn.collapsibleTabs, but that's defined in
vector/collapsibleTabs.js which is loaded *after*. The only reason it
worked most of the time is because the invocation is wrapped in a document
ready callback. Most of the time, the document isn't ready yet when
vector.js runs, so the callback is deferred and $.fn.collapsibleTabs is
created before the callback runs. But if the document is already ready,
the callback runs immediately without $.fn.collapsibleTabs having been
created yet, and so it throws an error.

Fixed by including the .js files in the proper order.

Change-Id: If101efe82970bda7a39d827ce3c668abad6a5f5e

10 years agoFixed file purge script to handle NULL archive names
Aaron Schulz [Wed, 3 Jul 2013 23:23:55 +0000 (16:23 -0700)]
Fixed file purge script to handle NULL archive names

Change-Id: Icbff842694039e018850f1fa320f6e3d5b403aac

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

Change-Id: I8cd827a5fece398cc94f0ca6ece76fe32811dcd9

10 years agoAdd 'viewmyprivateinfo', 'editmyprivateinfo', and 'editmyoptions' rights
Brad Jorsch [Mon, 10 Jun 2013 19:30:43 +0000 (15:30 -0400)]
Add 'viewmyprivateinfo', 'editmyprivateinfo', and 'editmyoptions' rights

These are needed for OAuth grants.

Note that we don't bother with a 'viewmyoptions' right, since the
majority will be determinable from just observing the interface.

Note that the fact of having a confirmed email address cannot be
reliably hidden, and if the user has 'sendemail' they may be able to
determine the real name and email address by sending an email to another
account that they control.

Change-Id: I3f03dd010020e8d43cc2d3bca7b3ef7196d1c548

10 years agoFixed $wgCookieExpiration functionality when set to 0.
Tyler Anthony Romeo [Tue, 30 Apr 2013 17:07:40 +0000 (13:07 -0400)]
Fixed $wgCookieExpiration functionality when set to 0.

When $wgCookieExpiration is set to 0, cookies should
by default expire when the browser closes. However,
MediaWiki accidentally interpreted this as the cookies
expiring 0 seconds from the request time.

Bug: 47886
Change-Id: Ib988ad18574122a56b0d11c8888c7c41d94dea6e

10 years agoAdd getPersonalToolsList to SkinTemplate
Brad Jorsch [Wed, 12 Jun 2013 16:50:19 +0000 (12:50 -0400)]
Add getPersonalToolsList to SkinTemplate

This is for CentralAuth, so it can replace the p-personal list.

Bug: 50619
Change-Id: I7385bcb36e45310fb08da05f8df8925acd7d9890

10 years agoMime emails should be sent with UTF-8 charset
bsitu [Wed, 3 Jul 2013 00:32:26 +0000 (17:32 -0700)]
Mime emails should be sent with UTF-8 charset

Change-Id: Ifa3d14340b163ce09363c6b9956aee5c7522e6a3

10 years agoMerge "Make brackets in section edit links accessible to CSS"
jenkins-bot [Tue, 2 Jul 2013 22:48:19 +0000 (22:48 +0000)]
Merge "Make brackets in section edit links accessible to CSS"

10 years agoMerge "deprecate ChangesList::usePatrol"
jenkins-bot [Tue, 2 Jul 2013 22:43:23 +0000 (22:43 +0000)]
Merge "deprecate ChangesList::usePatrol"

10 years agoCreate redirects to titles correctly in WikitextContentHandler
Liangent [Sun, 30 Jun 2013 08:02:37 +0000 (08:02 +0000)]
Create redirects to titles correctly in WikitextContentHandler

Bug: 50450
Bug: 50451
Change-Id: I6781420f01d8c90d47f4b9f3ad099cadf0f8ced5

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

Change-Id: I597f6e63ab1dea1e7462785d18245a280fb78f3f

10 years agoMake brackets in section edit links accessible to CSS
MatmaRex [Fri, 17 May 2013 18:34:08 +0000 (20:34 +0200)]
Make brackets in section edit links accessible to CSS

Each is now wrapped in <span class="mw-editsection-bracket" />.

The 'editsection-brackets' optional message, a hack added back in 2007
(43b05c00 / r23645), was removed and hardcoded again to facilitate this.

Bug: 48256
Change-Id: Id27555c6dee250eafeefa97ae8927438fd65b8d7

10 years agoMerge "Improve behavior of IP::toUnsigned on Windows"
jenkins-bot [Tue, 2 Jul 2013 17:14:21 +0000 (17:14 +0000)]
Merge "Improve behavior of IP::toUnsigned on Windows"

10 years agoMerge "Remove the EditSectionLink hook"
jenkins-bot [Tue, 2 Jul 2013 17:04:46 +0000 (17:04 +0000)]
Merge "Remove the EditSectionLink hook"

10 years agoMerge "Allow creation of empty MediaWiki: pages"
Brion VIBBER [Tue, 2 Jul 2013 17:01:37 +0000 (17:01 +0000)]
Merge "Allow creation of empty MediaWiki: pages"

10 years agoAllow creation of empty MediaWiki: pages
MatmaRex [Mon, 1 Jul 2013 11:25:41 +0000 (13:25 +0200)]
Allow creation of empty MediaWiki: pages

This is useful now since it's possible to disable messages by blanking
them (see bug 14176).

Instead disallow creation of page contents equivalent to the default
message to serve the same purpose as disallowing blanking did (prevent
edits which wouldn't change anything anyway; the edit form is even
prefilled with the default contents).

Bug: 50124
Change-Id: I070036f341b866cda67eb928c5b74ad2ce6c527c

10 years agodeprecate ChangesList::usePatrol
aude [Tue, 2 Jul 2013 09:29:12 +0000 (09:29 +0000)]
deprecate ChangesList::usePatrol

not used anywhere in core, not used in wmf-enabled extensions,
and used little or not at all elsewhere.

Change-Id: I9957696f025190d863a472e4512eb214b9cb5ada

10 years agomediawiki.page.startup: Code cleanup
MatmaRex [Tue, 2 Jul 2013 12:24:49 +0000 (14:24 +0200)]
mediawiki.page.startup: Code cleanup

* Whitespace fix
* Explicitly use $( document ).ready instead of $ for grepping

Change-Id: I5f63bcbade559cec34534ecef939661d0518ba3f

10 years agoMerge "Clear shallowFallbacks in LocalisationCache::unload"
jenkins-bot [Tue, 2 Jul 2013 02:18:24 +0000 (02:18 +0000)]
Merge "Clear shallowFallbacks in LocalisationCache::unload"

10 years agoSpecialUserlogin: fix typo in comment
MatmaRex [Sun, 30 Jun 2013 20:46:45 +0000 (22:46 +0200)]
SpecialUserlogin: fix typo in comment

Change-Id: Ia67e2b0b87ca09aaa1ad285867ccd3f4a95a6026

10 years agoskin: Convert table of contents from <table> to <div>
MatmaRex [Fri, 21 Dec 2012 19:26:29 +0000 (20:26 +0100)]
skin: Convert table of contents from <table> to <div>

It makes no sense semantically; it was only used to make the TOC not
span full width of the page, which is easily achieved with CSS.

Bug: 658
Change-Id: I4ecd0659d1f955a9b593d281a3fef0a81c218a52

10 years agoMerge "SquidUpdate debug message are now in 'squid' group"
jenkins-bot [Mon, 1 Jul 2013 22:02:48 +0000 (22:02 +0000)]
Merge "SquidUpdate debug message are now in 'squid' group"

10 years agoMerge "Implement mw.toolbar.addButtons"
jenkins-bot [Mon, 1 Jul 2013 21:13:48 +0000 (21:13 +0000)]
Merge "Implement mw.toolbar.addButtons"

10 years agoMerge "Drop a code path in wfBCP47() which is never reached."
jenkins-bot [Mon, 1 Jul 2013 20:55:53 +0000 (20:55 +0000)]
Merge "Drop a code path in wfBCP47() which is never reached."

10 years agoClear shallowFallbacks in LocalisationCache::unload
Brad Jorsch [Mon, 1 Jul 2013 20:31:53 +0000 (16:31 -0400)]
Clear shallowFallbacks in LocalisationCache::unload

When a language code is unloaded, it also needs to clear the
shallowFallbacks entry. Otherwise the next time that language is used it
will incorrectly think that the other setup done by initShallowFallbacks
is still set up, leading to warnings.

Change-Id: Idf6a78f56a3bb864cc921427ac82972594610047

10 years agoMerge "wfBCP47Test: Remove commented-out testcases"
jenkins-bot [Mon, 1 Jul 2013 20:51:21 +0000 (20:51 +0000)]
Merge "wfBCP47Test: Remove commented-out testcases"

10 years agoDrop a code path in wfBCP47() which is never reached.
Liangent [Sun, 30 Jun 2013 19:51:58 +0000 (19:51 +0000)]
Drop a code path in wfBCP47() which is never reached.

count( $codeSegment ) > 0 should be never true in a foreach loop of
$codeSegment itself. See also Iffe166f3.

Change-Id: I453b5ec3379951a2ad6e34b9835907c2eba3046b

10 years agowfBCP47Test: Remove commented-out testcases
MatmaRex [Sun, 30 Jun 2013 19:21:37 +0000 (21:21 +0200)]
wfBCP47Test: Remove commented-out testcases

They would all pass anyway, but the functionality is already tested
elsewhere in the file.

Change-Id: Iffe166f3480df0b104e09e41dd8d3023d43b9aa7

10 years agoImplement mw.toolbar.addButtons
helder.wiki [Wed, 26 Sep 2012 14:52:57 +0000 (11:52 -0300)]
Implement mw.toolbar.addButtons

Example:

```
var skinPath;
if ( mw.toolbar ) {
    skinPath = mw.config.get( 'stylepath' );
    mw.toolbar.addButtons( [ {
        imageFile: skinPath + '/common/images/button_bold.png',
        speedTip: 'add foo tag',
        tagOpen: '<foo>',
        tagClose: '</foo>',
        sampleText: 'foo here',
        imageId: 'foo-id'
    }, {
        // ..
    } ] );

    mw.toolbar.addButtons( {
        imageFile: skinPath + '/common/images/button_bold.png',
        speedTip: 'add foo tag',
        tagOpen: '<foo>',
        tagClose: '</foo>',
        sampleText: 'foo here',
        imageId: 'foo-id'
    }, {
        // ..
    } );

    mw.toolbar.addButton( {
        imageFile: skinPath + '/common/images/button_link.png',
        speedTip: 'add baz tag',
        tagOpen: '<baz>',
        tagClose: '</baz>',
        sampleText: 'baz here',
        imageId: 'baz-id'
    } );

    mw.toolbar.addButton(
        skinPath + '/common/images/button_link.png',
        'add baz2 tag',
        '<baz2>',
        '</baz2>',
        'baz2 here',
        'baz2-id'
    );
}
```

Clean up:
* Rename currentFocused to $currentFocused (we are using jQuery);
* Add missing dependency 'mediawiki.legacy.wikibits', since this
  module uses the array window.mwCustomEditButtons.

Bug: 40518
Change-Id: I76d1f753cb9e1c119d9b5e7f565acd684f5516d1

10 years agoMerge "Set taborder on Special:ActiveUsers"
jenkins-bot [Mon, 1 Jul 2013 20:05:50 +0000 (20:05 +0000)]
Merge "Set taborder on Special:ActiveUsers"

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

Change-Id: Idfa4331722672da932fe8a124bc9618de0e31fea

10 years agoDependency inject DB into ManualLogEntry::insert()
Aaron Schulz [Mon, 1 Jul 2013 18:26:45 +0000 (11:26 -0700)]
Dependency inject DB into ManualLogEntry::insert()

Change-Id: I5018a6ef6095929edca444ad2d901adcf8680ed2

10 years agoMerge "test: skip math parser tests when missing $wgTexvc"
TheDJ [Mon, 1 Jul 2013 17:06:22 +0000 (17:06 +0000)]
Merge "test: skip math parser tests when missing $wgTexvc"

10 years agoMerge "Change "permissions errors" message to "permission error""
jenkins-bot [Mon, 1 Jul 2013 16:40:25 +0000 (16:40 +0000)]
Merge "Change "permissions errors" message to "permission error""

10 years agoChange "permissions errors" message to "permission error"
Molly White [Sat, 13 Apr 2013 18:54:14 +0000 (14:54 -0400)]
Change "permissions errors" message to "permission error"

This message typically only reports a single error.

Bug: 44507
Change-Id: I91848f98e59bddb4c33bb6ca4d5d9a2ebeeafada

10 years agoMerge "jquery.tablesorter: Support sortable column headers with rowspans"
jenkins-bot [Mon, 1 Jul 2013 15:43:23 +0000 (15:43 +0000)]
Merge "jquery.tablesorter: Support sortable column headers with rowspans"

10 years agojquery.tablesorter: Support sortable column headers with rowspans
Derk-Jan Hartman [Thu, 25 Apr 2013 15:48:54 +0000 (17:48 +0200)]
jquery.tablesorter: Support sortable column headers with rowspans

Bug: 38911
Change-Id: I172c3a610b28498334f80a7808663bab7fb0466c

10 years agoParse duplicate-defaultsort error message
Alex Monk [Sat, 15 Jun 2013 14:13:35 +0000 (15:13 +0100)]
Parse duplicate-defaultsort error message

Bug: 49611
Change-Id: I2fd6c74597ba423378c3f08e76248c2b241098dd

10 years agoSet taborder on Special:ActiveUsers
Alex Monk [Mon, 1 Jul 2013 14:51:20 +0000 (15:51 +0100)]
Set taborder on Special:ActiveUsers

Order: 'Display users starting at' text box, hide bots checkbox, hide admins checkbox, go button

Bug: 43558
Change-Id: Ib32b43324abd0295b029f9b8e6c5af17b6570d4f

10 years agoMerge "RecentChanges, RecentChangesLinked, Watchlist: message when no items"
jenkins-bot [Mon, 1 Jul 2013 14:31:50 +0000 (14:31 +0000)]
Merge "RecentChanges, RecentChangesLinked, Watchlist: message when no items"

10 years agoRecentChanges, RecentChangesLinked, Watchlist: message when no items
MatmaRex [Mon, 20 May 2013 14:09:01 +0000 (16:09 +0200)]
RecentChanges, RecentChangesLinked, Watchlist: message when no items

Use consistent message in RecentChanges, RecentChangesLinked, and
Watchlist when there are no items to be shown.

Previously RecentChanges just showed empty space and
RecentChangesLinked and Watchlist used two different messages.
Harmonized both the text and the code.

Message added: 'recentchanges-noresult'
Messages removed: 'recentchangeslinked-noresult', 'watchnochange'

Change-Id: Idf9f7a8422d9ad13dc46c69ee284b04cbbe211b7

10 years agoSquidUpdate debug message are now in 'squid' group
Antoine Musso [Mon, 1 Jul 2013 13:16:43 +0000 (15:16 +0200)]
SquidUpdate debug message are now in 'squid' group

To debug purging issues in beta, it would be useful to have all squid
related messages grouped at the same place.  wfDebug() is logged on beta
but it has a good amount of spam which is not that useful.  Regrouping
all squid operations under the debug log group 'squid' will make it
easier to investigate.

Change-Id: I11112585f38307ae56ec3e05e7a8d6d9dab31bfa

10 years agoMerge "Set taborder for Special:ListFiles"
jenkins-bot [Mon, 1 Jul 2013 10:15:45 +0000 (10:15 +0000)]
Merge "Set taborder for Special:ListFiles"