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 +}