Virtually nothing needed to be changed beyond taking down the old signs and putting up the new signs.
There are a gazillion mosques in this world that WERE NOT built on the site of a temple or church. Some are. Stuff happens. An old church building is just that ~ an old church building ~ nothing particular sacred about them.