Index: trunk/extensions/Oversight/HideRevision_body.php |
— | — | @@ -379,7 +379,7 @@ |
380 | 380 | } |
381 | 381 | |
382 | 382 | function showList( $page, $user, $offender ) { |
383 | | - global $wgOut, $wgScript, $wgTitle; |
| 383 | + global $wgOut, $wgScript; |
384 | 384 | |
385 | 385 | $title = Title::newFromURL( $page ); |
386 | 386 | $u = User::newFromName( $user ); |
— | — | @@ -388,7 +388,7 @@ |
389 | 389 | $wgOut->addHTML( |
390 | 390 | Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get', 'id' => 'mw-hiderevision-form' ) ) . |
391 | 391 | Xml::fieldset( wfMsg( 'oversight-legend' ) ) . |
392 | | - Html::hidden( 'title', $wgTitle->getPrefixedDbKey() ) . |
| 392 | + Html::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) . |
393 | 393 | Xml::inputLabel( wfMsg( 'oversight-oversighter' ), 'user', 'mw-oversight-user', 20, $user ) . ' ' . |
394 | 394 | Xml::inputLabel( wfMsg( 'speciallogtitlelabel' ), 'page', 'mw-oversight-page', 25, $page ) . ' ' . |
395 | 395 | Xml::inputLabel( wfMsg( 'oversight-offender' ), 'author', 'mw-oversight-author', 20, $offender ) . ' ' . |