public function showPatrolFooter() {
$request = $this->getContext()->getRequest();
$outputPage = $this->getContext()->getOutput();
+ $user = $this->getContext()->getUser();
$rcid = $request->getVal( 'rcid' );
if ( !$rcid || !$this->getTitle()->quickUserCan( 'patrol' ) ) {
return;
}
- $token = $request->getUser()->getEditToken( $rcid );
+ $token = $user->getEditToken( $rcid );
$outputPage->preventClickjacking();
$outputPage->addHTML(
* Revision as of \<date\>; view current revision
* \<- Previous version | Next Version -\>
*
- * @param $oldid String: revision ID of this article revision
+ * @param $oldid int: revision ID of this article revision
*/
public function setOldSubtitle( $oldid = 0 ) {
if ( !wfRunHooks( 'DisplayOldSubtitle', array( &$this, &$oldid ) ) ) {