Index: trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php |
— | — | @@ -50,6 +50,7 @@ |
51 | 51 | if ( $this->article == null ) { |
52 | 52 | throw new MWException( 'FlaggedPageView has no context article!' ); |
53 | 53 | } |
| 54 | + // @TODO: store whole request context |
54 | 55 | $this->out = RequestContext::getMain()->getOutput(); |
55 | 56 | } |
56 | 57 | } |
— | — | @@ -1315,9 +1316,9 @@ |
1316 | 1317 | * @return bool |
1317 | 1318 | */ |
1318 | 1319 | protected function pageWriteOpRequested() { |
1319 | | - global $wgRequest, $mediaWiki; |
| 1320 | + global $wgRequest; |
1320 | 1321 | # Hack for bug 16734 (some actions update and view all at once) |
1321 | | - $action = $mediaWiki->getAction(); |
| 1322 | + $action = $wgRequest->getVal( 'action' ); |
1322 | 1323 | if ( $action === 'rollback' ) { |
1323 | 1324 | return true; |
1324 | 1325 | } elseif ( $action === 'delete' && $wgRequest->wasPosted() ) { |