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

This commit is contained in:
Llewellyn van der Merwe 2020-12-04 01:11:41 +02:00
parent 06c97afa05
commit e7670a1edd
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
6 changed files with 5 additions and 14 deletions

View File

@ -148,7 +148,7 @@ TODO
+ *Version*: 2.12.1 + *Version*: 2.12.1
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **289034** + *Line count*: **289032**
+ *Field count*: **1537** + *Field count*: **1537**
+ *File count*: **1880** + *File count*: **1880**
+ *Folder count*: **304** + *Folder count*: **304**

View File

@ -148,7 +148,7 @@ TODO
+ *Version*: 2.12.1 + *Version*: 2.12.1
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt + *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **289034** + *Line count*: **289032**
+ *Field count*: **1537** + *Field count*: **1537**
+ *File count*: **1880** + *File count*: **1880**
+ *Folder count*: **304** + *Folder count*: **304**

View File

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

View File

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

View File

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

View File

@ -85,8 +85,6 @@ class ComponentbuilderViewApi extends JViewLegacy
*/ */
protected function addToolBar() protected function addToolBar()
{ {
// adding the joomla toolbar to the front
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
// set help url for this view if found // set help url for this view if found
$help_url = ComponentbuilderHelper::getHelpUrl('api'); $help_url = ComponentbuilderHelper::getHelpUrl('api');