From 181f4514d1624ad4e760f83687a8436fbce61b9f Mon Sep 17 00:00:00 2001 From: Matjaz Tercelj Date: Thu, 12 Nov 2015 15:51:52 +0100 Subject: [PATCH] Update view.html.php --- admin/views/helloworld/view.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/views/helloworld/view.html.php b/admin/views/helloworld/view.html.php index a8d98b0..9d5eb04 100644 --- a/admin/views/helloworld/view.html.php +++ b/admin/views/helloworld/view.html.php @@ -46,9 +46,9 @@ protected function addToolBar() { $input = JFactory::getApplication()->input; $input->set('hidemainmenu', true); - $isNew = ($this->item->id == 0); + $isNew = ($this->get('Item')->id == 0); JToolBarHelper::title($isNew ? JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLD_NEW') : JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLD_EDIT')); JToolBarHelper::save('helloworld.save'); JToolBarHelper::cancel('helloworld.cancel', $isNew ? 'JTOOLBAR_CANCEL' : 'JTOOLBAR_CLOSE'); } -} \ No newline at end of file +}