? Success

User tests: Successful: Unsuccessful:

avatar mahagr
mahagr
24 Apr 2015

When using discover install, path to the template is wrong when loading the language.

Old code pointed to site/templates/{$template} or ADMINISTRATOR/templates/{$template} where it should point to the real directory, either in administration or site.

This pull request will fix the lookup path to point to {$base}/templates/{$template} where base is either JPATH_SITE or JPATH_ADMINISTRATOR.

avatar mahagr mahagr - open - 24 Apr 2015
avatar mahagr
mahagr - comment - 24 Apr 2015

To test this:

  • Copy beez3 to beez3.bak
  • Uninstall beez3 from Extension manager
  • Move beez3.bak to beez3
  • Make sure beez3 directory is writable by web server
  • Discover and install beez3

Before applying the patch, you will see this message:

TPL_BEEZ3_XML_DESCRIPTION

After the patch:

Accessible template for Joomla! Beez, the HTML 4 version.

PS. You can repeat the same with admin template.

avatar mahagr
mahagr - comment - 24 Apr 2015

See also: gantry/gantry5#114

avatar kat05
kat05 - comment - 24 Apr 2015

this patch works for me, no more missing language strings on discover installations

avatar MAT978
MAT978 - comment - 24 Apr 2015

@test

Able to reproduce then #6835 works as expected both for admin & site templates.

Thanks


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

avatar MAT978 MAT978 - test_item - 24 Apr 2015 - Tested successfully
avatar MAT978 MAT978 - alter_testresult - 24 Apr 2015 - kat05: Tested successfully
avatar MAT978 MAT978 - change - 24 Apr 2015
Category Administration Templates (admin) Templates (site)
avatar Bakual
Bakual - comment - 24 Apr 2015

@mbabker Can you review? I guess you know the code since you rewrote part of it recently :smile:

avatar brianteeman brianteeman - change - 24 Apr 2015
Status New Needs Review
avatar phproberto
phproberto - comment - 25 Apr 2015

@test ok

After applying the patch I tested:

  • Install admin template from folder
  • Install admin template with discover
  • Install admin template from zip
  • Install site template from folder
  • Install site template with discover
  • Install site template from zip

About the discover issue fixed here this was the $source value before applying the patch:

site/templates/mytemplate (wrong)

And the $source value after applying the patch:

/home/roberto/www/jcms3x/templates/mytemplate (right)

I also tested the the $source value was ok for all my install tests.

So :+1: here

avatar mahagr
mahagr - comment - 25 Apr 2015

Well, like I said in the pull request comment, the source was wrong also for admin: ADMINISTRATOR/templates/mytemplate.

Fixing $source was the only real change in the patch; rest of it was just reusing the same variable.

avatar mbabker
mbabker - comment - 25 Apr 2015

Good to go, consistent with other adapters that have multi-client support.

avatar zero-24 zero-24 - close - 25 Apr 2015
avatar mbabker mbabker - close - 25 Apr 2015
avatar mbabker mbabker - reference | - 25 Apr 15
avatar mbabker mbabker - merge - 25 Apr 2015
avatar mbabker mbabker - close - 25 Apr 2015
avatar mbabker mbabker - change - 25 Apr 2015
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2015-04-25 14:50:19
Closed_By mbabker
avatar mahagr mahagr - head_ref_deleted - 27 Apr 2015
avatar mahagr
mahagr - comment - 27 Apr 2015

Thanks, will now look at my next small improvement for the installer.

avatar mahagr
mahagr - comment - 27 Apr 2015

FYI for those who are interested on installer bugs: #6854

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment