? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
9 Jun 2019

Use JPATH_SITE, JPATH_ADMINISTRATOR, JPATH_API and JPATH_PLUGINS for the locations instead of the JPATH_ROOT. This is better for people placing things in custom locations and also reads a bit nicer:

'Joomla\\Component\\Content\\Site\\' => [JPATH_SITE . '/components/com_content/'],
'Joomla\\Component\\Content\\Api\\' => [JPATH_API . '/components/com_content/'],
'Joomla\\Component\\Content\\Administrator\\' => [JPATH_ADMINISTRATOR . '/components/com_content/'],

To test. Remove libraries/autoload_psr4.php and let it be regenerated with the new paths. Ensure nothing breaks

avatar wilsonge wilsonge - open - 9 Jun 2019
avatar wilsonge wilsonge - change - 9 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jun 2019
Category Libraries
avatar wilsonge wilsonge - change - 9 Jun 2019
The description was changed
avatar wilsonge wilsonge - edited - 9 Jun 2019
avatar wilsonge wilsonge - change - 10 Jun 2019
Labels Added: ?
avatar SharkyKZ
SharkyKZ - comment - 10 Jun 2019

Site modules now have JPATH_ADMINISTRATOR path, e.g.

'Joomla\\Module\\ArticlesArchive\\Site\\' => [JPATH_ADMINISTRATOR . '/modules/mod_articles_archive/'],
avatar wilsonge
wilsonge - comment - 10 Jun 2019

@SharkyKZ nice spot! missed that. think i've fixed this (although in the office right now so unable to test this - please can you give it a go?)

avatar richard67
richard67 - comment - 10 Jun 2019

Looks good to me:
Unbenannt
Unbenannt_2

avatar richard67
richard67 - comment - 10 Jun 2019

I have tested this item successfully on e2e112c


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

avatar richard67
richard67 - comment - 10 Jun 2019

I have tested this item successfully on e2e112c


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

avatar richard67 richard67 - test_item - 10 Jun 2019 - Tested successfully
avatar richard67
richard67 - comment - 10 Jun 2019

@wilsonge Any idea why unit tests fail? To me it seems not to be related to this PR.

avatar wilsonge
wilsonge - comment - 10 Jun 2019

Need to debug. I re-ran it and it's reliably failing. So my guess is I've broken it somewhere :)

avatar richard67
richard67 - comment - 10 Jun 2019

@wilsonge Maybe the old wrong double slash which you removed in the last 3 lines for the plugins (see also 2nd screenshot above)? But that would be strange.

avatar joomla-cms-bot joomla-cms-bot - change - 10 Jun 2019
Category Libraries Installation Libraries
avatar wilsonge
wilsonge - comment - 10 Jun 2019

Fixed it. Apparently I messed up the path to the api directory in the installer application ?‍♂ . I guess this is why we have tests :)

avatar richard67
richard67 - comment - 10 Jun 2019

Looks good now:
Unbenannt

Pity that I did not see that in my previous diff.

avatar richard67
richard67 - comment - 10 Jun 2019

I have tested this item successfully on 96ad172


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

avatar richard67 richard67 - test_item - 10 Jun 2019 - Tested successfully
avatar wilsonge
wilsonge - comment - 10 Jun 2019

In your previous diff it was correct. You only see it if you do a fresh install of Joomla and the installation app generates the file. in the administrator and site apps it was fine because the constants in the defines files there are correct.

avatar wilsonge wilsonge - change - 10 Jun 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-10 22:56:54
Closed_By wilsonge
avatar wilsonge wilsonge - close - 10 Jun 2019
avatar wilsonge wilsonge - merge - 10 Jun 2019
avatar wilsonge
wilsonge - comment - 10 Jun 2019

Thanks!

Add a Comment

Login with GitHub to post a comment