r45268 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45267‎ | r45268 | r45269 >
Date:00:51, 1 January 2009
Author:aaron
Status:ok (Comments)
Tags:
Comment:
(bug 16853) Redirect to code rev url with comment fragment and post
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevisionCommitter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevisionCommitter.php
@@ -57,7 +57,8 @@
5858 $redirTitle = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() );
5959 }
6060 } else {
61 - $redirTitle = $this->revLink();
 61+ # $redirTarget already set for comments
 62+ $redirTitle = $redirTarget ? $redirTarget : $this->revLink();
6263 }
6364 }
6465 $wgOut->redirect( $redirTitle->getFullUrl() );

Comments

#Comment by Brion VIBBER (talk | contribs)   00:54, 1 January 2009

Woohoo! thanks! :D

Status & tagging log