r43467 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43466‎ | r43467 | r43468 >
Date:23:39, 13 November 2008
Author:aaron
Status:ok
Tags:
Comment:
Move log down
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevisionView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevisionView.php
@@ -88,11 +88,6 @@
8989 "});</script>\n";
9090 }
9191
92 - $changes = $this->formatPropChanges();
93 - if( $changes ) {
94 - $html .= "<h2 id='code-changes'>". wfMsgHtml( 'code-prop-changes' ) ."</h2>\n" . $changes;
95 - }
96 -
9792 $html .= '<div>' .
9893 Xml::submitButton( wfMsg( 'code-rev-submit' ), array( 'name' => 'wpSave' ) ) .
9994 ' ' .
@@ -101,6 +96,11 @@
10297 Xml::submitButton( wfMsg( 'code-rev-comment-preview' ), array( 'name' => 'wpPreview' ) ) .
10398 '</div>' .
10499 '</form>';
 100+
 101+ $changes = $this->formatPropChanges();
 102+ if( $changes ) {
 103+ $html .= "<h2 id='code-changes'>". wfMsgHtml( 'code-prop-changes' ) ."</h2>\n" . $changes;
 104+ }
105105
106106 $wgOut->addHTML( $html );
107107 }
@@ -206,10 +206,8 @@
207207 if( $wgUser->isAllowed( 'codereview-set-status' ) ) {
208208 $repo = $this->mRepo->getName();
209209 $rev = $this->mRev->getId();
210 - return
211 - Xml::openElement( 'select', array( 'name' => 'wpStatus' ) ) .
212 - $this->buildStatusList() .
213 - '</select>';
 210+ return Xml::openElement( 'select', array( 'name' => 'wpStatus' ) ) .
 211+ $this->buildStatusList() . xml::closeElement('select');
214212 } else {
215213 return htmlspecialchars( $this->statusDesc( $this->mRev->getStatus() ) );
216214 }
@@ -219,10 +217,7 @@
220218 $states = CodeRevision::getPossibleStates();
221219 $out = '';
222220 foreach( $states as $state ) {
223 - $list[$state] = $this->statusDesc( $state );
224 - $out .= Xml::option(
225 - $this->statusDesc( $state ),
226 - $state,
 221+ $out .= Xml::option( $this->statusDesc( $state ), $state,
227222 $this->mRev->getStatus() == $state );
228223 }
229224 return $out;

Status & tagging log