Patches for check_frontpage [sf#778477] [#491]