[ticket/12325] Change private function to protected

PHPBB3-12325