PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar sandewt
sandewt
29 Mar 2023

Pull Request for Issue # .

Summary of Changes

The constant JPATH_PLATFORM is a history thing and should not be used in the plugin code
This pr replaces this with _JEXEC , and makes the code consistent with that of the other plugins.

Related to #39997

Testing Instructions

  • Works
  • Code review

Actual result BEFORE applying this Pull Request

Code: \defined('JPATH_PLATFORM') or die;

Expected result AFTER applying this Pull Request

Code: \defined('_JEXEC') or die;

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@laoneo please take a look

avatar joomla-cms-bot joomla-cms-bot - change - 29 Mar 2023
Category Front End Plugins
avatar sandewt sandewt - open - 29 Mar 2023
avatar sandewt sandewt - change - 29 Mar 2023
Status New Pending
avatar laoneo
laoneo - comment - 29 Mar 2023

Just wondering, do we have more occurrences of JPATH_PLATFORM or are these the last ones?

avatar sandewt
sandewt - comment - 29 Mar 2023

Just wondering, do we have more occurrences of JPATH_PLATFORM or are these the last ones?

I have checked the plugin code in Joomla 4.4. The modules (site) are up to date.

I assume the libraries folder is not applicable. Is this correct?

If yes, then there are still about 24 in the folder \administrator\components...

avatar rdeutz
rdeutz - comment - 29 Mar 2023

Good idea, looks ok to me

avatar laoneo
laoneo - comment - 29 Mar 2023

So we can do in a followup pr a replacement of all JPATH_PLATFORM...

avatar laoneo laoneo - change - 29 Mar 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-03-29 13:25:14
Closed_By laoneo
Labels Added: PR-4.4-dev
avatar laoneo laoneo - close - 29 Mar 2023
avatar laoneo laoneo - merge - 29 Mar 2023
avatar laoneo
laoneo - comment - 29 Mar 2023

Thanks!

avatar sandewt
sandewt - comment - 29 Mar 2023

Thanks all

Add a Comment

Login with GitHub to post a comment