Thread:Extension talk:PostEdit/PHP Fatal error: Call to a member function getRequest() on a non-object/reply

You could try replacing the function with this one (untested, but should work):