You're right. Still not 100% happy with that approach. An admin shouldn't have to edit PHP files directly. 

(For the reference: I deleted the other similar comments to have less comments in this PR)