Update MagicNumberedHeadings.php

Trying to fix the dame MagicNumHeadings extension.  This is using pre1.9 functions, and ignoring localisation, so may well rewrite the whole thing