lhc/web/wiklou.git
9 years agoMake Special:TrackingCategories fully detect namespace switching
Brian Wolff [Wed, 9 Apr 2014 01:55:18 +0000 (22:55 -0300)]
Make Special:TrackingCategories fully detect namespace switching

Special:TrackingCategories has special logic to detect people
using {{NAMESPACE}} in their tracking category messages, and
handle it. Make it detect any '{{' to deal with localized
variants. This will make it work for
[[commons:MediaWiki:Broken-file-category]]

Change-Id: Ibac0decc5992d30ae536efc91138ad9b42a569e9

9 years agoqunit.completenessTest: Correct walkTheObject behaviour wrt breadcrumb
Adrian Lang [Fri, 28 Mar 2014 09:11:07 +0000 (10:11 +0100)]
qunit.completenessTest: Correct walkTheObject behaviour wrt breadcrumb

The function documentation states that currName is not included in
parentPathArray, although it actually is. This change makes the
implementation match the documentated behavior.

Change-Id: I6e44ad84de2e31320309438b8aa09ec929d15e8e

9 years agoUpdate OOjs UI to v0.1.0-pre (7a0e222a75)
James D. Forrester [Wed, 18 Jun 2014 23:19:20 +0000 (16:19 -0700)]
Update OOjs UI to v0.1.0-pre (7a0e222a75)

New changes:
ef2f66f Element: Add unit tests for focusin/focusout hack
54b09fd Element: Remove focusin/focusout hack in onDOMEvent
91ba7d3 Accessibility: Set role=dialog on dialogs
0447150 Accessibility: Restore element focus when a window closes
715f1ef Localisation updates from https://translatewiki.net.
9f343c0 Localisation updates from https://translatewiki.net.
6be64bc Tidy up SVG sources and fix pixel snapping
7a0e222 Fix scrollIntoView() in the case where the scrollable container is the <body>

Change-Id: I9d86a238546acc867f20aeb45b102c7499108c89

9 years agoUpdate Language::userAdjust() $ts parameter hint to be string
Reedy [Wed, 18 Jun 2014 21:53:07 +0000 (22:53 +0100)]
Update Language::userAdjust() $ts parameter hint to be string

Will technically still take an int (it's parsed around anyway), but
should be passed as a string

Mostly for HipHop stuffs

Change-Id: Id940028d581e34ca2e37a0730ca5766a08fc10e2

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 18 Jun 2014 20:26:18 +0000 (20:26 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoFix $wgDjvuPostProcessor comment about default being pnmtopng
Reedy [Wed, 18 Jun 2014 19:48:38 +0000 (20:48 +0100)]
Fix $wgDjvuPostProcessor comment about default being pnmtopng

Change-Id: I643332fcfb2dfae40dc61e71f2e151d6510ebbcd

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 18 Jun 2014 19:41:11 +0000 (19:41 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia0ebbe849a5458406d8e7c7bee7d930bdba26cfc

9 years agoFix DjVu test (Make sure to check for djvutxt binary)
Brian Wolff [Wed, 18 Jun 2014 19:05:41 +0000 (16:05 -0300)]
Fix DjVu test (Make sure to check for djvutxt binary)

Bug: 61070
Change-Id: Ib5e7c89a51d0872b32bbcd6b7e3db830c2e5e8a6

9 years agoIgnore days of random failing tests in wfTimestampTest
addshore [Tue, 6 May 2014 09:35:18 +0000 (10:35 +0100)]
Ignore days of random failing tests in wfTimestampTest

This switches 2 of the testcases to use a regex
instead of an exact match

Bug: 64946
Change-Id: I24b64b34787eb1b6bbf6e6b6178a2bbf5eb7c32c

9 years agoMerge "The siteinfo API uses '' as an attribute value, not `true`."
jenkins-bot [Wed, 18 Jun 2014 14:03:34 +0000 (14:03 +0000)]
Merge "The siteinfo API uses '' as an attribute value, not `true`."

9 years agoMerge "Removed useless "while" loop"
jenkins-bot [Wed, 18 Jun 2014 00:27:39 +0000 (00:27 +0000)]
Merge "Removed useless "while" loop"

9 years agoMerge "Mime search: Trim leading and trailing whitespace from input"
jenkins-bot [Wed, 18 Jun 2014 00:21:52 +0000 (00:21 +0000)]
Merge "Mime search: Trim leading and trailing whitespace from input"

9 years agoMake ResourceLoaderFileModule#getAllStyleFiles include all skin styles
Sam Smith [Tue, 1 Apr 2014 14:28:46 +0000 (15:28 +0100)]
Make ResourceLoaderFileModule#getAllStyleFiles include all skin styles

* Add the ResourceLoaderFileModule#getAllSkinStyleFiles method,
  which returns all of the skinStyles files for a given module
* The LessFileCompilationTest and checkLess.php script, which use
  the #getAllStyleFile method, now validate all LESS style files

Bug: 63343
Change-Id: Ib2eb5761919c648aea4ae58f8d0531799fe7982b

9 years agoMerge "ResourceLoaderFileModule: Implement remoteSkinPath option"
jenkins-bot [Tue, 17 Jun 2014 19:34:22 +0000 (19:34 +0000)]
Merge "ResourceLoaderFileModule: Implement remoteSkinPath option"

9 years agoMerge "Fixed FSFileOpHandle comment"
jenkins-bot [Tue, 17 Jun 2014 19:23:16 +0000 (19:23 +0000)]
Merge "Fixed FSFileOpHandle comment"

9 years agoMerge "Some phpcs-strict changes on includes/revisiondelete/"
jenkins-bot [Tue, 17 Jun 2014 19:22:57 +0000 (19:22 +0000)]
Merge "Some phpcs-strict changes on includes/revisiondelete/"

9 years agoMime search: Trim leading and trailing whitespace from input
Chad Horohoe [Tue, 17 Jun 2014 17:58:39 +0000 (10:58 -0700)]
Mime search: Trim leading and trailing whitespace from input

Change-Id: I4f8142224d7585bff65ac3cbab4fce8b302c82bd

9 years agoMerge "Actually format search error Status objects nicely"
jenkins-bot [Tue, 17 Jun 2014 17:10:51 +0000 (17:10 +0000)]
Merge "Actually format search error Status objects nicely"

9 years agoActually format search error Status objects nicely
Chad Horohoe [Tue, 17 Jun 2014 16:51:03 +0000 (09:51 -0700)]
Actually format search error Status objects nicely

htmlspecialchars() on wikitext that's passed to addHtml()?

Change-Id: I6cff09ebc052841b923bbed8b9fa02a208e7d61c

9 years agoThe siteinfo API uses '' as an attribute value, not `true`.
C. Scott Ananian [Tue, 17 Jun 2014 14:51:26 +0000 (10:51 -0400)]
The siteinfo API uses '' as an attribute value, not `true`.

Bug: 66723
Change-Id: Ibef772a72bac6b700ba2a3725832f50b057bf503

9 years agoMerge "shell script fix using shellcheck lint"
jenkins-bot [Tue, 17 Jun 2014 14:18:23 +0000 (14:18 +0000)]
Merge "shell script fix using shellcheck lint"

9 years agoResourceLoaderFileModule: Implement remoteSkinPath option
Daniel Friesen [Sun, 1 Jun 2014 17:25:11 +0000 (10:25 -0700)]
ResourceLoaderFileModule: Implement remoteSkinPath option

remoteSkinPath works the same as remoteExtPath but is relative to skins/ instead of extensions/

This will allow skins to register modules using:
 $wgResourceModules['skin.myskin'] = array(
   // ...
   'localBasePath' => __DIR__,
   'remoteSkinPath' => 'myskin',
 );

Instead of using:
 'remoteBasePath' => $GLOBALS['wgStylePath'] . '/myskin', // or
 'remoteBasePath' => &$GLOBALS['wgStylePath'],

Change-Id: I0e8c4a37a224e9528c9c5aa5417f0f56dbb89b97

9 years agoAllow use of GENDER in "fileexists" message
Siebrand Mazeland [Tue, 17 Jun 2014 12:37:17 +0000 (14:37 +0200)]
Allow use of GENDER in "fileexists" message

Requested by Protnet in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Fileexists/el

Change-Id: I51fdc106938977a5c9abd78de4fd6f297e2ac880

9 years agoMerge "Reword typo in file header for EditPage.php"
jenkins-bot [Tue, 17 Jun 2014 08:55:00 +0000 (08:55 +0000)]
Merge "Reword typo in file header for EditPage.php"

9 years agoMerge "Capitalise Message in SpecialAllMessages files"
jenkins-bot [Tue, 17 Jun 2014 08:54:46 +0000 (08:54 +0000)]
Merge "Capitalise Message in SpecialAllMessages files"

9 years agoMerge "Rename SpecialAllpages to SpecialAllPages"
jenkins-bot [Tue, 17 Jun 2014 08:49:45 +0000 (08:49 +0000)]
Merge "Rename SpecialAllpages to SpecialAllPages"

9 years agoMerge "Revert "mediawiki.mixins: Add border-radius mixin""
jenkins-bot [Tue, 17 Jun 2014 02:58:28 +0000 (02:58 +0000)]
Merge "Revert "mediawiki.mixins: Add border-radius mixin""

9 years agoRemoved useless "while" loop
Aaron Schulz [Mon, 16 Jun 2014 21:46:09 +0000 (14:46 -0700)]
Removed useless "while" loop

Change-Id: Idc8ebc3a90f10f2179fcea0872207fe17cc2b265

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 16 Jun 2014 19:44:52 +0000 (19:44 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: If9f9760aecc14851052ac63f3cd9da15152f500e

9 years agoRevert "mediawiki.mixins: Add border-radius mixin"
Krinkle [Mon, 16 Jun 2014 19:17:03 +0000 (19:17 +0000)]
Revert "mediawiki.mixins: Add border-radius mixin"

Prefixes for border-radius haven't been needed in a long time. This
degrades gracefully and isn't worth the overhead.

In addition, only a few weeks ago did we merge commits that removed all
this prefixes (e.g. in Ie5ce3202b4). Adding this mixin would encourage
doing the reverse.

This reverts commit 591ba359f283c5ab4ba1b2a0359a98692a3b204b.

Change-Id: Ic25a001de3fe1516cc4939b3159e362e87cb790b

9 years agoFollowup e48ecbc5: fix fatal error due to undefined variable
Roan Kattouw [Mon, 16 Jun 2014 18:30:47 +0000 (11:30 -0700)]
Followup e48ecbc5: fix fatal error due to undefined variable

Bug: 66669
Change-Id: I195a5ff539f09addb92d2bb07d53bdb3aef0db1f

9 years agoMinor: more specific parsoid image styling with child selectors
Gabriel Wicke [Mon, 16 Jun 2014 17:17:08 +0000 (10:17 -0700)]
Minor: more specific parsoid image styling with child selectors

Bug: 51245
Bug: 66616
Change-Id: Iff228e932bbb3d548e9a0430a561020cdccf1b4c

9 years agoRename SpecialAllpages to SpecialAllPages
Reedy [Mon, 16 Jun 2014 17:36:04 +0000 (18:36 +0100)]
Rename SpecialAllpages to SpecialAllPages

Change-Id: Ic137bc7adbc4a9ed96448ba0fee4807b67b3112d

9 years agoCapitalise Message in SpecialAllMessages files
Reedy [Mon, 16 Jun 2014 17:25:53 +0000 (18:25 +0100)]
Capitalise Message in SpecialAllMessages files

No internal changes to Special:Allmessage etc made

Change-Id: I21a164af0b6ec123bf654cd1e4e7085b1192f067

9 years agoMerge "mediawiki.mixins: Add border-radius mixin"
jenkins-bot [Mon, 16 Jun 2014 10:06:35 +0000 (10:06 +0000)]
Merge "mediawiki.mixins: Add border-radius mixin"

9 years agomediawiki.mixins: Add border-radius mixin
Rob Moen [Thu, 22 May 2014 22:40:24 +0000 (15:40 -0700)]
mediawiki.mixins: Add border-radius mixin

Change-Id: Idb46dee0ac8a29d489ec7fb405f8a3149a729b3b

9 years agoSplit messages for recent change legend and letter tooltips
Bartosz Dziewoński [Fri, 9 May 2014 18:06:58 +0000 (20:06 +0200)]
Split messages for recent change legend and letter tooltips

This makes it possible to use formatting in the legend ones
(e.g. links to help pages) and to use different wording
(the one for tooltips is sometimes too verbose for the legend).

Documented the format of $wgRecentChangesFlags better.

The default text in not modified in this change.

Bug: 58715
Bug: 60235
Change-Id: Ie9872c8fb3e43620877300ee8536bb5ddee5ab46

9 years agoReword typo in file header for EditPage.php
withoutaname [Mon, 16 Jun 2014 05:58:34 +0000 (22:58 -0700)]
Reword typo in file header for EditPage.php

Change-Id: Iefad919e09632b11bb06abcab390a756455c2ddd

9 years agoMerge "Add tests for API's assert={user|bot}"
jenkins-bot [Mon, 16 Jun 2014 01:33:24 +0000 (01:33 +0000)]
Merge "Add tests for API's assert={user|bot}"

9 years agoRevert "Revert "Officially deprecate skin autodiscovery""
Bartosz Dziewoński [Tue, 10 Jun 2014 20:38:47 +0000 (20:38 +0000)]
Revert "Revert "Officially deprecate skin autodiscovery""

The CI issue that made the revert necessary is fixed now.

This reverts commit d672aa3123a612583ef9ec67115992aafce5b2af.

Bug: 66429
Change-Id: Ib2b4a895c5d01e5ccc7e4edfdbfdcaf0a93c267c

9 years agoMerge "Fix some line mis-wrapping and typos in RELEASE-NOTES-1.24"
jenkins-bot [Mon, 16 Jun 2014 00:43:04 +0000 (00:43 +0000)]
Merge "Fix some line mis-wrapping and typos in RELEASE-NOTES-1.24"

9 years agoMerge "Update jquery.jStorage.js"
jenkins-bot [Mon, 16 Jun 2014 00:21:46 +0000 (00:21 +0000)]
Merge "Update jquery.jStorage.js"

9 years agoMerge "Collapse duplicate $existingExpiry == 'infinity' case into else"
jenkins-bot [Mon, 16 Jun 2014 00:07:17 +0000 (00:07 +0000)]
Merge "Collapse duplicate $existingExpiry == 'infinity' case into else"

9 years agoCollapse duplicate $existingExpiry == 'infinity' case into else
Reedy [Sun, 15 Jun 2014 23:49:34 +0000 (00:49 +0100)]
Collapse duplicate $existingExpiry == 'infinity' case into else

Change-Id: I1cc612e9f646dd75f58cc6ae0ae073ebffa7d6d3

9 years agoAPI: Allow 'infinity' as a valid protection expiry
Kunal Mehta [Fri, 20 Dec 2013 09:06:51 +0000 (01:06 -0800)]
API: Allow 'infinity' as a valid protection expiry

Change-Id: If9eb1f3e835579f5c8b8be22297a1eb26beda4e7

9 years agoSwitch API to use Config classes
Reedy [Fri, 24 Jan 2014 02:51:11 +0000 (02:51 +0000)]
Switch API to use Config classes

Only done where globals are config (so not $wgParser, $wgContLang etc)

Change-Id: Ic39cdd858cfb9096a2bc09618f97e64270d76f13

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 15 Jun 2014 19:42:49 +0000 (19:42 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Id7f62d5c54ac1d476f37d238759a28ef803347fb

9 years agoUpdate jquery.jStorage.js
paladox [Sat, 14 Jun 2014 23:41:57 +0000 (23:41 +0000)]
Update jquery.jStorage.js

Project site

* http://www.jstorage.info/ and https://github.com/andris9/jStorage

jquery.jStorage.js file

* https://github.com/andris9/jStorage/blob/master/jstorage.js

Author and contact

* Andris Reinman and email andris.reinman@gmail.com

README

* https://github.com/andris9/jStorage/blob/master/README.md

Change-Id: I0ca42e909cc08f8f0b67cec0a7c0aedd0ebf91d7

9 years agoMerge "mw-ui mixins: More colors, more browser helper mixins"
jenkins-bot [Sat, 14 Jun 2014 23:41:57 +0000 (23:41 +0000)]
Merge "mw-ui mixins: More colors, more browser helper mixins"

9 years agomw-ui mixins: More colors, more browser helper mixins
Shahyar [Thu, 3 Apr 2014 23:29:17 +0000 (18:29 -0500)]
mw-ui mixins: More colors, more browser helper mixins

Change-Id: I895679ffe2f5eb1f002ff110c750e77824004820

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 14 Jun 2014 19:07:48 +0000 (19:07 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Id1349f603b9e9c7d7c039a7fbea03ccf69238d89

9 years agoFix some line mis-wrapping and typos in RELEASE-NOTES-1.24
Bartosz Dziewoński [Sat, 14 Jun 2014 12:25:26 +0000 (14:25 +0200)]
Fix some line mis-wrapping and typos in RELEASE-NOTES-1.24

Change-Id: I08c513ed6418f58b1d269456affd02d882ab8e9b

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 13 Jun 2014 20:38:43 +0000 (20:38 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I70982e6a517a7fd472acb8577adde727cabd7a21

10 years agoAdd SpecialEditWatchlist::prefixSearchSubpages
umherirrender [Fri, 13 Jun 2014 18:51:58 +0000 (20:51 +0200)]
Add SpecialEditWatchlist::prefixSearchSubpages

Also add 'clear' to SpecialWatchlist::prefixSearchSubpages

Change-Id: Ibc1ca44a9472cd86a6dc5df04274089b8fcf30a2

10 years agoMerge "Change MostLinkedTemplates to MostTranscludedPages"
jenkins-bot [Fri, 13 Jun 2014 17:42:33 +0000 (17:42 +0000)]
Merge "Change MostLinkedTemplates to MostTranscludedPages"

10 years agoFixed FSFileOpHandle comment
Aaron Schulz [Fri, 13 Jun 2014 17:17:33 +0000 (10:17 -0700)]
Fixed FSFileOpHandle comment

Change-Id: Ie89d18f173f4fb172c35317cee9403e5f5f43d47

10 years agoMerge "Made FSFileBackend use closures for doExecuteOpHandlesInternal()"
jenkins-bot [Fri, 13 Jun 2014 15:57:43 +0000 (15:57 +0000)]
Merge "Made FSFileBackend use closures for doExecuteOpHandlesInternal()"

10 years agoChange MostLinkedTemplates to MostTranscludedPages
Jackmcbarn [Fri, 6 Jun 2014 18:27:54 +0000 (14:27 -0400)]
Change MostLinkedTemplates to MostTranscludedPages

Rename Special:MostLinkedTemplates to Special:MostTranscludedPages, and
allow it to return pages from any namespace.

Change-Id: I27c2fb50f77aef760f8c7006ae48297451230c6f

10 years agoMerge RELEASE-NOTES-1.23 into HISTORY
Kevin Israel [Thu, 12 Jun 2014 02:23:05 +0000 (22:23 -0400)]
Merge RELEASE-NOTES-1.23 into HISTORY

Used the REL1_23 version of that file, and moved the note added in
5e48ad2e78ce to RELEASE-NOTES-1.24, where it belongs.

Change-Id: Id5f4726152fc2f4c90117762f6dc4904f5fa9f94

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 12 Jun 2014 21:28:55 +0000 (21:28 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib84e5a1bc0740a2948a2a902e6916fa3f9c1627a

10 years agoMerge "Remove $wgDBClusterTimeout"
jenkins-bot [Thu, 12 Jun 2014 20:46:59 +0000 (20:46 +0000)]
Merge "Remove $wgDBClusterTimeout"

10 years agoMade FSFileBackend use closures for doExecuteOpHandlesInternal()
Aaron Schulz [Thu, 12 Jun 2014 20:40:03 +0000 (13:40 -0700)]
Made FSFileBackend use closures for doExecuteOpHandlesInternal()

Change-Id: I8401a92384cb454eb79a4607b350c50d432a9510

10 years agoMerge "Apparently for certain (API) requests $this->getTitle() doesn't return a valid...
jenkins-bot [Thu, 12 Jun 2014 19:28:35 +0000 (19:28 +0000)]
Merge "Apparently for certain (API) requests $this->getTitle() doesn't return a valid Title."

10 years agoRemove $wgDBClusterTimeout
withoutaname [Thu, 12 Jun 2014 18:35:02 +0000 (11:35 -0700)]
Remove $wgDBClusterTimeout

Also added release notes that I forgot to include in
change I4b409ef

Change-Id: I9416c0dc7dea1c32c3e1f6d7177ee9bc4e34e1de

10 years agoMerge "Deprecate $wgMasterWaitTimeout"
jenkins-bot [Thu, 12 Jun 2014 18:23:50 +0000 (18:23 +0000)]
Merge "Deprecate $wgMasterWaitTimeout"

10 years agoUse type hinting in ApiBase
Brad Jorsch [Fri, 16 May 2014 15:11:55 +0000 (11:11 -0400)]
Use type hinting in ApiBase

For ideological reasons this was not included in Ie6bf1915.

Change-Id: I5f7119665746eb6fcf86c3a403caa2dcb67904eb

10 years agoAutocomplete special pages' subpages in search suggestions
Bartosz Dziewoński [Thu, 12 Jun 2014 14:59:46 +0000 (16:59 +0200)]
Autocomplete special pages' subpages in search suggestions

Includes basic "example" implementations for:
* Special:Watchlist (predefined subpage list)
* Special:Log (based on config variable)

Bug: 20210
Change-Id: I2b0505df244b9d23bd23d5fb4d3405dc28d57739

10 years agoMerge "Vector: Workaround for legacy IE font-sizing issues"
jenkins-bot [Thu, 12 Jun 2014 14:35:58 +0000 (14:35 +0000)]
Merge "Vector: Workaround for legacy IE font-sizing issues"

10 years agoMerge "Create PostLoginRedirect Hook for changing the redirect behavior"
jenkins-bot [Thu, 12 Jun 2014 14:24:50 +0000 (14:24 +0000)]
Merge "Create PostLoginRedirect Hook for changing the redirect behavior"

10 years agoVector: Workaround for legacy IE font-sizing issues
Entlinkt [Thu, 12 Jun 2014 08:04:37 +0000 (08:04 +0000)]
Vector: Workaround for legacy IE font-sizing issues

In IE <= 7, 'Ctrl' + '+' scales the font size in far too large steps if the
root element's font size is given in the 'em' unit. Everything becomes normal
if the root element's font-size is given in '%'. This should not have any
effect in other browsers.

Bug: 24515
Change-Id: I5cc864d73935a02713075840b7ff80000b3ae88a

10 years agoDeprecate $wgMasterWaitTimeout
withoutaname [Thu, 12 Jun 2014 05:16:35 +0000 (22:16 -0700)]
Deprecate $wgMasterWaitTimeout

Not only was this global unused, it also caused the LoadBalancer
to look for the wrong array key, which would always set
$mWaitTimeout to 10 in the conditional. There is also
a manual function LoadBalancer::waitTimeout() for this.

Change-Id: I4b409ef890bec5aac7f666a2ed3dff9ea8bc14cc

10 years agoresourceloader: Implement "skip function" feature
Timo Tijhof [Wed, 30 Apr 2014 21:06:51 +0000 (23:06 +0200)]
resourceloader: Implement "skip function" feature

A module can be registered with a skip function. Such function,
if provided, will be invoked by the client when a module is
queued for loading. If the function returns true, the client will
bypass any further loading action and mark the module as 'ready'.

This can be used to implement a feature test for a module
providing a shim or polyfill.

* Change visibility of method ResourceLoader::filter to public.

So that it can be invoked by ResourceLoaderStartupModule.

* Add option to suppress the cache key report in ResourceLoader::filter.

We usually only call the minifier once on an entire request
reponse (because it's all concatenated javascript or embedded
javascript in various different closures, still valid as one
large script) and only add a little bottom line for the cache
key. When embedding the skip function we have to run the minifier
on them separately as they're output as strings (not actual
functions). These strings are typically quite small and blowing
up the response with loads of cache keys is not desirable in
production.

* Add method to clear the static cache of ResourceLoader::inDebugMode.

Global static state is evil but, as long as we have it, we at
least need to clear it after switching contexts in the test suite.

Also:
* Remove obsolete setting of 'debug=true' in the FauxRequest in
  ResourceLoaderTestCase. It already sets global wgResourceLoaderDebug
  in the setUp() method.

Bug: 66390
Change-Id: I87a0ea888d791ad39f114380c42e2daeca470961

10 years agoUpdate OOjs UI to v0.1.0-pre (c5ae888f67)
Roan Kattouw [Thu, 12 Jun 2014 01:10:14 +0000 (18:10 -0700)]
Update OOjs UI to v0.1.0-pre (c5ae888f67)

New changes:
9eec766 Create 'next' and 'previous' indicators

Change-Id: I3f091f25be73fe35a55b113630c253c9a3cf5b38

10 years agoUpdate OOjs UI to v0.1.0-pre (9f4f250f88)
Trevor Parscal [Thu, 12 Jun 2014 00:02:22 +0000 (17:02 -0700)]
Update OOjs UI to v0.1.0-pre (9f4f250f88)

New changes:
bf4ba74 Localisation updates from https://translatewiki.net.
a99acae Remove use of imaginary config option in OutlineControlsWidget
8db7499 Localisation updates from https://translatewiki.net.
7d7b9ce [BREAKING CHANGE] Window process cleanup

Change-Id: Ib9ae3fdfe14bbeb1f687b26f552cf4fb49db2d69

10 years agoMerge "Remove $wgProxyKey"
jenkins-bot [Wed, 11 Jun 2014 23:30:07 +0000 (23:30 +0000)]
Merge "Remove $wgProxyKey"

10 years agoMerge "RCFeed: Add log_id property (exposes rc_logid attribute)"
jenkins-bot [Wed, 11 Jun 2014 22:32:03 +0000 (22:32 +0000)]
Merge "RCFeed: Add log_id property (exposes rc_logid attribute)"

10 years agoRCFeed: Add log_id property (exposes rc_logid attribute)
Kunal Mehta [Fri, 6 Jun 2014 01:59:15 +0000 (18:59 -0700)]
RCFeed: Add log_id property (exposes rc_logid attribute)

Bug: 20394
Change-Id: I005be8e41a5cbea934d4dac27184f03e9af7c648

10 years agoRemove $wgProxyKey
withoutaname [Wed, 11 Jun 2014 20:47:03 +0000 (13:47 -0700)]
Remove $wgProxyKey

Change-Id: I1748164f108fab701c79532ede13ae387b12769d

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 11 Jun 2014 20:27:08 +0000 (20:27 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib84999f8508bc7bd8843eae28a8db1a35b1628be

10 years agoApparently for certain (API) requests $this->getTitle() doesn't return a valid Title.
Jack Phoenix [Wed, 11 Jun 2014 20:00:24 +0000 (23:00 +0300)]
Apparently for certain (API) requests $this->getTitle() doesn't return a valid Title.

Usually these are API siteinfo requests (api.php?action=query&meta=siteinfo). In that case, this code used to produce a fatal ("Call to a member function getPageLanguage() on a non-object").

Change-Id: Ifb6f99fe554890ff2719220f58d1b6c1a7a95ddc

10 years agoReduce deadlocks adding log rows to the RC table on delete
Aaron Schulz [Tue, 10 Jun 2014 20:25:34 +0000 (13:25 -0700)]
Reduce deadlocks adding log rows to the RC table on delete

bug: 56776
Change-Id: Ic75530b25f3fa5668019c76ce59a1dda2768f389

10 years agoMerge "Fix misnamed SVGHandler::canAnimateThumb()"
jenkins-bot [Wed, 11 Jun 2014 17:54:52 +0000 (17:54 +0000)]
Merge "Fix misnamed SVGHandler::canAnimateThumb()"

10 years agoMerge "Remove isset() check in Sanitizer::setupAttributeWhitelist()"
jenkins-bot [Wed, 11 Jun 2014 17:49:56 +0000 (17:49 +0000)]
Merge "Remove isset() check in Sanitizer::setupAttributeWhitelist()"

10 years agoMerge "Cleanups to WebRequest::getIP logic"
jenkins-bot [Wed, 11 Jun 2014 17:28:17 +0000 (17:28 +0000)]
Merge "Cleanups to WebRequest::getIP logic"

10 years agoMerge "Add a maintenance script to list variants and languages with then"
jenkins-bot [Wed, 11 Jun 2014 17:21:47 +0000 (17:21 +0000)]
Merge "Add a maintenance script to list variants and languages with then"

10 years agoMerge "MimeMagic: Don't seek before BOF"
jenkins-bot [Wed, 11 Jun 2014 17:18:35 +0000 (17:18 +0000)]
Merge "MimeMagic: Don't seek before BOF"

10 years agoCleanups to WebRequest::getIP logic
Aaron Schulz [Sat, 7 Jun 2014 00:20:47 +0000 (17:20 -0700)]
Cleanups to WebRequest::getIP logic

* Throw an error if there is no immediate server IP, otherwise the
  XFF logic is wonky.
* Refactored the loop to be a bit easier to read.
* Better handle "unknown" entries in the XFF chain.

Change-Id: I9541afa408d895c3fd337a883ecfe4ce0ba57090

10 years agoMimeMagic: Don't seek before BOF
rillke [Tue, 10 Jun 2014 21:50:30 +0000 (23:50 +0200)]
MimeMagic: Don't seek before BOF

This has weird side effects like only extracting the tail of the
file partially or not at all.

Bug: 66428
Change-Id: I182128c6958244f1515227ee742c3206a7484aee

10 years agoHistory: Simplify checkboxes script on History pages
Derk-Jan Hartman [Fri, 16 May 2014 13:52:52 +0000 (15:52 +0200)]
History: Simplify checkboxes script on History pages

This should reduce the amount of variables constructed and also switches
to a class based implementation, which allows us to do the same with
fewer calls touching the DOM.

Not supported by IE6.

Bug: 51561
Change-Id: I4596b3667f990ef1d8c7ca753e1d80fe285d5614

10 years agoRemove obsolete RC_MOVE and RC_MOVE_OVER_REDIRECT rc types
JuneHyeon Bae [Thu, 5 Jun 2014 00:54:02 +0000 (09:54 +0900)]
Remove obsolete RC_MOVE and RC_MOVE_OVER_REDIRECT rc types

RC_MOVE and RC_MOVE_OVER_REDIRECT are obsolete, since at least 2006.
So it is considered safe to remove.

Bug: 63755
Change-Id: I0f17c4d164585a48fb9f0d40b90a7d3b975c7ab8

10 years agoMerge "Final page of search results sometimes having erroneous "next" link"
jenkins-bot [Wed, 11 Jun 2014 01:17:35 +0000 (01:17 +0000)]
Merge "Final page of search results sometimes having erroneous "next" link"

10 years agoFix misnamed SVGHandler::canAnimateThumb()
Brian Wolff [Wed, 11 Jun 2014 00:15:53 +0000 (21:15 -0300)]
Fix misnamed SVGHandler::canAnimateThumb()

Caused the animation warning to not be present on
image description pages

Also add unit tests. Since I'm adding an animated svg file for
this unit test, also add a metadata extraction test for animated
svgs, since we're missing one.

Change-Id: Id03e1a0e1c151d3c575a695a42c54b709187d10a
follow-up: 876128f8c9f0ce6a8424336f

10 years agoMerge "LoginForm: Pass username as first parameter to error message if aborted"
jenkins-bot [Tue, 10 Jun 2014 22:43:11 +0000 (22:43 +0000)]
Merge "LoginForm: Pass username as first parameter to error message if aborted"

10 years agoMerge "Fetch string to pass through writeTemporary() in DatabaseOracle.php"
jenkins-bot [Tue, 10 Jun 2014 22:24:11 +0000 (22:24 +0000)]
Merge "Fetch string to pass through writeTemporary() in DatabaseOracle.php"

10 years agoMerge "Removed undeclared var from wfDebug()"
jenkins-bot [Tue, 10 Jun 2014 22:21:30 +0000 (22:21 +0000)]
Merge "Removed undeclared var from wfDebug()"

10 years agoMerge "Revert "Fix "CSSMin url() value remapping not working in certain obscure cases"""
jenkins-bot [Tue, 10 Jun 2014 22:12:53 +0000 (22:12 +0000)]
Merge "Revert "Fix "CSSMin url() value remapping not working in certain obscure cases"""

10 years agoRevert "Fix "CSSMin url() value remapping not working in certain obscure cases""
Trevor Parscal [Tue, 10 Jun 2014 22:04:40 +0000 (22:04 +0000)]
Revert "Fix "CSSMin url() value remapping not working in certain obscure cases""

This reverts commit fa1053a16a5b3ff2004f6c06c69e87f8570a35d7.

Breaks CSS output, making the skin and extensions look unstyled.

Change-Id: I297150f775dd5559f91f2c9c25c64b134459c6b6

10 years agoLoginForm: Pass username as first parameter to error message if aborted
Kunal Mehta [Tue, 10 Jun 2014 22:00:08 +0000 (15:00 -0700)]
LoginForm: Pass username as first parameter to error message if aborted

If a hook is aborted, pass the username as the first parameter to allow
for more customized messages.

Change-Id: Ifb55a2e180c619f7d06f728dd8eea2c9863b8f82

10 years agoRemove <div id="mw-js-message">
Bartosz Dziewoński [Sat, 31 May 2014 17:53:11 +0000 (19:53 +0200)]
Remove <div id="mw-js-message">

This is a remnant of the mw.util.jsMessage() utility, replaced by
mw.notify() several versions ago.

Change-Id: Ifd2765581f06dcc2ca057bc30b27b336df2d066b

10 years agoMerge "Fix "CSSMin url() value remapping not working in certain obscure cases""
jenkins-bot [Tue, 10 Jun 2014 21:35:56 +0000 (21:35 +0000)]
Merge "Fix "CSSMin url() value remapping not working in certain obscure cases""