Blocking update

Make sure we can add a block from the main admin page instead of having
to bounce into the blocks page
Fix some PHP 5.4 syntax