Sir John Thomas sitting at the High Court ruled that the two men were in breach of the injunction and therefore in contempt of court.
Reflecting on the "gravity" of their offence he said they would be given nine months imprisonment but because of mitigating circumstances it would be suspended.
More top news
It will be a mainly dry but chilly start across the UK with a few showers across northern Scotland and northwest England.
Marks and Spencer will become the first UK retailer to add vitamin D to its entire packaged bread range.
An over-the-top 80's action movie parody featuring kung fu Hitler and a David Hasselhoff soundtrack gets almost four million views online.