r41242 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41241‎ | r41242 | r41243 >
Date:06:33, 25 September 2008
Author:aaron
Status:old
Tags:
Comment:
Break some long lines
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2226,8 +2226,10 @@
22272227 } else {
22282228 $suppress = '';
22292229 }
 2230+ $checkWatch = $wgUser->getBoolOption( 'watchdeletion' ) || $this->mTitle->userIsWatching();
22302231
2231 - $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->mTitle->getLocalURL( 'action=delete' ), 'id' => 'deleteconfirm' ) ) .
 2232+ $form = Xml::openElement( 'form', array( 'method' => 'post',
 2233+ 'action' => $this->mTitle->getLocalURL( 'action=delete' ), 'id' => 'deleteconfirm' ) ) .
22322234 Xml::openElement( 'fieldset', array( 'id' => 'mw-delete-table' ) ) .
22332235 Xml::tags( 'legend', null, wfMsgExt( 'delete-legend', array( 'parsemag', 'escapenoentities' ) ) ) .
22342236 Xml::openElement( 'table' ) .
@@ -2246,13 +2248,14 @@
22472249 Xml::label( wfMsg( 'deleteotherreason' ), 'wpReason' ) .
22482250 "</td>
22492251 <td>" .
2250 - Xml::input( 'wpReason', 60, $reason, array( 'type' => 'text', 'maxlength' => '255', 'tabindex' => '2', 'id' => 'wpReason' ) ) .
 2252+ Xml::input( 'wpReason', 60, $reason, array( 'type' => 'text', 'maxlength' => '255',
 2253+ 'tabindex' => '2', 'id' => 'wpReason' ) ) .
22512254 "</td>
22522255 </tr>
22532256 <tr>
22542257 <td></td>
22552258 <td>" .
2256 - Xml::checkLabel( wfMsg( 'watchthis' ), 'wpWatch', 'wpWatch', $wgUser->getBoolOption( 'watchdeletion' ) || $this->mTitle->userIsWatching(), array( 'tabindex' => '3' ) ) .
 2259+ Xml::checkLabel( wfMsg( 'watchthis' ), 'wpWatch', 'wpWatch', $checkWatch, array( 'tabindex' => '3' ) ) .
22572260 "</td>
22582261 </tr>
22592262 $suppress