Commit graph

1311 commits

Author SHA1 Message Date
Fomafix 1a569b590b Convert PHP syntax from array() to []
Performed using:
find . -name \*.php -exec php ~/convert.php -w "{}" \;

Script from:
https://github.com/thomasbachem/php-short-array-syntax-converter

And convert syntax in comments manually.

Change-Id: I7ea9e57f9ab1250c8687885ad9e010771603bf78
2016-12-28 13:51:30 +01:00
Fomafix 89f74b61c5 Use setPageTitle() instead of setPagetitle()
The function in file includes/OutputPage.php in core is called setPageTitle()

Change-Id: I42a99eb7c03ae0137aa027b867af9d172540973d
2016-12-28 11:41:50 +01:00
jenkins-bot c2eac7c025 Merge "Use wfLoadExtension in README.md" 2016-12-23 21:46:44 +00:00
Translation updater bot ebb69e16a4 Localisation updates from https://translatewiki.net.
Change-Id: Ide16d0b6f574eaca666e455a64ecab4333d4e983
2016-12-23 22:31:07 +01:00
Fomafix abe39c1a80 Use wfLoadExtension in README.md
Since MediaWiki 1.25 wfLoadExtension is the preferred way to include
extensions. This extension requires MediaWiki 1.27.

Change-Id: Ia35287265d5e020c3a9c32ffdd3691bc9a2d502f
2016-12-23 18:39:07 +01:00
Fomafix 75d7d07f6b Change documentation and comments from HTTP to HTTPS
This change avoids redirects from HTTP to HTTPS.

Change-Id: I2eb3b14e5bc8255f30ae557f842bfc512fc33a79
2016-12-23 18:26:43 +01:00
Translation updater bot 16c5c0eac0 Localisation updates from https://translatewiki.net.
Change-Id: Ibcd153c13d99630b7d65e15ccab2fc1dcd195e2c
2016-12-19 22:44:40 +01:00
Translation updater bot 05f09037c9 Localisation updates from https://translatewiki.net.
Change-Id: Ia96d7d7d9fb0865e097b5ea87b86bbcc9b8415c1
2016-12-12 22:27:17 +01:00
Aftab a153395dcb Gadgets.alias.php translation for bengali
Change-Id: I843615496190fb22babae751d58805b73904e4ea
2016-12-03 18:46:00 +00:00
jenkins-bot 89104e34c7 Merge "Gadgets.namespaces.php translations for bengali" 2016-11-30 08:08:01 +00:00
Translation updater bot b5cc6c751a Localisation updates from https://translatewiki.net.
Change-Id: If36106ecd7a03e4c4c923d25d90856066c6af38f
2016-11-28 22:28:19 +01:00
Aftab 13fa1e8d22 Gadgets.namespaces.php translations for bengali
Change-Id: I68abe2f50b691807ca6ad91b1e6d6e7fb9a07e9f
2016-11-28 19:55:38 +00:00
Translation updater bot 128f4f0c41 Localisation updates from https://translatewiki.net.
Change-Id: Icd92095e4e16c00ff862193b9da3128a64901c0a
2016-11-27 22:28:43 +01:00
Amire80 cc37298a99 Add Russian special page aliases for Ukrainian for backwards compatibility
Bug: T39314
Change-Id: I7007197c30acd4b226ca05fe9bfe1509a6de92b2
2016-11-24 20:15:46 +02:00
Translation updater bot 7c55064c3a Localisation updates from https://translatewiki.net.
Change-Id: If0ae58b5ec7b1470816e2f941ba216008b032bde
2016-11-23 22:36:59 +01:00
Timo Tijhof 27a0ca6568 Implement support for 'hidden' feature in MediaWikiGadgetsDefinitionRepo
Follows-up 152484566, which added support for it in Gadgets 2.0, but
it's easy enough to make it work in existing definitions as well.

That way, people can stop using 'rights=hidden' hacks.

Bug: T33150
Change-Id: Idd6944a9ad38279e117c1a02a4b5fd0343455ba0
2016-11-22 23:46:38 +00:00
Translation updater bot 2bbbfe1b25 Localisation updates from https://translatewiki.net.
Change-Id: I8e339493bcc14a747342316ff970a36220dcda58
2016-11-22 23:23:59 +01:00
Timo Tijhof 846b979578 Remove redundant 'position', 'top', and getPosition() code
Unused as of bc374082fa in MediaWiki core (T109837).

Change-Id: Idcec3c4fa2bc3bc05ac417062139794880040a6d
2016-11-18 13:55:30 -08:00
Timo Tijhof 906aaeeb82 Default to type=general for styles-only gadgets having dependencies
Bug: T147726
Change-Id: I4153851b0e2f5cc067b1f31a7cd80f73d0620d7c
2016-11-16 17:53:10 -08:00
Translation updater bot 01f5977286 Localisation updates from https://translatewiki.net.
Change-Id: I7082c476d3e2e4f310f1c46376a15f66ea01d64e
2016-11-13 22:45:57 +01:00
Umherirrender 5bbb1045fe Expand .gitignore for more editors
List is from mediawiki/core

Change-Id: I65afe486373f81ed8fa2503e4b772387a9002458
2016-11-13 12:57:04 +01:00
Translation updater bot e8beb591d9 Localisation updates from https://translatewiki.net.
Change-Id: I64712fe92b0493165c60eb6f2c42a537d2f4be87
2016-11-08 22:45:03 +01:00
Translation updater bot 0dc6c081c9 Localisation updates from https://translatewiki.net.
Change-Id: Iab9a59aba83d0836b0f971577ec1e4d51f3d5364
2016-11-05 22:54:30 +01:00
Translation updater bot 4c62014715 Localisation updates from https://translatewiki.net.
Change-Id: I342536385b55e7a053820a3d2047ef0b8321f618
2016-11-04 22:49:34 +01:00
Translation updater bot e159681170 Localisation updates from https://translatewiki.net.
Change-Id: Iad18eef0e87327ad96725ff647f2261056547e54
2016-11-03 23:29:45 +01:00
Translation updater bot 36ae0d29c1 Localisation updates from https://translatewiki.net.
Change-Id: Ia70d64b63651c188a28f310966fd9736e72475cb
2016-10-25 23:12:45 +02:00
Chad Horohoe e0092515de Whoops, track not trace
Change-Id: I0bce6bf24990eaff0f4f9fbe172ef6f6fdb0ddf0
2016-10-24 17:02:35 -07:00
Chad Horohoe 4d46502bd2 Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
Change-Id: I0ebd76a527b140938bcdb84afbeddf8a6ff46f52
2016-10-24 16:37:32 -07:00
Translation updater bot 573e55514b Localisation updates from https://translatewiki.net.
Change-Id: I159ecdee2ad2ed1e73518568399afcf4ebee751a
2016-10-24 22:45:10 +02:00
Translation updater bot 1711219fdd Localisation updates from https://translatewiki.net.
Change-Id: I85310c0c738649bf9b8850883ed412f5b92d9fdd
2016-10-22 22:44:38 +02:00
Translation updater bot 0f06e98f42 Localisation updates from https://translatewiki.net.
Change-Id: I82514b31c770fe2272351808cfd957f9076c22da
2016-10-16 22:41:58 +02:00
jenkins-bot 9609b25064 Merge "Clean up ObjectCache calls" 2016-10-11 21:45:33 +00:00
Aaron Schulz 23c0b1c14e Clean up ObjectCache calls
Change-Id: I6b741a82dca2fead8b1392208bec4303cc064d87
2016-10-11 14:20:29 -07:00
Translation updater bot 5e3fcc6aa3 Localisation updates from https://translatewiki.net.
Change-Id: Ida3f4782eeb22a844acba5addfffaabf5789351e
2016-10-11 22:45:05 +02:00
Translation updater bot 452f6d0738 Localisation updates from https://translatewiki.net.
Change-Id: Ie6cc1f77d35d11d69e8c7e52523b83b9f8668e7f
2016-10-09 22:48:48 +02:00
Ebrahim Byagowi 68384531ae Add Persian translation of "Special:GadgetUsage"
Change-Id: I375471155f4e8255ce8c7b506a38a79a9e2c0921
2016-10-08 07:33:35 +00:00
Reedy 7c922c92b9 Replace ArticleSaveComplete hook usage
Bug: T147556
Change-Id: I6f3a58c8e7cf1382fc8e1ac30cc697deb7fc9eb7
2016-10-06 17:16:15 +01:00
Translation updater bot 3931b815cf Localisation updates from https://translatewiki.net.
Change-Id: I50060a84d28b84359ccff767ec386818652b8519
2016-10-04 22:36:58 +02:00
jenkins-bot ce32e6586c Merge "Implement support for specifying type=styles" 2016-09-30 10:47:03 +00:00
Timo Tijhof dc834f3933 Implement support for specifying type=styles
T87871 formally introduced the concept of a styles module,
which sets mw.loader.state to "ready" when loaded through addModuleStyles().

Previously, addModuleStyles couldn't safely do that because a module may
contain scripts also, in which case mw.loader must still load the (rest)
of the module (causes styles to load twice).

In MediaWiki core or extensions this is easily avoided by calling not
calling both addModules() and addModuleStyles().

For Gadgets we call both as a workaround to allow users to provide styles
(without a FOUC), but also to provide scripts+styles. Since we don't declare
which one is intended (and some gadgets do both), we loaded them both ways.
This will no longer be allowed in the future (see T92459).

The new 'type=styles' Gadget attribute promises to ResourceLoader that a
gadget only contains styles.

Impact:

* [Bug fix] When mw.loader requires a styles module that already loaded,
            it will not load again.

* [Feature] It is possible for a general scripts+styles gadget to depend on
            a styles gadget. Previously this caused the styles to load twice.

* Specifying type=styles will load the module through addModuleStyles() only.

  Use this for modules that contain styles that relate to elements already
  on the page (e.g. when customising the skin, layout, or article content).

* Specifying type=general will load the module through addModules() only.

  Use this if your module contains both scripts and styles and the styles
  only relate to elements created by the script. This means the styles do not
  need to be loaded separately through addModuleStyles() and will not apply
  to noscript mode.

Effective difference:

* Gadgets with only styles: We assume type=styles.

  This fixes the main bug (styles loading twice) and requires no migration!

* Gadgets with only scripts: We assume type=general.

  This requires no migration! (And: No more empty stylesheet request)

* Gadgets with scripts (with or without styles): We assume type=general, but
  unless type=general was explicitly set we'll still load it both ways so
  that the styles apply directly on page load.

  If this is not needed, set type=general.

  If this is needed, it should become two separate modules. We do not support
  a single module having two purposes (1: apply styles to the page,
  2: provide scripts+styles). The styles module should be separate.
  It can be made hidden, and listed as dependency of the other module.

The latter case is detected on page load and results in a console warning
with a link to T42284.

Bug: T42284
Bug: T92459
Change-Id: Ia3c9ddee243f710022144fc2884434350695699a
2016-09-30 10:43:29 +00:00
Translation updater bot 7b97752434 Localisation updates from https://translatewiki.net.
Change-Id: Ib803b6cceefc933396df011e8ff6a060e6d53c45
2016-09-28 22:24:59 +02:00
Translation updater bot e7d4897053 Localisation updates from https://translatewiki.net.
Change-Id: I361558c5be2c437255017268a8b000c1a23f4ff2
2016-09-27 22:36:52 +02:00
Translation updater bot 33ed4c847e Localisation updates from https://translatewiki.net.
Change-Id: I23a0a0e95e8b94f7f4d100218af1247cb8b0c973
2016-09-23 22:33:37 +02:00
Translation updater bot b832ba78c6 Localisation updates from https://translatewiki.net.
Change-Id: I518cfe6966c2c1f08ae768d842fb937619c32d01
2016-09-22 23:38:20 +02:00
Translation updater bot 83236f356b Localisation updates from https://translatewiki.net.
Change-Id: Idc0aad9652cc5ca8ab4d6ab178830a29a2af3356
2016-09-19 22:55:11 +02:00
Translation updater bot 048c23d3c4 Localisation updates from https://translatewiki.net.
Change-Id: I86a4332e0d21f38435d1570830cd25771ed6f664
2016-09-17 23:19:03 +02:00
Translation updater bot 89b7e6bb55 Localisation updates from https://translatewiki.net.
Change-Id: I187984682d92e79a5aa656963a32ed8955e4accd
2016-09-15 22:59:53 +02:00
Translation updater bot 07492f8938 Localisation updates from https://translatewiki.net.
Change-Id: If62ef95757c4c5913bc1e3d632b6833983886bbc
2016-09-14 22:35:15 +02:00
Translation updater bot 9c32d93d8f Localisation updates from https://translatewiki.net.
Change-Id: I96f3dc2787a9a1f16cab386fec8d2ff16b83cee9
2016-09-13 22:51:12 +02:00
Translation updater bot 13d486ee33 Localisation updates from https://translatewiki.net.
Change-Id: I684874294188a577e661d909dbeb0bd7dc3282d5
2016-09-12 23:04:45 +02:00