Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php |
— | — | @@ -198,9 +198,9 @@ |
199 | 199 | 'revreview-filter-unapproved' => 'Unapproved', |
200 | 200 | 'revreview-filter-auto' => 'Automatic', |
201 | 201 | 'revreview-filter-manual' => 'Manual', |
202 | | - 'revreview-filter-level-0' => 'Sighted versions', |
203 | | - 'revreview-filter-level-1' => 'Quality versions', |
204 | | - 'revreview-filter-level-2' => 'Pristine versions', |
| 202 | + 'revreview-filter-level-0' => 'Sighted', |
| 203 | + 'revreview-filter-level-1' => 'Quality', |
| 204 | + 'revreview-filter-level-2' => 'Pristine', |
205 | 205 | 'revreview-statusfilter' => 'Status:', |
206 | 206 | 'revreview-typefilter' => 'Type:', |
207 | 207 | 'revreview-tagfilter' => 'Tag:', |
Index: trunk/extensions/FlaggedRevs/specialpages/QualityOversight_body.php |
— | — | @@ -22,6 +22,10 @@ |
23 | 23 | $this->level = $wgRequest->getInt( 'level' ); |
24 | 24 | $this->status = $wgRequest->getIntOrNull( 'status' ); |
25 | 25 | $this->automatic = $wgRequest->getIntOrNull( 'automatic' ); |
| 26 | + $this->user = $wgRequest->getVal( 'user' ); |
| 27 | + # Check if the user exists |
| 28 | + $usertitle = Title::makeTitleSafe( NS_USER, $this->user ); |
| 29 | + $u = $usertitle ? User::idFromName( $this->user ) : false; |
26 | 30 | |
27 | 31 | # Show options |
28 | 32 | $this->showForm(); |
— | — | @@ -32,15 +36,18 @@ |
33 | 37 | return; |
34 | 38 | } |
35 | 39 | |
36 | | - # Get cutoff time |
37 | 40 | $dbr = wfGetDB( DB_SLAVE ); |
38 | | - $cutoff_unixtime = time() - $wgFlaggedRevsOversightAge; |
39 | | - $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime % 86400); |
40 | | - $cutoff = $dbr->addQuotes( $dbr->timestamp( $cutoff_unixtime ) ); |
| 41 | + # Get extra query conds |
| 42 | + $conds = array( 'log_namespace' => $this->namespace, 'log_action' => $actions ); |
| 43 | + # Get cutoff time (mainly for performance) |
| 44 | + if( !$u ) { |
| 45 | + $cutoff_unixtime = time() - $wgFlaggedRevsOversightAge; |
| 46 | + $cutoff = $dbr->addQuotes( $dbr->timestamp( $cutoff_unixtime ) ); |
| 47 | + $conds[] = "log_timestamp >= $cutoff"; |
| 48 | + } |
41 | 49 | # Create a LogPager item to get the results and a LogEventsList item to format them... |
42 | 50 | $loglist = new LogEventsList( $wgUser->getSkin(), $wgOut, 0 ); |
43 | | - $pager = new LogPager( $loglist, 'review', '', '', '', |
44 | | - array( 'log_namespace' => $this->namespace, 'log_action' => $actions, "log_timestamp >= $cutoff" ) ); |
| 51 | + $pager = new LogPager( $loglist, 'review', $this->user, '', '', $conds ); |
45 | 52 | # Insert list |
46 | 53 | $logBody = $pager->getBody(); |
47 | 54 | if( $logBody ) { |
— | — | @@ -64,6 +71,7 @@ |
65 | 72 | Xml::hidden( 'title', $wgTitle->getPrefixedDBKey() ) . |
66 | 73 | FlaggedRevsXML::getNamespaceMenu( $this->namespace ) . ' ' . |
67 | 74 | FlaggedRevsXML::getLevelMenu( $this->level ) . ' ' . |
| 75 | + Xml::inputLabel( wfMsg( 'specialloguserlabel' ), 'user', 'user', 15, $this->user ) . ' ' . |
68 | 76 | FlaggedRevsXML::getStatusFilterMenu( $this->status ) . ' ' . |
69 | 77 | FlaggedRevsXML::getAutoFilterMenu( $this->automatic ) . ' ' . |
70 | 78 | Xml::submitButton( wfMsg( 'go' ) ) . |