Skip to content

Commit

Permalink
Change name of method to fix notice errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuan Pham Ngoc committed Oct 17, 2014
1 parent 21000ec commit e3f6caf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions administrator/components/com_users/models/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function save($data)

if (JFactory::getApplication()->input->get('task') == 'save2copy')
{
$data['title'] = $this->generateNewTitle($data['parent_id'], $data['title']);
$data['title'] = $this->generateGroupTitle($data['parent_id'], $data['title']);
}

// Proceed with the save
Expand Down Expand Up @@ -291,7 +291,7 @@ public function delete(&$pks)
}

/**
* Method to change the title of group
* Method to generate the title of group on Save as Copy action
*
* @param integer $parentId The id of the parent.
* @param string $title The title of group
Expand All @@ -300,7 +300,7 @@ public function delete(&$pks)
*
* @since 3.3.7
*/
protected function generateNewTitle($parentId, $title)
protected function generateGroupTitle($parentId, $title)
{
// Alter the title & alias
$table = $this->getTable();
Expand Down

0 comments on commit e3f6caf

Please sign in to comment.