r51331 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51330‎ | r51331 | r51332 >
Date:09:40, 2 June 2009
Author:aaron
Status:ok
Tags:
Comment:
Break long lines
Modified paths:
  • /trunk/phase3/includes/specials/SpecialRevisiondelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php
@@ -170,11 +170,13 @@
171171 $qc = $this->getLogQueryCond();
172172 # Show relevant lines from the deletion log
173173 $wgOut->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" );
174 - LogEventsList::showLogExtract( $wgOut, 'delete', $this->targetObj->getPrefixedText(), '', 25, $qc );
 174+ LogEventsList::showLogExtract( $wgOut, 'delete',
 175+ $this->targetObj->getPrefixedText(), '', 25, $qc );
175176 # Show relevant lines from the suppression log
176177 if( $wgUser->isAllowed( 'suppressionlog' ) ) {
177178 $wgOut->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'suppress' ) ) . "</h2>\n" );
178 - LogEventsList::showLogExtract( $wgOut, 'suppress', $this->targetObj->getPrefixedText(), '', 25, $qc );
 179+ LogEventsList::showLogExtract( $wgOut, 'suppress',
 180+ $this->targetObj->getPrefixedText(), '', 25, $qc );
179181 }
180182 }
181183
@@ -293,7 +295,8 @@
294296 if ( $this->typeName == 'logging' ) {
295297 $wgOut->addWikiMsg( 'logdelete-selected', $wgLang->formatNum( count($this->ids) ) );
296298 } else {
297 - $wgOut->addWikiMsg( 'revdelete-selected', $this->targetObj->getPrefixedText(), count( $this->ids ) );
 299+ $wgOut->addWikiMsg( 'revdelete-selected',
 300+ $this->targetObj->getPrefixedText(), count( $this->ids ) );
298301 }
299302
300303 $bitfields = 0;
@@ -734,7 +737,8 @@
735738 $logParams = $this->getLogParams( $params );
736739 // Actually add the deletion log entry
737740 $log = new LogPage( $logType );
738 - $logid = $log->addEntry( $this->getLogAction(), $params['title'], $params['comment'], $logParams );
 741+ $logid = $log->addEntry( $this->getLogAction(), $params['title'],
 742+ $params['comment'], $logParams );
739743 // Allow for easy searching of deletion log items for revision/log items
740744 $log->addRelations( $field, $params['ids'], $logid );
741745 }
@@ -1032,7 +1036,8 @@
10331037 ),
10341038 array(
10351039 'rc_this_oldid' => $this->revision->getId(), // condition
1036 - 'rc_timestamp' => $dbw->timestamp( $this->revision->getTimestamp() ), // non-unique index
 1040+ // non-unique timestamp index
 1041+ 'rc_timestamp' => $dbw->timestamp( $this->revision->getTimestamp() ),
10371042 ),
10381043 __METHOD__
10391044 );

Status & tagging log