lhc/web/wiklou.git
10 years agoMerge "jquery.client: Detect Internet Explorer 11"
Brion VIBBER [Wed, 10 Jul 2013 21:18:49 +0000 (21:18 +0000)]
Merge "jquery.client: Detect Internet Explorer 11"

10 years agoMake the table on Special:Tags sortable
MatmaRex [Wed, 10 Jul 2013 20:25:42 +0000 (22:25 +0200)]
Make the table on Special:Tags sortable

Makes for easier searching when a wiki has a couple dozen of them.

Change-Id: I8646a95946294eca66003fa409a923eb854c9049

10 years agojquery.client: Detect Internet Explorer 11
MatmaRex [Sun, 7 Jul 2013 22:23:00 +0000 (00:23 +0200)]
jquery.client: Detect Internet Explorer 11

It only admits it's using Trident, the browser name is not in the UA.

Side-effects: detects Trident's version for IE10 as well, detect WOW64
as Windows.

Also minor code consistency changes.

Bug: 50873
Change-Id: I79d65548e90d2c98c4e1d3253ac432801f48b4ba

10 years agoRelease notes for Ic2ae58c7, If21eaed4
MatmaRex [Wed, 10 Jul 2013 19:11:32 +0000 (21:11 +0200)]
Release notes for Ic2ae58c7, If21eaed4

Change-Id: I34aa1355da57781936e03b707492eb88bcff9161

10 years agoMerge "Show small explanation next to lists of tags"
jenkins-bot [Wed, 10 Jul 2013 19:08:45 +0000 (19:08 +0000)]
Merge "Show small explanation next to lists of tags"

10 years agoMerge "Show change tags on diffs"
jenkins-bot [Wed, 10 Jul 2013 19:07:17 +0000 (19:07 +0000)]
Merge "Show change tags on diffs"

10 years agoMerge "Don't purge thumbs for old versions of an image during ?action=purge"
jenkins-bot [Wed, 10 Jul 2013 18:15:49 +0000 (18:15 +0000)]
Merge "Don't purge thumbs for old versions of an image during ?action=purge"

10 years agoShow small explanation next to lists of tags
MatmaRex [Wed, 10 Jul 2013 17:13:13 +0000 (19:13 +0200)]
Show small explanation next to lists of tags

Lists of tags are shown on recent changes, watchlists, history pages
and diffs. However, it's hard to tell what they are, as they have no
visual indicators and resemble edit summaries (they looks examply the
same sans the italics). Wikimedia wikis have been using various
methods to remedy that (a "Tag:" prefix in every tag message, yellow
background color, etc.).

This basically implements the first one: a link to Special:Tags and
"Tag(s):" text is shown before the list of tags everywhere it's shown.
The text is correctly pluralized depending on the number of tags given
revision has.

Change-Id: If21eaed4171e732daaee32087c3307d70b60d81f

10 years agoMerge "Don't skip UserGetRights hook in addGroup/removeGroup"
jenkins-bot [Wed, 10 Jul 2013 16:39:24 +0000 (16:39 +0000)]
Merge "Don't skip UserGetRights hook in addGroup/removeGroup"

10 years agoDon't skip UserGetRights hook in addGroup/removeGroup
Brad Jorsch [Tue, 9 Jul 2013 19:45:46 +0000 (15:45 -0400)]
Don't skip UserGetRights hook in addGroup/removeGroup

The addGroup and removeGroup functions in User were reloading the cached
mRights, but not calling the UserGetRights hook that is supposed to
allow for extensions to modify the rights list. Instead, let's just null
the cache so it will be reloaded next time something calls
$user->getRights().

Note we still call $this->getEffectiveGroups( true ), though, to trigger
that to recache.

Change-Id: I81784917303b639bc7c22c726e9cbdb0d191e674

10 years agoMerge "jquery.makeCollapsible: Togglers keyboard accessibility"
TheDJ [Wed, 10 Jul 2013 09:00:11 +0000 (09:00 +0000)]
Merge "jquery.makeCollapsible: Togglers keyboard accessibility"

10 years agoMerge "API DebugToolbar's debugLog format cleanup"
jenkins-bot [Wed, 10 Jul 2013 03:41:31 +0000 (03:41 +0000)]
Merge "API DebugToolbar's debugLog format cleanup"

10 years agoAPI DebugToolbar's debugLog format cleanup
Yuri Astrakhan [Wed, 10 Jul 2013 01:54:09 +0000 (21:54 -0400)]
API DebugToolbar's debugLog format cleanup

When using debug toolbar, make the result cleaner and more readable:

XML: <debugLog><msg>…</msg><msg>…</msg></debugLog>
JSON: "debugLog": ["…","…"]

Instead of current:
XML: <debugLog><msg xml:space="preserve">…</msg>...
JSON: "debugLog": [{"*": "…"}, {"*": "…"}]

Change-Id: Ieb9d3ab23d7654f5eaf3b79b3b69f4aab99d4680

10 years agojquery.client: Add detection for Opera 15
MatmaRex [Sun, 7 Jul 2013 21:48:33 +0000 (23:48 +0200)]
jquery.client: Add detection for Opera 15

Opera 15 pretends to be Chrome, Safari, Gecko, Mozilla, *and* KHTML.
I don't even.

Also fixed some typos in comments and done minor code cleanup.

Change-Id: I200def556c3891864235ba0f8f2f29278263e030

10 years agoMerge "Add --list parameter to showJobs.php"
jenkins-bot [Wed, 10 Jul 2013 00:30:32 +0000 (00:30 +0000)]
Merge "Add --list parameter to showJobs.php"

10 years agoMerge "Added log_search tag support to ManualLogEntry"
jenkins-bot [Wed, 10 Jul 2013 00:19:28 +0000 (00:19 +0000)]
Merge "Added log_search tag support to ManualLogEntry"

10 years agoAdd --list parameter to showJobs.php
Tim Starling [Wed, 10 Jul 2013 00:15:26 +0000 (10:15 +1000)]
Add --list parameter to showJobs.php

For listing all of the jobs in the queue. Post-processing will enable
most sorts of analysis that you would want to do. When we used SQL, this
wasn't reallly necessary, but getting jobs out of Redis is a bit more
tedious.

The format is similar to the log made by runJobs.php.

Change-Id: Idfa3f52ba89638892fc7a64d6566955d66de5958

10 years agojobqueue: avoid exceptions due to races in redis job listing functions
Aaron Schulz [Mon, 8 Jul 2013 23:30:41 +0000 (16:30 -0700)]
jobqueue: avoid exceptions due to races in redis job listing functions

* Also improved MappedIterator to allow for an accept() closure.

Change-Id: I614dc6e98b5c6297f3efc7a0004fbabd19624915

10 years agoDon't purge thumbs for old versions of an image during ?action=purge
Brian Wolff [Tue, 9 Jul 2013 16:32:08 +0000 (13:32 -0300)]
Don't purge thumbs for old versions of an image during ?action=purge

This tends to become extremely expensive as the number of
oldversions of a file increase. It is also not generally
needed since ?action=purge is usually targeting the
current version (additionally old versions of the file
have fixed urls, so they're less likely to get out
of sync). If an old version does need to be purged, one
can revdel and un-revdel it.

It should be noted that this extra purging was added
for bug 30192. However, since that bug was fixed,
most of the places requiring purging of old thumbnails
have now done it directly instead of by relying on
$file->purgeCache. The exception being revision
deletion, which still assumes $file->purgeCache clears
the thumbnails of old versions of the file.

There's no real bug for this, but I kind of hijacked
bug 49362

Change-Id: Ib399132cabe79fd2b4b23bad5708bfa50b282074

10 years agoSync up with Parsoid tests.
C. Scott Ananian [Tue, 9 Jul 2013 22:42:33 +0000 (18:42 -0400)]
Sync up with Parsoid tests.

This now aligns with Parsoid commit 7533c2240496914f15b4f3b314742bde9c3ceca5.

Change-Id: Ia6743500aba297acfc6fe89a8db1079dfd6be3b6

10 years agomw.Map: Fix typos in documentation
Timo Tijhof [Tue, 9 Jul 2013 22:12:22 +0000 (00:12 +0200)]
mw.Map: Fix typos in documentation

Follows-up f341e36 ("ore" and "Johson" were misspelled).

Change-Id: Ia5189f69a64a8294b37668e281087eacf09a4ce8

10 years agoMerge "Update 'right-protect', 'right-autoconfirmed' messages"
jenkins-bot [Tue, 9 Jul 2013 21:39:40 +0000 (21:39 +0000)]
Merge "Update 'right-protect', 'right-autoconfirmed' messages"

10 years agoMerge "Replace newlines in parsoid-only parserTests."
jenkins-bot [Tue, 9 Jul 2013 21:16:19 +0000 (21:16 +0000)]
Merge "Replace newlines in parsoid-only parserTests."

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

10 years agoReplace newlines in parsoid-only parserTests.
C. Scott Ananian [Tue, 9 Jul 2013 20:41:52 +0000 (16:41 -0400)]
Replace newlines in parsoid-only parserTests.

These were (inadvertently?) removed in change
Id27555c6dee250eafeefa97ae8927438fd65b8d7

Change-Id: I77c92896086f0fefbdbafe3a17385517ba2c4c38

10 years agoUpdate 'right-protect', 'right-autoconfirmed' messages
Kevin Israel [Fri, 5 Jul 2013 20:10:49 +0000 (16:10 -0400)]
Update 'right-protect', 'right-autoconfirmed' messages

* The "autoconfirmed" right is now only used to determine "newbie"
  status for the purpose of rate limiting, so I updated the
  "right-autoconfirmed" message accordingly.
* The "protect" right now does not allow the user to edit protected
  pages, so I updated the "right-protect" message accordingly.
* Also removed outdated portions of code comments referring to the
  now-fixed bug identified in r31462; the 'protect' right is now
  necessary to edit any directly or indirectly cascade-protected
  page.

Follows-up I6bf650a3fbdab8589ae6945c8c916eafd949e41c.

Change-Id: Ia3cc487dd0ad168001a076ebd612eb64764e92ef

10 years agoMerge "Unbreak cascading protection"
jenkins-bot [Tue, 9 Jul 2013 20:25:47 +0000 (20:25 +0000)]
Merge "Unbreak cascading protection"

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

Change-Id: I1a47d9aee7f6b86cdd51f1ad0ecad9cd92d2ac4f

10 years agoMerge "Remove list of functions added in wgExtensionFunctions"
jenkins-bot [Tue, 9 Jul 2013 19:16:58 +0000 (19:16 +0000)]
Merge "Remove list of functions added in wgExtensionFunctions"

10 years agoUnbreak cascading protection
Kevin Israel [Fri, 5 Jul 2013 21:28:37 +0000 (17:28 -0400)]
Unbreak cascading protection

Title::getRestrictions can return "sysop", which will not match if
replaced out of $cascadingRestrictionLevels but not $editrestriction,
making it impossible to cascade protect a page with the default value
of $wgCascadingRestrictionLevels.

Follows-up I6bf650a3fbdab8589ae6945c8c916eafd949e41c.

Change-Id: Ie7183ed9509ea9c65a7197fc9cead6c8423b852e

10 years agoSync up with Parsoid tests.
C. Scott Ananian [Tue, 9 Jul 2013 18:20:38 +0000 (14:20 -0400)]
Sync up with Parsoid tests.

This now aligns with Parsoid commit 0849c09195a0ada3d108f40c17924004c133f906.

Change-Id: I5a60d4994e12b1b34f390e69606fc564b3282166

10 years agoMerge "Fix undefined std_class::fa_deleted_timestamp warning during undelete."
jenkins-bot [Tue, 9 Jul 2013 16:51:51 +0000 (16:51 +0000)]
Merge "Fix undefined std_class::fa_deleted_timestamp warning during undelete."

10 years agoFix undefined std_class::fa_deleted_timestamp warning during undelete.
Brian Wolff [Tue, 9 Jul 2013 16:41:48 +0000 (13:41 -0300)]
Fix undefined std_class::fa_deleted_timestamp warning during undelete.

Change-Id: I243d6c408941cfbdef2ec2d24596a3e638e1b4cd

10 years agojquery.makeCollapsible: Togglers keyboard accessibility
MatmaRex [Tue, 9 Jul 2013 12:31:08 +0000 (14:31 +0200)]
jquery.makeCollapsible: Togglers keyboard accessibility

Handle keypresses where e.which is 13 (Enter key) in addition to clicks.

Followup to If59590de.

Bug: 17616
Change-Id: Ib86833dbbbe8d5e4109090c70f1949ba97b9d119

10 years agoRemove list of functions added in wgExtensionFunctions
jeroendedauw [Mon, 1 Jul 2013 14:55:19 +0000 (16:55 +0200)]
Remove list of functions added in wgExtensionFunctions

Bug: 45167
Change-Id: I36ac6258015518af9ddf442afe58c8b401864a3b

10 years agoMerge "improve explanations of email confirmations"
jenkins-bot [Tue, 9 Jul 2013 05:43:04 +0000 (05:43 +0000)]
Merge "improve explanations of email confirmations"

10 years agoRelease notes for null edit/forcelinkupdate change
Tim Starling [Tue, 9 Jul 2013 01:44:43 +0000 (11:44 +1000)]
Release notes for null edit/forcelinkupdate change

Release notes for I2dbb5d21fa6b876adefd6bcfc93a83c5904d8d13, bug 50785.

Change-Id: I1f1a95980c440eceb4ddf43fbd06d8c721bf1229

10 years agoMerge "jquery.makeCollapsible: Togglers accessibility"
jenkins-bot [Tue, 9 Jul 2013 00:44:12 +0000 (00:44 +0000)]
Merge "jquery.makeCollapsible: Togglers accessibility"

10 years agoimprove explanations of email confirmations
S Page [Mon, 8 Jul 2013 22:20:29 +0000 (15:20 -0700)]
improve explanations of email confirmations

Improve 'createaccountmail', explain checkbox for 'createaccount-title'
and 'createaccount-text', correct misinformation in 'confirmemail_body'.

Change-Id: I3615860af9196c624268ae262e14c2ec76c74b27

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 8 Jul 2013 19:05:23 +0000 (19:05 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "Thumbnails: Set margin on magnify icon"
jenkins-bot [Mon, 8 Jul 2013 18:56:22 +0000 (18:56 +0000)]
Merge "Thumbnails: Set margin on magnify icon"

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

Change-Id: Icde9912200f6b8c7f91fee51baa7094c21f14ee5

10 years agoMerge "Include original exception when throw TimestampException"
jenkins-bot [Mon, 8 Jul 2013 17:43:31 +0000 (17:43 +0000)]
Merge "Include original exception when throw TimestampException"

10 years agoMerge "Improving comments in File class"
jenkins-bot [Mon, 8 Jul 2013 17:41:59 +0000 (17:41 +0000)]
Merge "Improving comments in File class"

10 years agoImproving comments in File class
kaldari [Sun, 7 Jul 2013 20:54:26 +0000 (13:54 -0700)]
Improving comments in File class

Change-Id: I5d1653f84f7e9324b234c2cc49e7ee5a1d0676ff

10 years agoMerge "Add getPersonalToolsList to SkinTemplate"
jenkins-bot [Mon, 8 Jul 2013 16:22:04 +0000 (16:22 +0000)]
Merge "Add getPersonalToolsList to SkinTemplate"

10 years agoMerge "Replaced (latest|earliest) with (newest|oldest) on history page"
jenkins-bot [Mon, 8 Jul 2013 15:26:24 +0000 (15:26 +0000)]
Merge "Replaced (latest|earliest) with (newest|oldest) on history page"

10 years agoReplaced (latest|earliest) with (newest|oldest) on history page
Michał Łazowik [Mon, 8 Jul 2013 10:54:34 +0000 (12:54 +0200)]
Replaced (latest|earliest) with (newest|oldest) on history page

to be consistent with (newer 200|older 200).

Bug: 29444
Change-Id: I8f9bffa62075539d098ebb1b12a66a4bbfcda19d

10 years agoMerge "Don't queue refreshLinks jobs on null edit"
jenkins-bot [Mon, 8 Jul 2013 15:16:06 +0000 (15:16 +0000)]
Merge "Don't queue refreshLinks jobs on null edit"

10 years agoInclude original exception when throw TimestampException
umherirrender [Mon, 8 Jul 2013 15:08:27 +0000 (17:08 +0200)]
Include original exception when throw TimestampException

Also adjust some spaces in exception messages.

Change-Id: I7bbe70f45aea49a2caaaeba82ab64e06b96347d0

10 years agoMerge "Add Special:Login and Special:Logout as aliases."
jenkins-bot [Mon, 8 Jul 2013 13:23:33 +0000 (13:23 +0000)]
Merge "Add Special:Login and Special:Logout as aliases."

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 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 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 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