I am little confused. Where exactly you want this patch?
That patch (you copy-pastes) is for "manufacturer module"; and it should work only within the manufacturer module. Provide me a link from your website where you want this patch for. Also specify what link do you want to be changed.
The administrator has disabled public write access.