Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
8da0072
Fixing URL to contact VCF (#39938)
Hackwar Mar 4, 2023
f6989f2
Joomla! 4.3.0 Beta 4
obuisard Mar 5, 2023
6004462
Revert to dev
obuisard Mar 5, 2023
07d8462
Fix extra space (#39989)
dgrammatiko Mar 6, 2023
3987fa3
Improve Finder ajax error handling (#39973)
Fedik Mar 6, 2023
9ef7ff4
[plgTinyMCE] Error correction. Now you can drag and drop images into …
korenevskiy Mar 6, 2023
081afed
[4][com_actionlog] - log event reset password (#39435)
alikon Mar 7, 2023
1b763de
Don't append but set the "Content-Encoding" header value in htaccess.…
richard67 Mar 7, 2023
35d15bc
Translation Update (#39876)
joomla-translation-bot Mar 7, 2023
b36e2da
[4.2] Update deleted files and folders lists in script.php for upcomi…
richard67 Mar 7, 2023
5f542c1
Fix since tags
fancyFranci Mar 7, 2023
aacd6a4
Joomla! 4.2.9 Release Candidate 1
fancyFranci Mar 7, 2023
e462044
Reset to dev
fancyFranci Mar 7, 2023
4a8a519
[4.3] Replace JPATH_PLATFORM with _JEXEC in dispatcher.php (#39997)
sandewt Mar 8, 2023
ffcab18
Updating voku/portable-utf8 (#39955)
Hackwar Mar 8, 2023
67a5191
Clean up Steps model (#40004)
joomdonation Mar 8, 2023
c9758d3
Phan: Fixing method signature mismatch (#39990)
Hackwar Mar 8, 2023
1c0eda3
Optimizing import statements (#39984)
Hackwar Mar 8, 2023
daf282c
[4.3] guided tours codestyle (#40053)
brianteeman Mar 9, 2023
310182c
[4.3][Guided Tours] Cleanup Tours model (#40003)
joomdonation Mar 9, 2023
1c0690c
[4.3][GUIDEDTOURS] Cleanup Step model (#40016)
joomdonation Mar 9, 2023
5cf3286
[4.3][Guided Tours] Hide 'Take a tour' on small devices (#40045)
obuisard Mar 9, 2023
7b8c10c
[4.3][GUIDEDTOURS] Cleanup Tour model (#40014)
joomdonation Mar 9, 2023
bdbc503
In com_tags, a tagged element's text-variable is transformed into nul…
svenbluege Mar 10, 2023
15dfdfb
[4.3][GUIDEDTOURS] Move code from helper to model (#40015)
joomdonation Mar 10, 2023
e1c9bf3
Allow module without Helper/HelperFactory (#40017)
joomdonation Mar 10, 2023
5688809
[4.4] set the correct version number for 4.4 (#40071)
brianteeman Mar 10, 2023
f4492a4
[4.3] readme build status (#40072)
brianteeman Mar 10, 2023
ad3aacd
Merge remote-tracking branch 'upstream/4.3-dev' into 4.4-dev
laoneo Mar 10, 2023
50484f5
Correct branch in readme
laoneo Mar 10, 2023
261947f
Bump branch (#40075)
QuyTon Mar 10, 2023
f4fd71a
Merge remote-tracking branch 'upstream/4.3-dev' into 4.4-dev
laoneo Mar 10, 2023
7ec999b
Create front end cypress tests (#40038)
laoneo Mar 11, 2023
90435d6
Lints the cypress system tests (#40076)
laoneo Mar 11, 2023
51e5d0a
[4.3][Guided Tours] Remove unnecessary title generation on copy or du…
obuisard Mar 11, 2023
50cc339
Merge branch '4.2-dev' into upmerge-2023-03-11
obuisard Mar 11, 2023
c51d28b
Update HTMLHelper.php
obuisard Mar 11, 2023
6db9b22
Update Joomla.php
obuisard Mar 11, 2023
a0c4649
Merge pull request #40085 from obuisard/upmerge-2023-03-11
obuisard Mar 11, 2023
7cb694d
[4.3] Revert 38576 (#40060)
joomdonation Mar 11, 2023
069889c
[4.3][Guided Tours] target corrections (#40077)
obuisard Mar 11, 2023
7fe177c
[4.3][Guided Tours] When the input field has a value, enable the 'Nex…
obuisard Mar 11, 2023
e06d828
[4.3][Guided Tours] Fixed News Feed tour and User tour target (#40000)
khu5h1 Mar 12, 2023
b89d283
[4.3][Guided Tours] Plugin registers events only under administrator …
obuisard Mar 12, 2023
41729fb
[4.3][Guided Tours] Editors should be accessible with tabs (#40044)
obuisard Mar 12, 2023
7a7fc26
[4.3][Guided Tours] Administrator console unresponsive when CSS selec…
obuisard Mar 12, 2023
5c486fc
[4.3][Guided Tours] Tour Edit: Enforce value in extensions (#40034)
chmst Mar 12, 2023
3f4f53a
[4.3] Shortcuts styling (#40074)
brianteeman Mar 12, 2023
40b00ad
Fix banner tooltip to show the action to perform (#40078)
QuyTon Mar 12, 2023
26b53ba
[4.3] php-diff line endings (#40070)
brianteeman Mar 12, 2023
01f1a9f
Fix domain checking for request (#40080)
Fedik Mar 12, 2023
0a0af69
Add deleted files and folders from #39955 and #40015 (#40089)
richard67 Mar 12, 2023
37bd7f6
[4.3] Phan: Languagefilter plugin (#39983)
Hackwar Mar 12, 2023
cb1d517
Language: Optimisations from static code analysis (#39986)
Hackwar Mar 12, 2023
280c0b8
Joomla! 4.3.0 RC 1
obuisard Mar 12, 2023
eb0023e
Revert to dev
obuisard Mar 12, 2023
52715d6
Move db setup code to plugins file (#40098)
laoneo Mar 13, 2023
02366fa
Track inserted items and delete them when test has finished (#40100)
laoneo Mar 13, 2023
e3ab33b
Add mod_articles_news system test (#40102)
laoneo Mar 13, 2023
5025b57
PHP polyfills as explicit dependency (#39968)
Fedik Mar 13, 2023
3143d25
Joomla! 4.2.9 Stable
fancyFranci Mar 13, 2023
ef06fa2
Reset to dev
fancyFranci Mar 13, 2023
b7d85d4
Merge branch '4.3-dev' into 4.4-dev
laoneo Mar 14, 2023
4acf304
Add mod_footer system test (#40114)
laoneo Mar 14, 2023
e62ddd9
[4.4] Converting from File::exists() to is_file() (#40113)
Hackwar Mar 15, 2023
bcf7547
Fix packager for 4.4-dev (#40132)
Hackwar Mar 16, 2023
a8c3240
[4.4] Rebuild mod_users_latest with new Joomla 4 structure (#40092)
sandewt Mar 17, 2023
b3377e5
Default the ordering parameter in the latest articles module (#40108)
laoneo Mar 18, 2023
cc12327
[4.4] Make UsersLatestHelper backward compatible (#40143)
joomdonation Mar 18, 2023
d3ba9d5
Cypress test for featured com_contact. (#40154)
rajputanuj31 Mar 20, 2023
7611824
Move API system tests to cypress (#40135)
laoneo Mar 20, 2023
6e5aa87
category view test for com_contact (#40158)
rajputanuj31 Mar 20, 2023
a352b00
Add deprecation message for user aid property (#40109)
laoneo Mar 20, 2023
9c76a8d
Add deprecation message for user item_associations property (#40110)
laoneo Mar 20, 2023
ced6f7c
[4.4] Add text deprecated version + description to actual status in m…
sandewt Mar 21, 2023
a895531
Merge branch '4.2-dev' into upmerge-2023-03-21
obuisard Mar 22, 2023
82322cb
composer update
obuisard Mar 22, 2023
cff4dc3
Fix offset length (#40118)
QuyTon Mar 22, 2023
779c8f3
Merge branch '4.3-dev' into upmerge-2023-03-21
obuisard Mar 22, 2023
6083290
Merge pull request #40162 from obuisard/upmerge-2023-03-21
obuisard Mar 22, 2023
8229caf
Merge branch '4.3-dev' into 4.4-dev
laoneo Mar 22, 2023
4ffd244
Update Featured.cy.js (#40165)
brianteeman Mar 22, 2023
d0302aa
Test for not featured contacts (#40166)
rajputanuj31 Mar 22, 2023
74d4465
[4.4] Rebuild mod_footer with new Joomla 4 structure (#40066)
sandewt Mar 22, 2023
5a2d7d4
Convert installer plugins to service providers (#40146)
laoneo Mar 22, 2023
bf38195
Upmerge 4.4 to 5.0
HLeithner Mar 23, 2023
2b1933e
Update composer and npm dependencies (incomplete)
HLeithner Mar 23, 2023
628cfc5
Downgrade broken php-cs-fixer
HLeithner Mar 23, 2023
8abf8b1
Update Phan docker image to php 8.1 with ast
HLeithner Mar 24, 2023
d2fe6c2
Updated LDAP tests to reflect new symfony version
HLeithner Mar 24, 2023
7055842
Remove SQL update files before 5.0
HLeithner Mar 25, 2023
9a54141
Fix LDAP tests under symfony 6
wilsonge Mar 27, 2023
92835be
Merge pull request #53 from wilsonge/fix-ldap-tests
HLeithner Mar 27, 2023
666d051
Merge branch '4.4-5.0/upmerge' of github.com:HLeithner/joomla-cms int…
HLeithner Mar 27, 2023
beb9c5b
cs
HLeithner Mar 27, 2023
f6a9f7d
Raising phpunit minimum version to 9.6.6
Hackwar Mar 28, 2023
02c2920
Merge pull request #54 from Hackwar/4.4-5.0/upmerge
HLeithner Mar 28, 2023
f131689
Fixing drone
Hackwar Mar 28, 2023
a17ae0a
Merge pull request #55 from Hackwar/4.4-5.0/upmerge
HLeithner Mar 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ services:
before_test:
# Run openldap docker image
- ps: docker pull bitnami/openldap:2.6.3
- ps: docker run --rm --name openldap --publish 1389:1389 --publish 1636:1636 -v ${pwd}\tests\Codeception\_data\certs:/certificates --env LDAP_ADMIN_USERNAME=admin --env LDAP_ADMIN_PASSWORD=adminpassword --env LDAP_USERS=customuser --env LDAP_PASSWORDS=custompassword --env LDAP_ENABLE_TLS=yes --env LDAP_TLS_CERT_FILE=/certificates/openldap.crt --env LDAP_TLS_KEY_FILE=/certificates/openldap.key --env LDAP_TLS_CA_FILE=/certificates/CA.crt --env BITNAMI_DEBUG=true --env LDAP_CONFIG_ADMIN_ENABLED=yes --env LDAP_CONFIG_ADMIN_USERNAME=admin --env LDAP_CONFIG_ADMIN_PASSWORD=configpassword -d bitnami/openldap:2.6.3
- ps: docker run --rm --name openldap --publish 1389:1389 --publish 1636:1636 -v ${pwd}\tests\certs:/certificates --env LDAP_ADMIN_USERNAME=admin --env LDAP_ADMIN_PASSWORD=adminpassword --env LDAP_USERS=customuser --env LDAP_PASSWORDS=custompassword --env LDAP_ENABLE_TLS=yes --env LDAP_TLS_CERT_FILE=/certificates/openldap.crt --env LDAP_TLS_KEY_FILE=/certificates/openldap.key --env LDAP_TLS_CA_FILE=/certificates/CA.crt --env BITNAMI_DEBUG=true --env LDAP_CONFIG_ADMIN_ENABLED=yes --env LDAP_CONFIG_ADMIN_USERNAME=admin --env LDAP_CONFIG_ADMIN_PASSWORD=configpassword -d bitnami/openldap:2.6.3
# Database setup for MySQL via PowerShell tools
- >
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u root -p"Password12!" -e "CREATE DATABASE IF NOT EXISTS test_joomla;"
Expand Down
107 changes: 17 additions & 90 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
- name: certificates
path: /certificates
commands:
- cp -v tests/Codeception/_data/certs/* /certificates/
- cp -v tests/certs/* /certificates/

- name: composer
image: joomlaprojects/docker-images:php8.2
Expand All @@ -32,7 +32,7 @@ steps:
- echo $(date)

- name: phan
image: joomlaprojects/docker-images:php7.4-ast
image: joomlaprojects/docker-images:php8.1-ast
depends_on: [ phpcs ]
failure: ignore
commands:
Expand Down Expand Up @@ -95,6 +95,7 @@ steps:
image: node:current-alpine
commands:
- npm run lint:js
- npm run lint:testjs

- name: prepare_system_tests
depends_on:
Expand All @@ -104,86 +105,21 @@ steps:
- name: cypress-cache
path: /root/.cache/Cypress
commands:
- sed -i 's/tests\\/Codeception\\/_output/\\/drone\\/src\\/tests\\/cypress\\/output/' codeception.yml
- mv cypress.config.dist.js cypress.config.js
- php libraries/vendor/bin/codecept build
- npx cypress install
- npx cypress verify

- name: phpmin-api-mysql
depends_on:
- prepare_system_tests
image: joomlaprojects/docker-images:systemtests8.1
volumes:
- name: cypress-cache
path: /root/.cache/Cypress
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" mysql mysqli mysql jos_

- name: phpmax-api-mysql
depends_on:
- prepare_system_tests
image: joomlaprojects/docker-images:systemtests8.2
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" mysqlphpmax mysqli mysql phpmax_

- name: phpnext-api-mysql
depends_on:
- prepare_system_tests
image: joomlaprojects/docker-images:systemtests8.2
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- echo "This test is disabled because php next is not stable yet"
- exit 1
- bash tests/Codeception/drone-api-run.sh "$(pwd)" mysqlphpnext mysqli mysql phpnext_

- name: phpmin-api-postgres
depends_on:
- phpmin-api-mysql
image: joomlaprojects/docker-images:systemtests8.1
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" postgres pgsql postgres jos_

- name: phpmax-api-postgres
depends_on:
- phpmax-api-mysql
image: joomlaprojects/docker-images:systemtests8.2
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" postgresphpmax pgsql postgres phpmax_

- name: phpnext-api-postgres
depends_on:
- phpnext-api-mysql
image: joomlaprojects/docker-images:systemtests8.2
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- echo "This test is disabled because php next is not stable yet"
- exit 1
- bash tests/Codeception/drone-api-run.sh "$(pwd)" postgresphpnext pgsql postgres phpnext_

- name: phpmin-system-mysql
depends_on:
- phpnext-api-mysql
- prepare_system_tests
image: joomlaprojects/docker-images:cypress8.1
volumes:
- name: cypress-cache
path: /root/.cache/Cypress
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/cypress/drone-system-run.sh "$(pwd)" cmysql mysqli mysql
- bash tests/System/drone-system-run.sh "$(pwd)" cmysql mysqli mysql

- name: phpmax-system-mysql
depends_on:
Expand All @@ -195,7 +131,7 @@ steps:
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/cypress/drone-system-run.sh "$(pwd)" cmysqlmax mysqli mysql
- bash tests/System/drone-system-run.sh "$(pwd)" cmysqlmax mysqli mysql

- name: phpnext-system-mysql
depends_on:
Expand All @@ -210,19 +146,19 @@ steps:
commands:
- echo "This test is disabled because php next is not stable yet"
- exit 1
- bash tests/cypress/drone-system-run.sh "$(pwd)" cmysqlnext mysqli mysql
- bash tests/System/drone-system-run.sh "$(pwd)" cmysqlnext mysqli mysql

- name: phpmin-system-postgres
depends_on:
- phpnext-api-postgres
- prepare_system_tests
image: joomlaprojects/docker-images:cypress8.1
volumes:
- name: cypress-cache
path: /root/.cache/Cypress
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/cypress/drone-system-run.sh "$(pwd)" cpostgres pgsql postgres
- bash tests/System/drone-system-run.sh "$(pwd)" cpostgres pgsql postgres

- name: phpmax-system-postgres
depends_on:
Expand All @@ -234,7 +170,7 @@ steps:
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/cypress/drone-system-run.sh "$(pwd)" cpostgresmax pgsql postgres
- bash tests/System/drone-system-run.sh "$(pwd)" cpostgresmax pgsql postgres

- name: phpnext-system-postgres
depends_on:
Expand All @@ -249,39 +185,30 @@ steps:
commands:
- echo "This test is disabled because php next is not stable yet"
- exit 1
- bash tests/cypress/drone-system-run.sh "$(pwd)" cpostgresnext pgsql postgres
- bash tests/System/drone-system-run.sh "$(pwd)" cpostgresnext pgsql postgres

- name: artifacts-system-tests
image: cschlosser/drone-ftps
image: joomlaprojects/docker-images:packager
depends_on:
- phpnext-system-mysql
- phpnext-system-postgres
- phpmax-system-mysql
- phpmax-system-postgres
- phpmin-system-mysql
- phpmin-system-postgres
- phpnext-api-mysql
- phpnext-api-postgres
- phpmax-api-mysql
- phpmax-api-postgres
- phpmin-api-mysql
- phpmin-api-postgres
environment:
FTP_USERNAME:
from_secret: ftpusername
FTP_PASSWORD:
from_secret: ftppassword
PLUGIN_HOSTNAME: ci.joomla.org:21
PLUGIN_SRC_DIR: /tests/cypress/output/
PLUGIN_DEST_DIR: /artifacts
PLUGIN_SECURE: false
PLUGIN_EXCLUDE: ^\.git/$
GITHUB_TOKEN:
from_secret: github_token
commands:
- export PLUGIN_DEST_DIR=$PLUGIN_DEST_DIR/$DRONE_REPO/$DRONE_BRANCH/$DRONE_PULL_REQUEST/system-tests/$DRONE_BUILD_NUMBER
- export PLUGIN_DEST_DIR=/artifacts/$DRONE_REPO/$DRONE_BRANCH/$DRONE_PULL_REQUEST/system-tests/$DRONE_BUILD_NUMBER
- echo https://ci.joomla.org$PLUGIN_DEST_DIR
- /bin/upload.sh
- rclone config create artifacts ftp host ci.joomla.org user $FTP_USERNAME port 21 pass $FTP_PASSWORD
- rclone mkdir artifacts:$PLUGIN_DEST_DIR
- rclone copy tests/System/output/ artifacts:$PLUGIN_DEST_DIR
- 'curl -X POST "https://api.github.com/repos/$DRONE_REPO/statuses/$DRONE_COMMIT" -H "Content-Type: application/json" -H "Authorization: token $GITHUB_TOKEN" -d "{\"state\":\"failure\", \"context\": \"Artifacts from Failure\", \"description\": \"You can find artifacts from the failure of the build here:\", \"target_url\": \"https://ci.joomla.org$PLUGIN_DEST_DIR\"}" > /dev/null'
when:
status:
Expand Down Expand Up @@ -436,6 +363,6 @@ trigger:

---
kind: signature
hmac: aba444991fd9c8f79fa8d477af9bde0ff2d6f9831e3b71d69f55367cfdad2e5b
hmac: 8cf1bf21cd6ed0fb836683510df6a44fe8b096704593aa2f30478b3d41bb0fdf

...
3 changes: 0 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ libraries/src/Updater/* @rdeutz @zero-24

# Automated Testing
tests/* @hackwar
tests/Codeception/* @rdeutz
tests/javascript/* @rdeutz
tests/Unit/* @rdeutz
.appveyor.yml @rdeutz @hackwar
.drone.yml @rdeutz @hackwar
codeception.yml @rdeutz @hackwar
phpunit.xml.dist @rdeutz @hackwar
phpunit-pgsql.xml.dist @rdeutz @hackwar

Expand Down
12 changes: 4 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@

# Test Related Files
/phpunit.xml
selenium.log
composer.phar
/test-install
/.phpunit.result.cache
/tests/Codeception/acceptance.suite.yml
/tests/Codeception/_output/
/tests/Codeception/api.suite.yml


# Vendor directory handling
Expand Down Expand Up @@ -103,10 +99,10 @@ RoboFile.ini
/media/com_media/css/mediamanager.min.css.map

#cypress
/tests/cypress/output/screenshots
!/tests/cypress/output/screenshots/.gitkeep
/tests/cypress/output/videos
!/tests/cypress/output/videos/.gitkeep
/tests/System/output/screenshots
!/tests/System/output/screenshots/.gitkeep
/tests/System/output/videos
!/tests/System/output/videos/.gitkeep
cypress.config.js

# WebAuthn FIDO metadata cache
Expand Down
30 changes: 30 additions & 0 deletions administrator/components/com_admin/postinstall/htaccesssetce.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* This file contains post-installation message handling for notifying users of a change
* in the default .htaccess file regarding setting the Content-Encoding header.
*/

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
* Notifies users of a change in the default .htaccess file regarding setting the Content-Encoding header
*
* This check returns true regardless of condition.
*
* @return boolean
*
* @since 4.2.9
*/
function admin_postinstall_htaccesssetce_condition()
{
return true;
}
8 changes: 4 additions & 4 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ protected function updateManifestCaches()
$extensions = ExtensionHelper::getCoreExtensions();

// If we have the search package around, it may not have a manifest cache entry after upgrades from 3.x, so add it to the list
if (File::exists(JPATH_ROOT . '/administrator/manifests/packages/pkg_search.xml')) {
if (is_file(JPATH_ROOT . '/administrator/manifests/packages/pkg_search.xml')) {
$extensions[] = ['package', 'pkg_search', '', 0];
}

Expand Down Expand Up @@ -1022,7 +1022,7 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
$status['folders_checked'] = $folders;

foreach ($files as $file) {
if ($fileExists = File::exists(JPATH_ROOT . $file)) {
if ($fileExists = is_file(JPATH_ROOT . $file)) {
$status['files_exist'][] = $file;

if ($dryRun === false) {
Expand Down Expand Up @@ -1060,8 +1060,8 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
* but an update has put the files back. In that case it exists even if they don't believe in it!
*/
if (
!File::exists(JPATH_ROOT . '/administrator/components/com_search/search.php')
&& File::exists(JPATH_ROOT . '/administrator/manifests/packages/pkg_search.xml')
!is_file(JPATH_ROOT . '/administrator/components/com_search/search.php')
&& is_file(JPATH_ROOT . '/administrator/manifests/packages/pkg_search.xml')
) {
File::delete(JPATH_ROOT . '/administrator/manifests/packages/pkg_search.xml');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function pinned($value, $i, $enabled = true, $checkbox = 'cb')
1 => [
'sticky_unpublish',
'COM_BANNERS_BANNERS_PINNED',
'COM_BANNERS_BANNERS_HTML_PIN_BANNER',
'COM_BANNERS_BANNERS_HTML_UNPIN_BANNER',
'COM_BANNERS_BANNERS_PINNED',
true,
'publish',
Expand All @@ -113,7 +113,7 @@ public function pinned($value, $i, $enabled = true, $checkbox = 'cb')
0 => [
'sticky_publish',
'COM_BANNERS_BANNERS_UNPINNED',
'COM_BANNERS_BANNERS_HTML_UNPIN_BANNER',
'COM_BANNERS_BANNERS_HTML_PIN_BANNER',
'COM_BANNERS_BANNERS_UNPINNED',
true,
'unpublish',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* ComponentDispatcher class for com_config
*
* @since __DEPLOY_VERSION__
* @since 4.2.9
*/
class Dispatcher extends ComponentDispatcher
{
Expand All @@ -30,7 +30,7 @@ class Dispatcher extends ComponentDispatcher
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 4.2.9
*
* @throws \Exception
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Joomla\Component\Config\Administrator\Field;

use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Form\Field\ListField;
use Joomla\CMS\Language\Text;
use Joomla\Utilities\ArrayHelper;
Expand Down Expand Up @@ -60,7 +59,7 @@ protected function getOptions()
// Load language
$extension = $item->value;

if (File::exists(JPATH_ADMINISTRATOR . '/components/' . $extension . '/config.xml')) {
if (is_file(JPATH_ADMINISTRATOR . '/components/' . $extension . '/config.xml')) {
$source = JPATH_ADMINISTRATOR . '/components/' . $extension;
$lang->load("$extension.sys", JPATH_ADMINISTRATOR)
|| $lang->load("$extension.sys", $source);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function hasComponentConfig($component)
*
* @return boolean
*
* @since __DEPLOY_VERSION__
* @since 4.2.9
*/
public static function canChangeComponentConfig(string $component)
{
Expand Down
Loading