Skip to content

Commit ab0128b

Browse files
committed
Merge remote-tracking branch 'Joomla/6.0-dev' into gsoc-workflow-dileep
2 parents d0c04ad + f3b89f1 commit ab0128b

File tree

115 files changed

+16169
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+16169
-386
lines changed

.drone.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ steps:
3434
- name: phpstan
3535
image: joomlaprojects/docker-images:php8.2
3636
depends_on: [ phpcs ]
37-
failure: ignore
3837
commands:
3938
- ./libraries/vendor/bin/phpstan
4039

@@ -415,6 +414,6 @@ trigger:
415414

416415
---
417416
kind: signature
418-
hmac: 99da78521b10f37ddf6731e695fe52f85ee3db142bccac66901ae5372e332aae
417+
hmac: e7e97cddd98bd4db561056d6eb59c5eea2ae3fd55e20870bf800beaa773fbf6b
419418

420419
...

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
108108
- name: Run PHPstan
109109
run: |
110-
./libraries/vendor/bin/phpstan --error-format=github || :
110+
./libraries/vendor/bin/phpstan --error-format=github
111111
112112
tests-unit:
113113
name: Run Unit tests
@@ -264,3 +264,14 @@ jobs:
264264
POSTGRES_USER: root
265265
POSTGRES_PASSWORD: joomla_ut
266266
POSTGRES_DB: test_joomla
267+
268+
typos:
269+
name: Check for typos
270+
runs-on: ubuntu-latest
271+
steps:
272+
- name: Checkout Actions Repository
273+
uses: actions/checkout@v4
274+
- name: Spell Check Repository
275+
uses: crate-ci/[email protected]
276+
with:
277+
config: .github/workflows/typos.toml

.github/workflows/typos.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Custom configuration file for the typos action
2+
# Excludes some folders with non-english language content
3+
# Excludes certain words as false-positives - mainly in js or
4+
# that can't be changed for b/c
5+
6+
[files]
7+
extend-exclude = [
8+
"/templates/system/*.html",
9+
"/administrator/components/com_admin/sql/*",
10+
"/build/media_source/vendor/tinymce/langs/*",
11+
"/installation/language/*",
12+
"includes/*.html",
13+
"/plugins/sampledata/testing/*",
14+
]
15+
16+
[default.extend-words]
17+
accordian="accordian" # Not changed for B/C see #36821
18+
assigments="assigments" # Not changed for B/C see #36822
19+
ba="ba" # Used for filename for Bosnian flag
20+
cachable="cachable" # Not changed for B/C see #29808#discussion_r446681316
21+
cll="cll" # Mysql version name
22+
chck="chck" # Used in modal-content-select-field.es6.js
23+
childs="childs" # Used in config-filters.es6.js and language string
24+
cose="cose" # Webauthn COSE algorithm
25+
credate="credate" # Selector in queries
26+
cript="cript" # Used in regex for htaccess.txt and web.config.txt
27+
crypted="crypted" # Used in MD5Handler
28+
datas="datas" # Used in showon.es6.js
29+
deactive="deactive" # Used in searchtools.es6.js
30+
exept="exept" # Used in El.php Greek language stemmer
31+
Formater="Formater" # Used in AbstractDataCollector of debug plugin
32+
hel="hel" # Variable name in MenusHelper
33+
identicals="identicals" # administrator\components\com_templates\tmpl\template\default.php
34+
linke="linke" # name of com_content field
35+
occurence="occurence" # Used in plg_system_debug\widgets\languageStrings\widget.es5.js
36+
ot="ot" # Valid use as OTP and Livelap[bB]ot
37+
Querys="Querys" # $backupExtraQuerys in administrator\components\com_installer\src\Model\UpdatesitesModel.php
38+
shepard="shepard" # CSS filename reference to upstream library
39+
supercedes="supercedes" # Valid spelling rejected https://github.com/crate-ci/typos/issues/1325
40+
ue="ue" # selector in queries
41+
vertexes="vertexes" # Valid spelling waiting fix https://github.com/crate-ci/typos/issues/1150
42+
wheres="wheres" # $wheres in modules\mod_related_items\src\Helper\RelatedItemsHelper.php

administrator/components/com_finder/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
<field
235235
name="highlight_terms"
236236
type="radio"
237-
label="COM_FINDER_CONFIG_HILIGHT_CONTENT_SEARCH_TERMS_LABEL"
237+
label="COM_FINDER_CONFIG_HIGHLIGHT_CONTENT_SEARCH_TERMS_LABEL"
238238
description="COM_FINDER_CONFIG_HIGHLIGHT_CONTENT_SEARCH_TERMS_DESC"
239239
layout="joomla.form.field.radio.switcher"
240240
default="1"

administrator/components/com_joomlaupdate/config.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,5 @@
121121
class="alert alert-info w-100"
122122
showon="updatesource!:default[OR]minimum_stability!:4"
123123
/>
124-
<field
125-
name="automated_updates_email"
126-
type="text"
127-
label="COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_LABEL"
128-
description="COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_DESCRIPTION"
129-
showon="updatesource:default[AND]minimum_stability:4[AND]autoupdate:1"
130-
/>
131124
</fieldset>
132125
</config>

administrator/components/com_joomlaupdate/src/Model/NotificationModel.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,8 @@ public function sendNotification($type, $oldVersion): void
4848
{
4949
$params = ComponentHelper::getParams('com_joomlaupdate');
5050

51-
// Load the parameters.
52-
$specificEmail = $params->get('automated_updates_email');
53-
54-
// Let's find out the email addresses to notify
55-
$superUsers = [];
56-
57-
if (!empty($specificEmail)) {
58-
$superUsers = $this->getSuperUsers($specificEmail);
59-
}
60-
61-
if (empty($superUsers)) {
62-
$superUsers = $this->getSuperUsers();
63-
}
51+
// Send a notification to all super users
52+
$superUsers = $this->getSuperUsers();
6453

6554
if (empty($superUsers)) {
6655
throw new \RuntimeException();

administrator/components/com_joomlaupdate/src/Model/UpdateModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ public function changeAutoUpdateRegistration(AutoupdateRegisterState $targetStat
632632
($targetState === AutoupdateRegisterState::Subscribe)
633633
? AutoupdateRegisterState::Subscribed
634634
: AutoupdateRegisterState::Unsubscribed,
635-
($targetState === AutoupdateRegisterState::Unsubscribed)
635+
($targetState === AutoupdateRegisterState::Subscribe)
636636
);
637637

638638
return AutoupdateRegisterResultState::Success;

administrator/components/com_postinstall/src/Model/MessagesModel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ public function getComponentOptions()
508508
* enabled Must be 1 for this message to be enabled. If you omit it, it defaults to 1.
509509
*
510510
* condition_file The RAD path to a PHP file containing a PHP function which determines whether this message should be shown to
511-
* the user. @see FOFTemplateUtils::parsePath() for RAD path format. Joomla! will include this file before calling
512-
* the condition_method.
511+
* the user. Joomla! will include this file before calling the condition_method.
513512
* Example: admin://components/com_foobar/helpers/postinstall.php
514513
*
515514
* condition_method The name of a PHP function which will be used to determine whether to show this message to the user. This must be

administrator/language/en-GB/com_finder.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ COM_FINDER_CONFIG_FILTER_COMMONWORDS_LABEL="Filter Common Words"
1818
COM_FINDER_CONFIG_FILTER_NUMERICS_LABEL="Filter Numeric Terms"
1919
COM_FINDER_CONFIG_GATHER_SEARCH_STATISTICS_LABEL="Gather Search Statistics"
2020
COM_FINDER_CONFIG_HIGHLIGHT_CONTENT_SEARCH_TERMS_DESC="For performance reasons, this will not highlight more than 10 different terms in the search results."
21-
COM_FINDER_CONFIG_HILIGHT_CONTENT_SEARCH_TERMS_LABEL="Highlight Search Terms"
21+
COM_FINDER_CONFIG_HIGHLIGHT_CONTENT_SEARCH_TERMS_LABEL="Highlight Search Terms"
2222
COM_FINDER_CONFIG_IMAGE_CLASS_LABEL="Image Class"
2323
COM_FINDER_CONFIG_LANGUAGE_DEFAULT_DEFAULT_LANGUAGE="Default Site Language"
2424
COM_FINDER_CONFIG_LANGUAGE_DEFAULT_DESC="Set the language to be used for non-multilingual sites or content marked as \"All\"."

administrator/language/en-GB/com_joomlaupdate.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ COM_JOOMLAUPDATE_CONFIG_AUTOMATED_UPDATES_DISABLED_LABEL="<span class=\"fa-fw me
1616
COM_JOOMLAUPDATE_CONFIG_AUTOMATED_UPDATES_LABEL="Automated Updates"
1717
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_DESC="Automatically update Joomla to the latest version when it is available."
1818
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_LABEL="Automated Update"
19-
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_DESCRIPTION="A comma separated list of the email addresses which will receive the update notification emails. The addresses in the list MUST belong to existing users of your site who have the Super User privilege. If none of the listed emails belongs to Super Users, or if it's left blank, all Super Users of this site will receive the update notification email."
20-
COM_JOOMLAUPDATE_CONFIG_AUTOUPDATE_UPDATE_EMAIL_LABEL="Super User Emails"
2119
COM_JOOMLAUPDATE_CONFIG_BACKUPCHECK_DESC="Shows the checkbox to confirm you have taken a backup and you're ready to update in the final step before the update is actually applied."
2220
COM_JOOMLAUPDATE_CONFIG_BACKUPCHECK_LABEL="Confirm Backup Checkbox"
2321
COM_JOOMLAUPDATE_CONFIG_CUSTOMURL_LABEL="Custom URL"

0 commit comments

Comments
 (0)