Yes, that's essentially the idea. The PaymentManager() function shouldn't be given that $request variable. You should remove it and the reference to request within the function.
For what it's worth, to apply patches, you use the 'patch' command line tool available in most Linux distributions. You would normally save that file in the root of your OJS installation and then run:
- Code: Select all
patch -p1 < thePatchFile
It is safe to delete the patch file afterwards. 'patch' is also available in other UNIX operating sytems, although the version that ships with Solaris has problems with unified diffs, I believe.