r79400 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79399‎ | r79400 | r79401 >
Date:01:06, 1 January 2011
Author:reedy
Status:ok
Tags:
Comment:
Don't need to do a LIKE on the code_path now
Modified paths:
  • /trunk/extensions/CodeReview/ui/CodeReleaseNotes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/ui/CodeReleaseNotes.php
@@ -56,8 +56,7 @@
5757 $where = 'cr_id >= ' . intval( $this->mStartRev );
5858 }
5959 if ( $this->mPath ) {
60 - $where .= ' AND (cr_path ' . $dbr->buildLike( "{$this->mPath}/", $dbr->anyString() );
61 - $where .= ' OR cr_path = ' . $dbr->addQuotes( $this->mPath ) . ')';
 60+ $where .= ' AND cr_path = ' . $dbr->addQuotes( $this->mPath );
6261 }
6362 # Select commits within this range...
6463 $res = $dbr->select( array( 'code_rev', 'code_tags' ),

Status & tagging log