I would imagine that all the wires were connected.
Feed in, feed, out and fan permanant live at the left of the photo, and switched live to the light and fan on the right.
There's an easy way to suss it but unfortunately it's far too dangerous to tell you.
I would appreciate the "way to suss it".....