? ? Success

User tests: Successful: Unsuccessful:

avatar NickSdot
NickSdot
21 Apr 2018

Pull Request for Issue #20203 .

Summary of Changes

Because $name attribute in \Joomla\CMS\Application\CMSApplication::getPathway is deprecated, \Joomla\CMS\Application\SiteApplication::getPathway should also not provide a hardcoded name.

Testing Instructions

  1. Use following code
$app = JFactory::getApplication();
$pathway = $app->getPathway();

//debug
echo '<pre>';
var_dump($pathway);
echo '</pre>';
  1. Open page where you use it.
  2. Open /logs/deprecated.php check if there is message 'Name attribute is deprecated, in the future fetch the pathway...'.
  3. Delete log file and apply patch
  4. Reload page where you use the code
  5. Check log again. No deprecated message should be there anymore.
  6. Compare output of var_dump before/after.

Expected result

Behavior like before, but no deprecated message in log file.

Actual result

Deprecated message 'Name attribute is deprecated, in the future fetch the pathway through the respective application' in log, when Factory::getApplication()->getPathway(); is used without attributes.

Documentation Changes Required

I don't think so.

avatar NickSdot NickSdot - open - 21 Apr 2018
avatar NickSdot NickSdot - change - 21 Apr 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Apr 2018
Category Libraries
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Apr 2018
Title
Fix for #20203
Fix for #20203: Name attribute is deprecated, in the future fetch the pathway through the respective application
avatar joomla-cms-bot joomla-cms-bot - edited - 21 Apr 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Apr 2018

changed Title to be clear what this PR is about.


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

avatar simongareste
simongareste - comment - 23 Apr 2018

I have tested this item successfully on fbb2d93


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

avatar simongareste simongareste - test_item - 23 Apr 2018 - Tested successfully
avatar viocassel
viocassel - comment - 3 Feb 2019

I have tested this item successfully on fbb2d93


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

avatar viocassel viocassel - test_item - 3 Feb 2019 - Tested successfully
avatar Quy Quy - change - 3 Feb 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 3 Feb 2019

RTC


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
Fix for #20203: Name attribute is deprecated, in the future fetch the pathway through the respective application
Name attribute is deprecated, in the future fetch the pathway through the respective application
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar alikon
alikon - comment - 2 May 2019

@HLeithner please a final response

1 year old rtc pr

avatar HLeithner
HLeithner - comment - 10 May 2019

@NickSdot thx for you pr but thats a b/c and can't be merged in a bugfix release.

If this problem still exists in J4 it would be great if you can make a new PR against 4.0-dev branch.

avatar HLeithner HLeithner - change - 10 May 2019
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2019-05-10 12:45:16
Closed_By HLeithner
Labels Added: ?
Removed: J3 Issue
avatar HLeithner HLeithner - close - 10 May 2019

Add a Comment

Login with GitHub to post a comment