Removed legacy code from site views, that is no longer needed. Resolved gh-612

This commit is contained in:
2020-12-04 01:11:41 +02:00
parent 06c97afa05
commit e7670a1edd
6 changed files with 5 additions and 14 deletions

View File

@ -82,10 +82,7 @@ class ###Component###View###View### extends JViewLegacy
* Setting the toolbar
*/
protected function addToolBar()
{
// adding the joomla edit toolbar to the front
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
###ADDTOOLBAR###
{###ADDTOOLBAR###
// now initiate the toolbar
$this->toolbar = JToolbar::getInstance();
}

View File

@ -46,9 +46,7 @@ class ###Component###View###SViews### extends JViewLegacy
* Setting the toolbar
*/
protected function addToolBar()
{
// adding the joomla toolbar to the front
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');###SITE_CUSTOM_BUTTONS###
{###SITE_CUSTOM_BUTTONS###
// set help url for this view if found
$help_url = ###Component###Helper::getHelpUrl('###sviews###');

View File

@ -46,9 +46,7 @@ class ###Component###View###SView### extends JViewLegacy
* Setting the toolbar
*/
protected function addToolBar()
{
// adding the joomla toolbar to the front
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');###SITE_CUSTOM_BUTTONS###
{###SITE_CUSTOM_BUTTONS###
// set help url for this view if found
$help_url = ###Component###Helper::getHelpUrl('###sview###');