Thread:Project:Support desk/How to get oldid of a page?

[]

Is there anyway of getting the 'oldid' or 'direction' parameters with the arguments passed to the hooks 'getUserPermissionErrors' or 'performMediawikiAction' ?

I'm unable to get a proper URL from $title,$request,etc. It's like there is some kind of hash applied to the request URL and it's impossible to strip out the parameter values that I'm looking for. For instance, $request->getRequestURL doesn't yield the original URL path such as 'http://www.example.com/mediawiki/index.php?title=Main_Page&oldid=617'

My setup:


 * mw 1.23
 * apache server
 * API must stay disabled

Any ideas are appreciated.