[5.2] Remove Toolbar::getInstance() from views#43512
Conversation
|
What the issue @brianteeman ? |
|
|
I checked all files but can't find a search replace issue. if you mean the conversation from on the side I checked some file for missing removal of the |
|
Sorry no idea as its been 10 weeks but based on my comment it must have been something shown up in drone so maybe retrigger drone and see |
|
@Hackwar Could you please remove the unused |
|
Done |
I flagged some. There are more to remove. |
No, I thoroughly went through them all at that time and all other instances are still in use. |
|
@Quy the code style checker should also throw an error when there are unused imports. So I guess we are fine here, or? |
|
@laoneo Yes. Please discard my comments. |
|
Thanks! |
Summary of Changes
Toolbar::getInstance()has been deprecated for quite some time now, but the alternative wasn't really clear yet. This PR replaces all occurences with$this->getDocument()->getToolbar()instead. This leaves theToolbar::getInstance()in theToolbarHelperclass.Testing Instructions
Codereview
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed