? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
31 Dec 2017

Pull Request for Issue # .

Summary of Changes

This PR makes some clean up to ContentViewCategory classes:

  1. Use namespace classes instead of it's alias

  2. Move $dispatcher = JEventDispatcher::getInstance(); out of the loop, so we get a bit performance improvement

  3. Remove code to set view layout as it is set on parent class code already https://github.com/joomla/joomla-cms/blob/staging/libraries/src/MVC/View/CategoryView.php#L212-L223

  4. Remove some un-used variables (like $id, $pathway), reuse-existing variable (no need for $menu = $menu->getActive() when we have $active variable keep active menu item before)

Testing Instructions

Code review should be enough. For human testing, please create a menu item to display articles from a category (Category Blog layout menu option for example), check and make sure articles still being displayed like before

avatar joomdonation joomdonation - open - 31 Dec 2017
avatar joomdonation joomdonation - change - 31 Dec 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Dec 2017
Category Front End com_content
avatar joomdonation joomdonation - change - 2 Jan 2018
Labels Added: ?
avatar Quy Quy - test_item - 8 Jan 2018 - Tested successfully
avatar Quy
Quy - comment - 8 Jan 2018

I have tested this item successfully on 02f1b74


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

avatar joomla-cms-bot joomla-cms-bot - change - 15 Jan 2018
Category Front End com_content Repository Administration com_associations com_categories com_contact com_content com_fields com_finder com_installer com_redirect Language & Strings Modules Templates (admin) Front End
avatar joomdonation
joomdonation - comment - 15 Jan 2018

Ouch

avatar joomdonation joomdonation - change - 15 Jan 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-01-15 15:43:22
Closed_By joomdonation
Labels Added: ?
avatar joomdonation joomdonation - close - 15 Jan 2018

Add a Comment

Login with GitHub to post a comment