Commit graph

1331 commits

Author SHA1 Message Date
Translation updater bot 3d9e3ac00c
Localisation updates from https://translatewiki.net.
Change-Id: Ic9677a993f69f9e49d9e6f3537b12d5c58ad9699
2024-12-17 08:17:59 +01:00
libraryupgrader 51c19ca3df build: Updating mediawiki/mediawiki-phan-config to 0.15.0
Change-Id: I9fd7bfffbcb008ec8aa417999320738bdcc1f29e
2024-12-15 01:57:11 +00:00
libraryupgrader a724455ae8 build: Updating nanoid to 3.3.8
* https://github.com/advisories/GHSA-mwcw-c2x4-8c55

Change-Id: I26cbebcf23d21f5868959e2ad767c2b066e60714
2024-12-11 22:22:45 +00:00
SomeRandomDeveloper 57a0db123b Replace hardcoded colors with codex tokens
This improves the colors for the search options section in dark mode. Before,
the section had white and gray text on a white background. The divider border
color is now slightly different since there is no codex token that exactly
matches the color that was hardcoded before, but the difference is barely
visible.

Bug: T380656
Change-Id: Id04073e85866ecc415e5d17fab926749937793b8
2024-11-23 18:59:11 +01:00
libraryupgrader c2b61f9815 build: Updating cross-spawn to 7.0.6
* https://github.com/advisories/GHSA-3xgq-45jj-v275

Change-Id: I3cc6c9de6d8de2020489d4a92a6183dbc33535f9
2024-11-21 21:34:52 +00:00
libraryupgrader 4dfb4c42ed build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: Ic8c576fbc45cf697aeb836044e2cbc804847b606
2024-11-03 03:42:37 +00:00
Umherirrender bcc51d7859 Use namespaced Maintenance class
Change-Id: I6b5f6137febc524ac77aa8939267470f2da7faa2
2024-10-20 11:32:06 +02:00
Translation updater bot 39766df63d
Localisation updates from https://translatewiki.net.
Change-Id: I5d7f3e63fba1a608f3eb1cf4e434c0c33ee12907
2024-10-18 09:25:32 +02:00
Yaron Koren 8d906b0822 Add $ignoreHidden param to getOption() call
Needed if 'contextchars' is set to be a hidden preference.

Bug: T370868
Change-Id: I793bb75dca4e34918e842a744f50b46e8e5627ad
2024-10-17 15:10:36 +00:00
Yaron Koren 222a236201 Fix default checking of main namespace
The old code "worked", but apparently just by accident, in that in_array( 0, [ null ] ) returns true. Somehow that code lasted in MediaWiki's Special:Search for 10 years or so - I guess no one questioned it, because it worked. But in at least some cases (with PHP 8, maybe) this doesn't work, so it's good to fix it.

Change-Id: I38dabec83ea350f65edf77ef160c7903c3894917
2024-10-16 18:47:02 +00:00
libraryupgrader 904a9aa56d build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I3114b60775e72f5c38e34cf458be027eb557a2f9
2024-08-31 07:14:18 +00:00
Fomafix ee5092187d Update namespaces of PHP classes
Change-Id: If2c3d1299b740550b27e1152301b5c1e072e5bb2
2024-08-27 10:52:36 +00:00
James D. Forrester 5f27cfcf85 build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Icc975ecc5d900a7bcdd808ebd455b3676ecb010d
2024-08-22 18:11:35 -04:00
Umherirrender 116ead6d4f Add missing documentation to class properties
Change-Id: Icdcaa4c34d512c2058fa0d0e349a2cca2ca2e543
2024-08-20 23:46:51 +02:00
Umherirrender 3cb17f95da Removed unused $titles property from ReplaceAll
Change-Id: I2081720011db24bb7bf3913134be5eecbfb4398e
2024-08-20 23:45:49 +02:00
libraryupgrader 1dc865fb87 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: I74dfc948e00f433941f398fde4789fb6ca2b1fa7
2024-08-12 13:18:09 +00:00
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