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

I have a requirement where this extension fits well, but I am not able to get it working. I am getting following Warining and error:

PHP Warning: Missing argument 2 for PostEditHooks::onMakeGlobalVariablesScript...in PostEdit.hooks.php

PHP Fatal error: Call to a member function getRequest on a non-object...in PostEdit.hooks.php

Seems the $out parameter passed to onMakeGlobalVariablesScript function donot hold any object to call the getRequest function. I am using MW 1.18.2 Please advise on how I can resolve this, link to new bug free version or suggest any alternate hook that I can refer. Many Thanks!

Shrinivas Gangal