Commit Graph

142 Commits

Author SHA1 Message Date
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
jenkins-bot
bb36aec8ea Merge "Use Language::isSupportedLanguage for language code validation" 2015-07-09 06:37:26 +00:00
Niklas Laxström
8a7bccc5ce Set ULS_VERSION when using extension registration
This unbreaks Translate and CleanChanges who depend on the constant.

Change-Id: I8bfb9e2aaeb77351beefb130f71daeee4e07afae
2015-07-07 21:28:09 +02:00
Niklas Laxström
417f8ff655 Use Language::isSupportedLanguage for language code validation
Aforementioned function is faster and available since 1.21 so we
can start using it. In addition it is needed to fix T104987.

Made it so that default value is empty string instead of null
because the language validations barf at null.

Bug: T104987
Change-Id: Ie944f5c8af0c825546f9fab660451f41ab7dde3c
2015-07-07 15:04:35 +02:00
Ori Livneh
61a6983bec Update geoiplookup URL endpoint for I8c90977e4
Bits is slated to be decomissioned. Change I8c90977e4 ensures the /geoiplookup
endpoint remains accessible by serving it from all domains. This patch updates
ULS to use http://meta.wikimedia.org/geoiplookup.

Change-Id: I4dc1b135af4ab8a5dcac77e73de5c8c9276bfb52
2015-05-06 11:08:04 -07:00
Santhosh Thottingal
dc2b8492b3 Add missing RL dependency ext.uls.init to test module ext.uls.tests
Bug: T93510
Change-Id: Ie1280c8b442be70d4b6f53bf85a5f9b7fdc29dbc
2015-03-24 10:42:42 +05:30
Chad Horohoe
961e20585c Remove obvious function-level profiling
Change-Id: I835cc1ce411b2cf583c1dc22196378e7c4ab1244
2015-02-10 14:10:26 -08:00
Brad Jorsch
266a601b3a UserGetLanguageObject hook should accept any IContextSource
Bug: 72951
Change-Id: Id5df9783b5aa4cd9dd3a1d234492448d70b13c63
2014-11-04 11:23:34 -05:00
Kunal Mehta
59e0efab56 Use EventLoggingRegisterSchemas hook
Change-Id: Id4772b7663e5f192962c7943458bd5d0518b958a
2014-10-11 11:31:32 -07:00
jenkins-bot
6860d7c49f Merge "Remove workaround code only needed for MW 1.20 and lower" 2014-09-29 14:26:10 +00:00
Kunal Mehta
b8079bb376 Remove extension function, move code into hooks
So the code only runs on requests which actually need it.

Change-Id: I057f6e93b60037da2b01b1775f841726d14017ba
2014-09-24 18:13:47 -07:00
Niklas Laxström
f1d969efdb Remove workaround code only needed for MW 1.20 and lower
Change-Id: Ifc256ccc144fab2a359dcd9ef0ae7be6751a471c
2014-09-19 12:11:43 +02:00
Niklas Laxström
d25f7f3307 Fix ULS QUnit tests
Tests were failing for two reasons: wrong modules as dependencies of the
test module and test timing out due to incorrect usage of QUnit.asyncTest
and QUnit.start() and QUnit.Stop.

While at it, did some small cleanups and converted the number of
assertions to use non-deprecated QUnit.expect() instead.

Options are saved using postWithToken of mw.API. This also rises minimum
MediaWiki version to 1.22. This allowed removing hundred lines of code.
MLEB is already 1.22 and above.

Change-Id: I46a1674e4ede48a0e331c8d201d1d847db51d9dd
2014-09-18 11:40:39 +00:00
jenkins-bot
ccd83b1f84 Merge "Compact links beta feature conditions sync" 2014-08-25 07:51:37 +00:00
Nemo bis
8d33793472 Compact links beta feature conditions sync
Enforce same conditions on enabling as on showing the BetaFeatures preference
to the user, for the sake of clarity.

Bug: 62362
Change-Id: I11ee32a90ba8ecca9136a6ff33581bf6d72240bd
2014-08-25 10:41:02 +03:00