? Success

User tests: Successful: Unsuccessful:

avatar frankmayer
frankmayer
10 Dec 2016

As the title says, it replaces the deprecated isSite() and isAdmin() calls with the new ones

avatar frankmayer frankmayer - open - 10 Dec 2016
avatar frankmayer frankmayer - change - 10 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Dec 2016
Category Administration com_categories com_contact com_content com_finder com_login com_media com_menus com_modules Templates (admin) Front End com_config com_tags com_users Libraries External Library
avatar frankmayer
frankmayer - comment - 10 Dec 2016

On it...

avatar frankmayer frankmayer - change - 10 Dec 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Dec 2016
Category Administration com_categories com_contact com_content com_finder com_login com_media com_menus com_modules Templates (admin) Front End com_config com_tags com_users Libraries External Library Administration com_categories com_contact com_content com_finder com_login com_media com_menus com_modules Templates (admin) Front End com_config com_tags com_users Libraries
avatar infograf768
infograf768 - comment - 10 Dec 2016

hmm... why was that deprecated?

avatar Bakual
Bakual - comment - 10 Dec 2016

hmm... why was that deprecated?

#8971

avatar frankmayer
frankmayer - comment - 10 Dec 2016

This passes for now, but only after I reverted the changes in 'libraries/cms/pagination/pagination.php'
Has anyone any idea why the replacements failed there?

avatar frankmayer
frankmayer - comment - 10 Dec 2016

hmm, I think I know why... checking it out

avatar wilsonge
wilsonge - comment - 10 Dec 2016

It allows having custom clients (like CLI applications) that don't need to try and implement these custom isSite() and isAdmin() methods. 👍 to this standardisation!

avatar andrepereiradasilva
andrepereiradasilva - comment - 10 Dec 2016

@frankmayer i think you missed some.

/libraries/joomla/document/renderer/html/modules.php:37
/libraries/joomla/cache/cache.php:702
/libraries/joomla/cache/storage/redis.php:109
/libraries/joomla/cache/storage/redis.php:119
/libraries/joomla/cache/storage/redis.php:13
/libraries/joomla/cache/storage/redis.php:149
/libraries/joomla/form/field.php:1085

(also for consistency IMHO the same should be done in weblinks repository https://github.com/joomla-extensions/weblinks after)

avatar frankmayer
frankmayer - comment - 10 Dec 2016

@andrepereiradasilva are these not part of the platform? Shouldn't they be changed over there?

avatar frankmayer
frankmayer - comment - 10 Dec 2016

@wilsonge The problem was with mocking and I fixed it.
However, I am not able to understand what you meant with your lines. It's probably my logic failing me 😄 , but could you elaborate?

avatar andrepereiradasilva
andrepereiradasilva - comment - 10 Dec 2016

@andrepereiradasilva are these not part of the platform? Shouldn't they be changed over there?

no. afaik there is no plataform repository. there is a framework repository if that is what you mean, but those are in the vendor dir (see https://github.com/joomla/joomla-cms/tree/staging/libraries/vendor/joomla and https://github.com/joomla-framework/)

avatar frankmayer
frankmayer - comment - 10 Dec 2016

@andrepereiradasilva Oh, ok, I confused them. Thanks for clarifying. Will change those ones, too. Already made a PR to weblinks as you suggested.

avatar wilsonge
wilsonge - comment - 10 Dec 2016

Everything in libraries/joomla, libraries/cms and libraries/legacy should be updated too :)

avatar frankmayer
frankmayer - comment - 10 Dec 2016

@wilsonge will check those dirs, also. :)

avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Dec 2016

I have tested this item successfully on 97ad36b

code review


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

avatar andrepereiradasilva andrepereiradasilva - test_item - 12 Dec 2016 - Tested successfully
avatar frankmayer
frankmayer - comment - 18 Dec 2016

Conflicts resolved...

avatar alikon
alikon - comment - 19 Dec 2016

I have tested this item successfully on dad2bc3


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

avatar alikon alikon - test_item - 19 Dec 2016 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 19 Dec 2016

I have tested this item successfully on dad2bc3

Test OK


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

avatar anibalsanchez anibalsanchez - test_item - 19 Dec 2016 - Tested successfully
avatar frankmayer
frankmayer - comment - 19 Dec 2016

Conflicts resolved...

avatar wilsonge wilsonge - reference | ce7de21 - 20 Dec 16
avatar wilsonge wilsonge - merge - 20 Dec 2016
avatar wilsonge wilsonge - close - 20 Dec 2016
avatar wilsonge wilsonge - change - 20 Dec 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-20 00:40:22
Closed_By wilsonge
avatar wilsonge wilsonge - close - 20 Dec 2016
avatar wilsonge wilsonge - merge - 20 Dec 2016
avatar wilsonge wilsonge - change - 20 Dec 2016
Milestone Added:
avatar frankmayer frankmayer - head_ref_deleted - 25 Dec 2016

Add a Comment

Login with GitHub to post a comment