Index: trunk/extensions/CodeReview/ui/CodeRevisionCommitter.php |
— | — | @@ -54,19 +54,20 @@ |
55 | 55 | |
56 | 56 | // Return to rev page |
57 | 57 | if ( !$redirTarget ) { |
| 58 | + // Was "next & unresolved" clicked? |
58 | 59 | if ( $this->jumpToNext ) { |
59 | 60 | $next = $this->mRev->getNextUnresolved( $this->mPath ); |
60 | 61 | if ( $next ) { |
61 | | - $redirTitle = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/' . $next ); |
| 62 | + $redirTarget = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/' . $next ); |
62 | 63 | } else { |
63 | | - $redirTitle = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ); |
| 64 | + $redirTarget = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ); |
64 | 65 | } |
65 | 66 | } else { |
66 | 67 | # $redirTarget already set for comments |
67 | | - $redirTitle = $redirTarget ? $redirTarget : $this->revLink(); |
| 68 | + $redirTarget = $this->revLink(); |
68 | 69 | } |
69 | 70 | } |
70 | | - $wgOut->redirect( $redirTitle->getFullUrl( array('path' => $this->mPath) ) ); |
| 71 | + $wgOut->redirect( $redirTarget->getFullUrl( array('path' => $this->mPath) ) ); |
71 | 72 | } |
72 | 73 | |
73 | 74 | public function validPost( $permission ) { |