According to Quebec papers, the mayor of  Saint-Apollinaire, Bernard Ouellet, said: 'It wasn't land use that was being disputed; it was the word 'muslim.'  The voters didn't reject a cemetery, they rejected a muslim cemetery.'

If there is actual evidence that's why the vote failed - and I've seen none reported - then the fact it was a democratic vote won't save it if it's contested.  That's the purpose of having minority rights.