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
A Wales international rugby player has apologised after he "blacked-up" as a Swansea City footballer for a fancy dress photograph.
Theresa May is considering options to secure statutory powers for child sex abuse inquiry but it may require 'disbanding' current panel.
London mayor Boris Johnson is backing Olympics supremo Seb Coe as his replacement.