r84035 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84034‎ | r84035 | r84036 >
Date:17:01, 15 March 2011
Author:ialex
Status:ok
Tags:
Comment:
$wgTitle -> $this->getTitle()
Modified paths:
  • /trunk/extensions/Oversight/HideRevision_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Oversight/HideRevision_body.php
@@ -379,7 +379,7 @@
380380 }
381381
382382 function showList( $page, $user, $offender ) {
383 - global $wgOut, $wgScript, $wgTitle;
 383+ global $wgOut, $wgScript;
384384
385385 $title = Title::newFromURL( $page );
386386 $u = User::newFromName( $user );
@@ -388,7 +388,7 @@
389389 $wgOut->addHTML(
390390 Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get', 'id' => 'mw-hiderevision-form' ) ) .
391391 Xml::fieldset( wfMsg( 'oversight-legend' ) ) .
392 - Html::hidden( 'title', $wgTitle->getPrefixedDbKey() ) .
 392+ Html::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) .
393393 Xml::inputLabel( wfMsg( 'oversight-oversighter' ), 'user', 'mw-oversight-user', 20, $user ) . ' ' .
394394 Xml::inputLabel( wfMsg( 'speciallogtitlelabel' ), 'page', 'mw-oversight-page', 25, $page ) . ' ' .
395395 Xml::inputLabel( wfMsg( 'oversight-offender' ), 'author', 'mw-oversight-author', 20, $offender ) . ' ' .

Status & tagging log