Removed usage of inline alerts (fixes #4908)