protected function verifyTitle($title)
{
if (strpos($title, '.') !== false)
{
if (sizeof(explode('.', $title)) > 2)
{
$this->error(\XF::phrase('phrase_titles_may_only_contain_single_dot_character'));
return false;
}
else if (!preg_match('/^[a-z0-9_]{1,50}\.[a-z0-9_]+$/i', $title))
{
$this->error(\XF::phrase('phrase_group_titles_must_be_no_more_than_50_characters'), 'title');
return false;
}
}
return true;
}