Except for a mayor or chief executive officer of a municipal corporation, all officers of a municipal corporation shall take an oath before the mayor or chief executive officer of the municipal corporation if an oath is required by State or local law.