? Pending

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
24 Oct 2018

Partial Pull Request for Issue #22779

Summary of Changes

Calls to Joomla\CMS\Factory::getUser() with no arguments end up in a call to Joomla\CMS\Session\Session::get() so this isn't a highly performant method call and should only happen when needed. In Joomla\CMS\HTML\HTMLHelper::date(), it is only needed in one of the four conditions, so there is no need to always call this method. Likewise, Joomla\CMS\Factory::getConfig() only needs to be called in one of the four conditions. So, stop arbitrarily calling these two methods on every call to Joomla\CMS\HTML\HTMLHelper::date() and only call them when actually needed.

Testing Instructions

With the patch applied, date/time strings are still correctly localized.

avatar mbabker mbabker - open - 24 Oct 2018
avatar mbabker mbabker - change - 24 Oct 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Oct 2018
Category Libraries
avatar Quy
Quy - comment - 24 Oct 2018

I have tested this item successfully on ef701c2


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

avatar Quy Quy - test_item - 24 Oct 2018 - Tested successfully
avatar phproberto
phproberto - comment - 24 Oct 2018

I have tested this item successfully on ef701c2


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

avatar phproberto phproberto - test_item - 24 Oct 2018 - Tested successfully
avatar laoneo laoneo - close - 24 Oct 2018
avatar laoneo laoneo - merge - 24 Oct 2018
avatar laoneo laoneo - change - 24 Oct 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-10-24 11:54:14
Closed_By laoneo
Labels Added: ?
avatar laoneo
laoneo - comment - 24 Oct 2018

Thanks

Add a Comment

Login with GitHub to post a comment