Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | |
84 | 84 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
85 | 85 | $link = $this->skin->makeKnownLinkObj( $title, null, 'redirect=no&forreview=1' ); |
86 | | - $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('hist'), 'action=history&forreview=1' ); |
| 86 | + $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('hist'), 'action=history' ); |
87 | 87 | $css = $stxt = $review = $underReview = ''; |
88 | 88 | if( !is_null($size = $row->page_len) ) { |
89 | 89 | $stxt = ($size == 0) |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -81,8 +81,12 @@ |
82 | 82 | } |
83 | 83 | |
84 | 84 | public static function markUnderReview( &$output, &$article, &$title, &$user, &$request ) { |
| 85 | + $action = $request->getVal( 'action', 'view' ); |
| 86 | + $reviewing = ( $action == 'history' ); // default |
| 87 | + if( $action == 'view' && ($request->getInt('forreview') || $request->getInt('rcid')) ) |
| 88 | + $reviewing = true; |
85 | 89 | # Set a key to note that someone is viewing this |
86 | | - if( $request->getInt('forreview') && $user->isAllowed('review') ) { |
| 90 | + if( $reviewing && $user->isAllowed('review') ) { |
87 | 91 | global $wgMemc; |
88 | 92 | $key = wfMemcKey( 'unreviewedPages', 'underReview', $title->getArticleId() ); |
89 | 93 | $wgMemc->set( $key, '1', 20*60 ); // 20 min |