Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -6,18 +6,13 @@ |
7 | 7 | function __construct( $repoName, $rev, $replyTarget=null ){ |
8 | 8 | global $wgRequest; |
9 | 9 | parent::__construct(); |
10 | | - $this->mPreviewText = false; |
11 | 10 | $this->mRepo = CodeRepository::newFromName( $repoName ); |
12 | | - # If repo is defined, fetch the revision |
13 | | - $this->mRev = $this->mRepo ? |
14 | | - $this->mRepo->getRevision( intval( $rev ) ) : null; |
| 11 | + $this->mRev = $this->mRepo ? $this->mRepo->getRevision( intval( $rev ) ) : null; |
| 12 | + $this->mPreviewText = false; |
15 | 13 | # URL params... |
16 | | - $this->mAddTags = $this->splitTags( $wgRequest->getText( 'wpTag' ) ); |
17 | | - $this->mRemoveTags = $this->splitTags( $wgRequest->getText( 'wpRemoveTag' ) ); |
| 14 | + $this->mAddTags = $wgRequest->getText( 'wpTag' ); |
| 15 | + $this->mRemoveTags =$wgRequest->getText( 'wpRemoveTag' ); |
18 | 16 | $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(); |
22 | 17 | $this->jumpToNext = $wgRequest->getCheck('wpSaveAndNext'); |
23 | 18 | $this->mReplyTarget = $replyTarget ? |
24 | 19 | (int)$replyTarget : $wgRequest->getIntOrNull( 'wpParent' ); |
— | — | @@ -37,6 +32,8 @@ |
38 | 33 | $view->execute(); |
39 | 34 | return; |
40 | 35 | } |
| 36 | + $this->mAddTags = $this->splitTags( $this->mAddTags ); |
| 37 | + $this->mRemoveTags = $this->splitTags( $this->mRemoveTags ); |
41 | 38 | $this->mStatus = $this->mStatus ? $this->mStatus : $this->mRev->getStatus(); |
42 | 39 | |
43 | 40 | $redirectOnPost = $this->checkPostings(); |