Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -44,9 +44,9 @@ |
45 | 45 | 'code-rev-date' => $wgLang->timeanddate( $this->mRev->getTimestamp() ), |
46 | 46 | 'code-rev-author' => $this->authorLink( $this->mRev->getAuthor() ), |
47 | 47 | 'code-rev-status' => $this->statusForm(), |
| 48 | + 'code-rev-tags' => $this->tagForm(), |
48 | 49 | 'code-rev-message' => $this->formatMessage( $this->mRev->getMessage() ), |
49 | 50 | 'code-rev-paths' => $paths, |
50 | | - 'code-rev-tags' => $this->tagForm(), |
51 | 51 | ); |
52 | 52 | $special = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName().'/'.$this->mRev->getId() ); |
53 | 53 | |
— | — | @@ -167,11 +167,14 @@ |
168 | 168 | function tagForm() { |
169 | 169 | global $wgUser; |
170 | 170 | $tags = $this->mRev->getTags(); |
171 | | - $list = implode( ", ", |
172 | | - array_map( |
173 | | - array( $this, 'formatTag' ), |
174 | | - $tags ) |
175 | | - ) . ' '; |
| 171 | + $list = ''; |
| 172 | + if( count($tags) ) { |
| 173 | + $list = implode( ", ", |
| 174 | + array_map( |
| 175 | + array( $this, 'formatTag' ), |
| 176 | + $tags ) |
| 177 | + ) . ' '; |
| 178 | + } |
176 | 179 | if( $wgUser->isAllowed( 'codereview-add-tag' ) ) { |
177 | 180 | $list .= $this->addTagForm(); |
178 | 181 | } |