Skip to content

[6.0] Move the JPATH_PLATFORM constant to the compat plugin #44638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Feb 12, 2025

Conversation

laoneo
Copy link
Member

@laoneo laoneo commented Dec 19, 2024

Summary of Changes

The JPATH_PLATFORM is not used anymore in the core. This pr moves the definition of it to the compatibility plugin. Extensions should check if _JEXEC exists instead.

Code review.

Link to documentations

Please select:

@laoneo laoneo added the b/c break This item changes the behavior in an incompatible why. HEADS UP label Dec 20, 2024
@QuyTon
Copy link
Contributor

QuyTon commented Jan 19, 2025

I have tested this item ✅ successfully on b7edaa5


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638.

@Bodge-IT
Copy link
Contributor

Bodge-IT commented Feb 5, 2025

I have tested this item 🔴 unsuccessfully on 95b56ba

Applying the patch caused white screen in Patch Tester(4.3.3) component. Everything else frontend, backend worked fine. I could not get any additional logging info from the system.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638.

@QuyTon
Copy link
Contributor

QuyTon commented Feb 5, 2025

@Bodge-IT This has been fixed in PatchTester pending a new release. joomla-extensions/patchtester@07c2890

@brianteeman
Copy link
Contributor

@Bodge-IT This has been fixed in PatchTester pending a new release. joomla-extensions/patchtester@07c2890

proof that we're not ready for this pointless change

@Bodge-IT
Copy link
Contributor

Bodge-IT commented Feb 6, 2025

I have tested this item ✅ successfully on 95b56ba

OK, previous test was actually successful. Tested on joomla-extensions/patchtester@07c2890


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638.

@HLeithner
Copy link
Member

I have tested this item ✅ successfully on ecc5f35

Code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638.

@QuyTon
Copy link
Contributor

QuyTon commented Feb 9, 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 9, 2025
@QuyTon QuyTon added this to the Joomla! 6.0.0 milestone Feb 9, 2025
@laoneo
Copy link
Member Author

laoneo commented Feb 9, 2025

I'v moved the constant to the compat plugin. @Bodge-IT can you test the patch tester with the old code if it still works?

@Bodge-IT
Copy link
Contributor

Bodge-IT commented Feb 9, 2025

I have tested this item ✅ successfully on d30e272

Tested successfully after Allon's change, with old unpatched Patch Tester.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44638.

@laoneo laoneo changed the title [6.0] Remove the JPATH_PLATFORM constant [6.0] Move the JPATH_PLATFORM constant to the compat plugin Feb 10, 2025
@Bodge-IT Bodge-IT merged commit dc0e921 into joomla:6.0-dev Feb 12, 2025
3 checks passed
@Bodge-IT Bodge-IT deleted the platform/constant branch February 12, 2025 07:18
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 12, 2025
HLeithner added a commit to HLeithner/joomla-cms that referenced this pull request Apr 16, 2025
HLeithner added a commit that referenced this pull request May 14, 2025
* Create backward compatibility 6 plugin
* Moved relevant code from old compat plugin and removed it

considered changes from prs:
#44926
#44240
#44638
#44700
#43209
#43958
#42884

* Add new plugin on install and uninstall old plugin
* Remove compat media folder, add compat6 removed.asset.json
* Fix cs exceptions
* Update ExtensionHelper
* Rename Compat.php to Compat6.php
* Disable compat6 plugin for system tests
* Restore class aliases from compat 5 plugin
* Relocate files from #44925

---------

Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Brian Teeman <[email protected]>
softforge pushed a commit that referenced this pull request May 25, 2025
* Create backward compatibility 6 plugin

* Moved relevant code from old compat plugin and removed it

considered changes from prs:
#44926
#44240
#44638
#44700
#43209
#43958
#42884

* Add new plugin on install and uninstall old plugin

* Remove compat media folder, add compat6 removed.asset.json

* Fix cs exceptions

* Update ExtensionHelper

* Rename Compat.php to Compat6.php

* Disable compat6 plugin for system tests

* Update administrator/language/en-GB/plg_behaviour_compat6.ini

Co-authored-by: Brian Teeman <[email protected]>

* Update plugins/behaviour/compat6/compat6.xml

Co-authored-by: Brian Teeman <[email protected]>

* Update plugins/behaviour/compat6/compat6.xml

Co-authored-by: Brian Teeman <[email protected]>

* Update administrator/language/en-GB/plg_behaviour_compat6.ini

Co-authored-by: Brian Teeman <[email protected]>

* Update administrator/language/en-GB/plg_behaviour_compat6.sys.ini

Co-authored-by: Brian Teeman <[email protected]>

* Update plugins/behaviour/compat6/src/Extension/Compat6.php

* Restore class aliases from compat 5 plugin

* Relocate files from #44925

* Apply language string improvement from review suggestion

Co-authored-by: Brian Teeman <[email protected]>

* Update plugins/behaviour/compat6/src/Extension/Compat6.php

Co-authored-by: Allon Moritz <[email protected]>

* Update plugins/behaviour/compat6/compat6.xml

Co-authored-by: Allon Moritz <[email protected]>

* Update installation/sql/mysql/base.sql

Co-authored-by: Richard Fath <[email protected]>

* Update installation/sql/postgresql/base.sql

Co-authored-by: Richard Fath <[email protected]>

* Fix wrong folder in uninstallation of compat (5) plugin.

---------

Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Brian Teeman <[email protected]>
Co-authored-by: Benjamin Trenkle <[email protected]>
Co-authored-by: Allon Moritz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b/c break This item changes the behavior in an incompatible why. HEADS UP PR-6.0-dev Unit/System Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants