r43762 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43761‎ | r43762 | r43763 >
Date:14:26, 20 November 2008
Author:aaron
Status:resolved (Comments)
Tags:
Comment:
Fix bad XHTML
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevisionView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevisionView.php
@@ -6,13 +6,18 @@
77 function __construct( $repoName, $rev, $replyTarget=null ){
88 global $wgRequest;
99 parent::__construct();
 10+ $this->mPreviewText = false;
1011 $this->mRepo = CodeRepository::newFromName( $repoName );
11 - $this->mRev = $this->mRepo ? $this->mRepo->getRevision( intval( $rev ) ) : null;
12 - $this->mPreviewText = false;
 12+ # If repo is defined, fetch the revision
 13+ $this->mRev = $this->mRepo ?
 14+ $this->mRepo->getRevision( intval( $rev ) ) : null;
1315 # URL params...
14 - $this->mAddTags = $wgRequest->getText( 'wpTag' );
15 - $this->mRemoveTags =$wgRequest->getText( 'wpRemoveTag' );
 16+ $this->mAddTags = $this->splitTags( $wgRequest->getText( 'wpTag' ) );
 17+ $this->mRemoveTags = $this->splitTags( $wgRequest->getText( 'wpRemoveTag' ) );
1618 $this->mStatus = $wgRequest->getText('wpStatus');
 19+ # Get status from URL; if not set, then try the SVN revision
 20+ $this->mStatus = ($this->mStatus || !$this->mRev) ?
 21+ $this->mStatus : $this->mRev->getStatus();
1722 $this->jumpToNext = $wgRequest->getCheck('wpSaveAndNext');
1823 $this->mReplyTarget = $replyTarget ?
1924 (int)$replyTarget : $wgRequest->getIntOrNull( 'wpParent' );
@@ -32,8 +37,6 @@
3338 $view->execute();
3439 return;
3540 }
36 - $this->mAddTags = $this->splitTags( $this->mAddTags );
37 - $this->mRemoveTags = $this->splitTags( $this->mRemoveTags );
3841 $this->mStatus = $this->mStatus ? $this->mStatus : $this->mRev->getStatus();
3942
4043 $redirectOnPost = $this->checkPostings();
@@ -102,6 +105,7 @@
103106 if( $changes ) {
104107 $html .= "<h2 id='code-changes'>". wfMsgHtml( 'code-prop-changes' ) ."</h2>\n" . $changes;
105108 }
 109+ $html .= xml::closeElement( 'form' );
106110
107111 $wgOut->addHTML( $html );
108112 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r44479Partial revert of r43762 "Fix bad XHTML"...brion23:44, 11 December 2008

Comments

#Comment by Brion VIBBER (talk | contribs)   23:45, 11 December 2008

Partially reverted in r44479 -- reordering of the tag stuff caused fatal errors in path search view and some others.

Status & tagging log