Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -583,7 +583,6 @@ |
584 | 584 | # Set title from request parameters |
585 | 585 | $wgTitle = $this->getTitle(); |
586 | 586 | $action = $this->getAction(); |
587 | | - $user = $this->context->getUser(); |
588 | 587 | |
589 | 588 | # Send Ajax requests to the Ajax dispatcher. |
590 | 589 | if ( $wgUseAjax && $action == 'ajax' ) { |
— | — | @@ -605,8 +604,8 @@ |
606 | 605 | $cache->loadFromFileCache( $this->context ); |
607 | 606 | } |
608 | 607 | # Do any stats increment/watchlist stuff |
609 | | - $article = WikiPage::factory( $this->getTitle() ); |
610 | | - $article->doViewUpdates( $user ); |
| 608 | + $page = WikiPage::factory( $this->getTitle() ); |
| 609 | + $page->doViewUpdates( $this->context->getUser() ); |
611 | 610 | # Tell OutputPage that output is taken care of |
612 | 611 | $this->context->getOutput()->disable(); |
613 | 612 | wfProfileOut( 'main-try-filecache' ); |