/** * Method to change the title & alias. * * @param integer $category_id The id of the category. * @param string $alias The alias. * @param string $name The name. * * @return array Contains the modified title and alias. * * @since 2.0.0-BETA2 */ protected function _generateNewTitle($category_id, $alias, $name) { while (KunenaForumCategoryHelper::getAlias($category_id, $alias)) { $name = JString::increment($name); $alias = JString::increment($alias, 'dash'); } return array($name, $alias); }