When any notice shall be required by law to be published by a public officer in relation to public business, in pursuance of law, the reasonable expense thereof shall be allowed and paid out of the state or county treasury, as the case may require.
715 ILCS 5/8