http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88584
Revision: 88584
Author: reedy
Date: 2011-05-22 17:43:31 +0000 (Sun, 22 May 2011)
Log Message:
-----------
Allow filtering comments (and prop changes) on usernames with spaces in them
Modified Paths:
--------------
trunk/extensions/CodeReview/ui/CodeCommentsListView.php
trunk/extensions/CodeReview/ui/CodeStatusChangeListView.php
Modified: trunk/extensions/CodeReview/ui/CodeCommentsListView.php
===================================================================
--- trunk/extensions/CodeReview/ui/CodeCommentsListView.php 2011-05-22
17:34:35 UTC (rev 88583)
+++ trunk/extensions/CodeReview/ui/CodeCommentsListView.php 2011-05-22
17:43:31 UTC (rev 88584)
@@ -35,7 +35,7 @@
$query['conds']['cp_path'] = $this->mView->mPath;
}
if( $this->mView->mAuthor ) {
- $query['conds']['cc_user_text'] = $this->mView->mAuthor;
+ $query['conds']['cc_user_text'] = User::newFromName(
$this->mView->mAuthor )->getName();
}
return $query;
Modified: trunk/extensions/CodeReview/ui/CodeStatusChangeListView.php
===================================================================
--- trunk/extensions/CodeReview/ui/CodeStatusChangeListView.php 2011-05-22
17:34:35 UTC (rev 88583)
+++ trunk/extensions/CodeReview/ui/CodeStatusChangeListView.php 2011-05-22
17:43:31 UTC (rev 88584)
@@ -39,7 +39,7 @@
$query['conds']['cp_path'] = $this->mView->mPath;
}
if ( $this->mView->mAuthor ) {
- $query['conds']['cpc_user_text'] =
$this->mView->mAuthor;
+ $query['conds']['cpc_user_text'] = User::newFromName(
$this->mView->mAuthor )->getName();
}
return $query;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs