On Joomla 3.8.7, CMSApplication function getPathway($name=null, $options = array()) logs a warning regarding $name which is deprecated.
So CMSApplication->getPathway(null,[]) will work fine, but CMSApplication->getPathway('site',[]) will not.
However, SiteApplication extends CMSApplication, and its getPathway function is
public function getPathway($name = 'site', $options = array())
{
return parent::getPathway($name, $options);
}
So this will always call CMSApplication with a $name, which will in turn print the warning.
So I'll alway get a warning when I write:
$app = JFactory::getApplication();
$pathway = $app->getPathway();
What should I do to avoid this?
Simon
Labels |
Added:
?
|
Category | ⇒ | Code style |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-04-21 05:30:06 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
@simongareste
Please test: #20206
Works for me. Thanks!
Simon
Le sam. 21 avr. 2018 à 08:05, NickSdot notifications@github.com a écrit :
@simongareste https://github.com/simongareste
Please test: #20206 #20206—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#20203 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEasYhcnJjHcxoCSYHic842LSbA-NHA5ks5tqswWgaJpZM4TdCgZ
.
@simongareste please mark your Test as successfully:
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/20203