Commit graph

1315 commits

Author SHA1 Message Date
Translation updater bot 8d7f5454c5
Localisation updates from https://translatewiki.net.
Change-Id: I1c5b53aa169ce0d25511c04d73000cc6053f5e11
2024-08-06 09:48:32 +02:00
Translation updater bot 146281871b
Localisation updates from https://translatewiki.net.
Change-Id: Ic61db64f0bcfa0e2a7b430c5e1eb5be57e216e6c
2024-07-22 09:25:44 +02:00
Timo Tijhof bb6a92ad23 SpecialReplaceText: Remove redundant white-space: nowrap inline style
The inline style on the `<td>` around namespace checkboxes is
redundant, because ext.ReplaceTextStyles.less already sets the same
style on the same element via `.ext-replacetext-searchoptions td`.

While at it, simplify that CSS selector by removing needless
indirection and specificity via `table`.

Change-Id: I59bad7592b7106dbf335298ff4c6b017c2bca855
2024-06-25 14:53:36 +00:00
libraryupgrader 886c0a21db build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: I31679b26884e826323d92f8cbde9c3ffd4d33f11
2024-06-21 20:04:03 +00:00
Translation updater bot 17a9bb9f8d
Localisation updates from https://translatewiki.net.
Change-Id: I38efe8f10dcd804605130df8ab805a0bdc50ed48
2024-06-17 09:32:37 +02:00
Fomafix 4ee416b6a9 Use OutputPage::setPageTitleMsg to set page title message
Change-Id: I3b887050ae6979cbe825aab712540a71cb61a167
2024-06-13 13:36:17 +00:00
Translation updater bot cd62fad03b Localisation updates from https://translatewiki.net.
Change-Id: I7e592487ec59e448cc75ef79bc435b9c65b5d4ea
2024-06-11 09:55:29 +02:00
Umherirrender 05e51711cd Use namespaced RequestContext class
Change-Id: I34829c1a08436251c225ba0cccaf220989ef8a10
2024-06-10 20:17:02 +02:00
libraryupgrader 9fb3aa51b8 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: I3e5d7e1d889785c45e760a453dd522384dfb8026
2024-06-08 12:03:59 +00:00
Translation updater bot 1b39d4c473 Localisation updates from https://translatewiki.net.
Change-Id: I81e6aef4ee8b50d0f3483aeb64b06f3bc8ced41b
2024-06-07 09:46:04 +02:00
Translation updater bot e187cac6d2 Localisation updates from https://translatewiki.net.
Change-Id: Ia9a651212ce7f2f87cf30ebc3220c21fb6de9dec
2024-06-05 09:23:48 +02:00
Umherirrender a1d979ffe6 Add caller when running query builder
Change-Id: I15cc8e26e67aa900d0fa9cca96d0fea7e4fb0d54
2024-05-30 23:58:56 +02:00
libraryupgrader 6f0be84979 build: Updating grunt-banana-checker to 0.13.0
Change-Id: Id6e30c99d006b15681ebe44cc4504ffad4b04fe0
2024-05-19 00:30:48 +00:00
libraryupgrader 9f9219b8f1 build: Updating grunt-banana-checker to 0.12.0
Change-Id: Id933597a9e1832d1bb53d9e200b8cfe6a331be39
2024-05-10 21:57:22 +00:00
libraryupgrader c7924a742a build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I046ceba2516b72fc380a3b72878fcb379c17d648
2024-05-06 01:38:36 +00:00
Umherirrender adbd669832 Migrate to IReadableDatabase::newSelectQueryBuilder
Also use expression builder to avoid raw sql

Change-Id: I86da11d7e20a6c4890639aa22085424f3686d674
2024-05-02 21:10:54 +02:00
libraryupgrader b4f94c094a build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I13bea714859c08d8b90fc84bb9045ff1dd515c4a
2024-04-18 03:27:56 +00:00
jenkins-bot 3264cbd83d Merge "SpecialReplaceText: Migrate deprecated Xml usage to Html class" 2024-03-27 12:46:31 +00:00
Translation updater bot 1526861eb1 Localisation updates from https://translatewiki.net.
Change-Id: I127604b599c2329e92706fe19185c5aa60bf22db
2024-03-27 08:18:13 +01:00
Timo Tijhof 3a6f634385 SpecialReplaceText: Migrate deprecated Xml usage to Html class
```
Xml::textarea( $name, $content, $cols = 40, $rows = 5, $attribs );

Xml::input( $name, $size = false, $value = false, $attribs );

Xml::checkLabel( $label, $name, $id, $checked = false, $attribs );
```

For examples of trouble with Xml::checkLabel, see also I61c8f67127 in
CentralAuth and I33bf6ab5e0 in MediaWiki core. For improved clarify,
I'm replacing most of these with Html::element().

While at it, I'm also migrating `<input id=…><label for=…>…</label>`
to the simpler `<label><input>…</label>` form where this is easy to
do.

ext.ReplaceTextStyles.less has styles for label/input inside
`.ext-replacetext-search-togglebox`, which this patch leaves unchanged.

ext.ReplaceText.js refers to the IDs of namespace checkboxes,
which this change keeps in-tact. In the future, the namespace
checkbox HTML could be simplified further if the JS code selects by
`name` instead of `id`.

Test Plan:
* Given `wfLoadExtension('ReplaceText');` in LocalSettings.php,
  and a Main_Page containing the word "installed".
* View Special:ReplaceText, verify it renders without errors,
  and each label is click-associated with its checkbox.
* Find "Main", Replace "Minor",
  tick "(Main)" namespace, tick "Replace text in page titles".
* Continue
* Verify the checkboxes under "For moved pages:" are also
  associated with their labels.

Change-Id: I2060961115b7af23dcf086ed03bfa3f159f5302c
2024-03-27 03:07:52 +00:00
Fomafix 7edb3c9670 Inject services in Job
Change-Id: Ib60ad4128eb93eb7ac02e4e8f54af0c57ce4e296
2024-03-26 20:29:44 +00:00
Umherirrender 030fb699f7 Type hint IReadableDatabase in Search
Follow-up: I01a1aa0ddbc756226d8e3404ac1cc3350ad5df64
Change-Id: Ifef8867aa2583cf65115b4764f9cceae296161bc
2024-03-25 23:59:48 +01:00
Fomafix fe94aa9e2e Use variable to avoid multiple calls of $this->getServiceContainer()
Change-Id: If8ace28a7061e440801f0fea1925e294fa4e6b90
2024-03-16 11:32:30 +00:00
Umherirrender dfdbb1d686 build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: Iddcde8e23176b699f886ff7901bfaa354f6e3a69
2024-03-11 22:44:51 +01:00
Yaron Koren 863966a81b Change main zh-hans alias for Special:ReplaceText
Bug: T359749
Change-Id: Icfcf75fa33d6fd4da38326738d92ed24185fd8b1
2024-03-11 17:40:41 +00:00
Fomafix 1a11358d7d Inject services into Search
Change-Id: Ied8ff046835ee66f66121b1ceb0cf34d6739cd81
2024-02-11 14:40:48 +00:00
Fomafix 3d299a548f Replace global variables in Search
Change-Id: I1dfbe55be5b93a829a3a9ab98ed703ec2213d008
2024-02-11 14:39:43 +00:00
libraryupgrader 082686abe4 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* grunt-banana-checker: 0.11.0 → 0.11.1

Change-Id: Ib6b54f76834223f662a20bcdd4bbeb3340806696
2024-02-10 14:05:18 +00:00
libraryupgrader 9aeab9747a build: Updating eslint-config-wikimedia to 0.26.0
Change-Id: I5b55c971ca1606b58194746a3378f9afcb899391
2024-02-09 12:01:15 +00:00
libraryupgrader 4e52b32797 build: Updating npm dependencies
* grunt-eslint: 24.0.1 → 24.3.0
* grunt-stylelint: 0.18.0 → 0.19.0
* stylelint-config-wikimedia: 0.15.0 → 0.16.1

Change-Id: I5226d242f8a14bbba6022959cf66ce21e8f39bea
2024-02-07 22:27:04 +00:00
Translation updater bot e5d1e03ef3 Localisation updates from https://translatewiki.net.
Change-Id: Iac0792abb316738a3c066740dae18fec352ace1e
2024-02-07 08:27:30 +01:00
libraryupgrader ec60840461 build: Updating npm dependencies
* eslint-plugin-compat: 4.1.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* postcss: 8.4.19 → 8.4.33
  * https://github.com/advisories/GHSA-7fh5-64p2-3v2j
* semver: 7.3.8 → 7.5.4
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: I1bc286b57e381cc9678cf547d16ca6234f61fb18
2024-02-04 10:00:39 +00:00
Translation updater bot 4e6ba71e15 Localisation updates from https://translatewiki.net.
Change-Id: I2efdebc90ac63b3b0402329d97a347f1ed543028
2024-01-28 16:07:57 +01:00
jenkins-bot bce8f7501f Merge "Fix user existence problem" 2024-01-11 18:08:15 +00:00
TechieNK 6a484ebd0a Fix user existence problem
Bug: T307069
Change-Id: I4ae3902d88470d9aad434ebc0a87d1e586a54758
2024-01-11 18:02:24 +00:00
Translation updater bot 8bcb3df34b Localisation updates from https://translatewiki.net.
Change-Id: Ia1890f36b85fa5c9e8527fbbbd9aafc17eaa0dc5
2024-01-10 08:33:21 +01:00
jenkins-bot 0480d83b71 Merge "Quote delimiter in target text when using regular expressions" 2024-01-08 15:55:20 +00:00
Mark A. Hershberger e9a086c4ee
Quote delimiter in target text when using regular expressions
bug: T354498
Change-Id: I0bafbaa4cfb55e2d65712a747a2622b159417dea
2024-01-07 21:24:09 -05:00
jenkins-bot e8c50add4e Merge "replaceAll.php: Replace get_class with instanceof" 2024-01-06 00:36:24 +00:00
Umherirrender a14f9f6b5b replaceAll.php: Replace get_class with instanceof
The User class was namespaced in 1d0b7ae1,
checking class names as string is broken, use instanceof.
There are no subclasses of User class to ignore at this point.

Also use User::getName instead of implicit User::__toString

Change-Id: I8b9f73609a7ef9f781c8a5ae27e00d612d33ee4f
2024-01-05 21:26:44 +01:00
Umherirrender 48144bb804 Use namespaced classes
This requires 1.42 for some new names

Change-Id: I7f2e4271ddb42fa449252a66d3c973ad7669575e
2024-01-05 21:23:04 +01:00
Translation updater bot 464311b4bc Localisation updates from https://translatewiki.net.
Change-Id: Ibc0ba7a8e48a49851bdf9b90ea27b103e77d27bc
2024-01-02 10:17:17 +01:00
Mark A. Hershberger 0dcd7c769c Remove shebang
Bug: T352680
Change-Id: Ica661d3fec81cd39812dce8f092e6c24d3e91224
2023-12-04 23:19:04 +00:00
Translation updater bot 475ad71b4c Localisation updates from https://translatewiki.net.
Change-Id: I036a909c479d0fbece1f3338443e5fd18b3a5ff1
2023-11-29 08:31:41 +01:00
Translation updater bot a6d163ae4f Localisation updates from https://translatewiki.net.
Change-Id: I2f197ca1376e04d7b7d8b3e4c4302fe5ee751735
2023-11-22 08:20:36 +01:00
Translation updater bot f41e9de4ff Localisation updates from https://translatewiki.net.
Change-Id: I1015a35e25b30a457593b6633302e5004407733d
2023-11-07 09:08:36 +01:00
jenkins-bot 1df51466b8 Merge "Replace deprecated User::getEditToken and ::matchEditToken" 2023-10-31 15:21:38 +00:00
Fomafix 192435154e Use user interface instead of content language for RTL flipping
The CSS get automatically flipped on RTL user interface language.

Change-Id: I472c0fbbdaf20bd5cb3ad55d1194c99fc72ffdba
2023-10-21 13:42:18 +00:00
jenkins-bot e029f1b13a Merge "Use single quotes instead of double quotes" 2023-10-20 15:37:42 +00:00
jenkins-bot 2a01eaafd8 Merge "Remove hard coded $wgShowExceptionDetails = true;" 2023-10-20 15:05:33 +00:00