Commit Graph

156 Commits

Author SHA1 Message Date
Kunal Mehta
07cf9bbedf Register EventLogging schemas in extension.json
Change-Id: I60012747daa927264474e7a4867ad0f9124d793c
2018-06-23 00:02:07 +02:00
Kunal Mehta
10a5865f9a Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors
Change-Id: I2c868006d108b35adaa19d179bc6ebe95e29d0ef
2018-05-23 23:02:54 -07:00
Kunal Mehta
294a9e2106 Remove unused global $wgWBClientSettings
Change-Id: I83ec06f6783be9c98ee511efb4331d05bc0890fe
2018-05-23 22:59:56 -07:00
Umherirrender
b8944d50e1 Remove return from hook handler
Change-Id: I3e6b79206f878cdfe3399009e1d06ec4fe2c3aac
2018-05-06 08:18:44 +00:00
libraryupgrader
f97802e4e2 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
The following sniffs are failing and were disabled:
* MediaWiki.VariableAnalysis.UnusedGlobalVariables.UnusedGlobal$wgWBClientSettings

Change-Id: Ia5423c3d7ea419b3f073f35736de7a9379d4429a
2018-04-14 07:39:31 +00:00
libraryupgrader
858ebd5552 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: I06e0542d737cec5e2500aad6d85f72951f8b584d
2018-03-29 06:53:52 +00:00
Amire80
d6630a4780 Log the context of the ULS in which no search results were found
Relies on updates to EventLogging schema. Diff:
https://meta.wikimedia.org/w/index.php?title=Schema%3AUniversalLanguageSelector&type=revision&diff=17799034&oldid=7327441

Bug: T179402
Change-Id: I2ff9ce9b40df16ed3c5e6970fb3b691af08cedec
2018-03-08 16:03:33 +02:00
jenkins-bot
ee21e016be Merge "Custom no-results message for compact links search" 2018-02-13 13:11:29 +00:00
Santhosh Thottingal
28c455feaf Custom no-results message for compact links search
Bug: T182539
Change-Id: I0e3bb7104015a5244290058dc0ac5b3c17b1ea20
2018-02-08 10:38:06 +05:30
Niklas Laxström
e9051e2d3f Don't apply CLL to pages with the noexternallanglinks magic word
There is actually a magic word and a parser function. This checks
if all links are excluded (*).

Bug: T186590
Change-Id: Iaf860683f6e3bc9b00d5e8f19b8be7c0f1b20f5b
2018-02-07 20:13:46 +01:00
Santhosh Thottingal
4f3461a9aa Remove autonym font and its usage
I no longer maintain the Autonym font.
Also remove the tofu detection.

Bug: T135464
Bug: T135465
Change-Id: I103aab40ea5f5fc403a7ee5b23d1b634cc9c6ee1
2017-11-13 08:03:12 +00:00
Umherirrender
7761a9e60b Improve some parameter docs
Change-Id: Icd8fd55cf1a4a83a6f674038e098b9be8257dc0c
2017-10-07 16:54:28 +02:00
Quiddity
1f104a60e4 Use Special:MyLanguage in help link for betafeature info
Bug: T145904
Change-Id: I41eae6b4afc6c9cafcb096776304bea8df7293a5
2017-08-26 20:36:23 +00:00
Niklas Laxström
aebe0ea7c2 Update version used in ULS_VERSION to match extension.json
Change-Id: Icced77930c4355de2db349ef95ad24416928f5b4
2017-08-25 15:11:55 +02:00
Umherirrender
1a4ac5a6d6 build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: Ib7a361cf2973bf0bba0fb8944762216f44c226a8
2017-07-26 23:22:26 +02:00
Kunal Mehta
0e7d8a7a9d build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.Commenting.FunctionComment.WrongStyle
* MediaWiki.FunctionComment.Missing.Public

Change-Id: Ic8acf95cfd8edf88125128fe527e357fa5d0a8ec
2017-06-25 18:39:02 +00:00
Amire80
757d28b114 Show languages from the Babel box on the user page
Bug: T135371
Change-Id: Ieeaf446326be93a779df3e6bd7a8dca899950a6c
2017-05-30 17:25:23 +03:00
James D. Forrester
1d9fec680b extension.json: Remove no-op dependency on deprecated es5-shim module
Preserve dependency for MediaWiki 1.27 and 1.28.

Bug: T162590
Change-Id: Ia77b8914e3b036b6d7d7bf886ba0e47be9aba0ed
2017-05-05 21:16:42 +00:00
Niklas Laxström
404d7a1241 Fix site picks: missing from globals
The isset was hiding this

Change-Id: If0301026e62e7d2b7249af68e336de4ff2ce3f54
2017-02-21 15:41:40 +01:00
Niklas Laxström
7baa3c4a3b Fix broken site picks feature for compact language links
Ref T153900#3011037 and T155995

Change-Id: I429cdf330b6bf70d1710cd5a041c782e6617cb39
2017-02-16 08:29:14 +01:00
Niklas Laxström
af37b31b8a Provide link to compact language links info page
Bug: T157344
Change-Id: Ib0d14ee0bdd639c14805412b1754f0f69f6daa63
2017-02-15 12:16:00 +00:00
Fomafix
1312b905f2 Remove module 'jquery.i18n'
Since MediaWiki 1.26 the module 'jquery.i18n' is in core:
 git blame origin/REL1_26 -- resources/Resources.php

Bug: T153635
Change-Id: Ie4cf86dd5020a75456cfe183b26c114437eb22e0
2017-01-20 16:58:52 +01:00
jenkins-bot
c6adadae95 Merge "Use an empty array instead of the uls-p-lang-dummy list item (PHP)" 2017-01-11 19:47:58 +00:00
Fomafix
a159ff1444 Use an empty array instead of the uls-p-lang-dummy list item (PHP)
This change avoids a flash of a list item bullet while loading on skin
MonoBook.

The JavaScript part of this change is in
Id7f429d9d1217316341102e27389711525f17b2d. The JavaScript part should get
deployed when the HTML caches of this change has expired.

Change-Id: I54a18f5bd85a8261a25e1160dda7a33fbdf3dd7b
2017-01-04 14:20:33 +01:00
Ed Sanders
6fe8a31267 Update beta feature screenshots to use proper layout and colours
Bug: T144428
Change-Id: I755d0d3b3fdcf569d2470a4a9980ae0e2df66a37
2016-10-12 15:26:32 -07:00
Fomafix
fda55e2ab1 Integrate ext.uls.nojs into ext.uls.pt
The CSS hiding for non-JavaScript clients is only necessary when the buttons
get added.

Change-Id: I6e43e39d29c093a19f3e8355d657f162f9a62736
2016-09-20 12:22:51 +00:00
Fomafix
80a943d41e Add pure CSS modules via addModuleStyles() instead of addModules()
'ext.uls.pt' and 'ext.uls.interlanguage' are pure CSS modules.
This change avoids a FOUC of the ULS icons.

Change-Id: I912d0c98d1857461d21b4db0ef7376783cc871d2
2016-09-13 18:51:53 +02:00
Niklas Laxström
4cd1def0f3 Switch default ULS geoip provider
Current provider is going away. Switching to another free provider.
Implemented caching with a cookie for speed and to avoid generating
unnecessary load on the service.

Bug: T143542
Change-Id: I191d69a6fb8abe9556f475dfef1368dc9f96b846
2016-08-24 15:55:00 +00:00
Niklas Laxström
aaa1219d48 Do not load schema.UniversalLanguageSelector explicitly
Because ext.uls.eventlogger has it as a dependency.
Found while checking T70955

Change-Id: I68a69d12bbf58f8d347fc05e19d0edbf817fb49f
2016-08-18 14:46:48 +02:00
Niklas Laxström
4dc4b7b81b Update compact language links beta feature info and talk links
Bug: T142559
Change-Id: Ia4bcc62911beb52bf7b4d0788a97c35bbd776b0d
2016-08-10 14:40:01 +02:00
Niklas Laxström
4f4051a40d CompactLinks: support sortPrepend from WikiBaseClient
Bug: T138973
Change-Id: I64b7aa37d8a6b3cac92d492a33fe6f8cb04ce0e6
2016-07-26 13:36:26 +00:00
KartikMistry
5ee9a7529b Revert "Fix ULSCompactLinksEnableAnon configuration"
This reverts commit e08d9bcc57.

Change-Id: I6830300561264a8344029c2bf7ea3d44b9da199b
2016-06-23 13:29:54 +00:00
Kartik Mistry
e08d9bcc57 Fix ULSCompactLinksEnableAnon configuration
Compact Language Links was enabled by default despite of
ULSCompactLinksEnableAnon was set false.

Bug: T138321
Change-Id: I776c31f94c1314091a3d9b635a33962775dd9b52
2016-06-22 10:50:30 +05:30
Niklas Laxström
d21e271c92 Do not output accept language list if it might get cached
Bug: T137522
Change-Id: Ib603f836f59f7078ac5dbb7bbbb3b84ca358cb43
2016-06-10 10:04:02 +02:00
Santhosh Thottingal
02da4454e2 Add config to enable compact language links for anonymous users
By default, the value is false.

Change-Id: I16dd24182c6e2b8e5e63ebfc0ea305a3511a9e1d
2016-05-16 11:20:56 +00:00
Santhosh Thottingal
35e7d72e35 Add config to enable compact links for new accounts
By default the value is false.

Change-Id: I30e9c3d929158d9ebe90edfcb10c90712ad294f9
2016-05-16 15:07:20 +05:30
Santhosh Thottingal
f1995bc603 Introduce a preference to disable compact language links
Bug: T133030
Change-Id: If9ec0b8c75c59c62991f0d4bfa99f6d4c9324c30
2016-05-13 14:51:21 +02:00
Kunal Mehta
6b8c33e763 build: Updating mediawiki/mediawiki-codesniffer to 0.7.1
Also added "composer fix" command.

Change-Id: I6f3f29f03abb607fbca9cec6f140875f2a3468a0
2016-05-09 18:30:34 -07:00
Santhosh Thottingal
aa4e4b417d Introduce a config variable to enable Compact language links by default
Configuration: ULSCompactLanguageLinksBetaFeature
Default value: True

Bug: T134145
Change-Id: I8d4e97653daf7fcee9175c6d7cefb5c5abb22305
2016-05-09 08:40:53 +00:00
Santhosh Thottingal
695ea37918 Remove wgULSCompactLinks configuration variable
This was used to expose Compact language links as beta feature.
Now a days, we want it as beta feature unconditionally and this
configuration does not make sense. So removing.

Bug: T134145
Change-Id: I40d5c07064b5f407ec37837b0835e0698f3a5256
2016-05-02 04:11:13 +00:00
Siebrand Mazeland
7565fdcf43 Call static Language::fetchLanguageName() statically
Change-Id: I3203ec8c601bc869b5c1b153fb745620ff9c03f6
2016-04-01 12:55:34 +02:00
Siebrand Mazeland
626d4e81d7 Fix case mismatch in method call
Change-Id: Ie002b925afaae7c88b587570659ffde3c579574d
2016-03-07 07:13:02 +00:00
Siebrand Mazeland
0e83adfef7 Perform cheaper check first
Change-Id: I4f82eb6a4ebf04ce5a41562b56ce3ee3794b018d
2016-03-07 08:11:57 +01:00
Siebrand Mazeland
12abc7daca Pass-by-reference is not needed
https://secure.php.net/manual/en/language.oop5.references.php

Change-Id: I6730b8e4326abf304f102fe5c50041342e3a70a1
2016-03-05 16:14:28 +01:00
Siebrand Mazeland
49b4cc0028 Declare functions with access modifiers
Change-Id: I047d3dc6642de07130a43ad4c2fd4a8106450aac
2016-03-05 16:10:52 +01:00
Florian
00349ab0eb Register ext.uls.eventlogger conditionally
The ext.uls.eventlogger module is now registered depending on
the configuration variable $wgULSEventLogging. This will prevent
the Structuretest Resourcetest to fail, if EventLogging isn't
installed on the test system (like on my jenkins environment :P).

Change-Id: I1e2545492ec04fb043638765ac42f09da89813e9
2016-01-25 14:53:32 +00:00
jenkins-bot
c6d5599ad8 Merge "Defer "language" preference update" 2015-09-08 19:37:05 +00:00
Niklas Laxström
f3a05e271b Remove not useful comments
Change-Id: I99c30a6c6d6b59e86e5e3efe31f38439c5e95095
2015-08-28 18:24:49 +02:00
Aaron Schulz
b83f99cf54 Defer "language" preference update
* This avoids DBPerformance log notices on GET requests

Bug: T92357
Change-Id: I9e4bc3fab4cfe36ca820abe8eb46594adac66dc4
2015-08-27 00:42:21 +00:00
James D. Forrester
9afbea2914 Use jQuery.i18n from MediaWiki core if available.
This allows other extensions to use this too, without needing a hack to detect
ULS's existence and work around it by not loading their copies of j/i18n code.

Preserves backwards-compatibility for archaïc versions of MediaWiki.

Bug: T95666
Change-Id: I25b33437ceddb60570322b9aa51844acc42a3e32
2015-07-23 15:33:42 -07:00