Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -460,9 +460,9 @@ |
461 | 461 | /** |
462 | 462 | * Perform one of the "standard" actions |
463 | 463 | * |
464 | | - * @param $article Article |
| 464 | + * @param $page Page |
465 | 465 | */ |
466 | | - private function performAction( Page $article ) { |
| 466 | + private function performAction( Page $page ) { |
467 | 467 | wfProfileIn( __METHOD__ ); |
468 | 468 | |
469 | 469 | $request = $this->context->getRequest(); |
— | — | @@ -471,7 +471,7 @@ |
472 | 472 | $user = $this->context->getUser(); |
473 | 473 | |
474 | 474 | if ( !wfRunHooks( 'MediaWikiPerformAction', |
475 | | - array( $output, $article, $title, $user, $request, $this ) ) ) |
| 475 | + array( $output, $page, $title, $user, $request, $this ) ) ) |
476 | 476 | { |
477 | 477 | wfProfileOut( __METHOD__ ); |
478 | 478 | return; |
— | — | @@ -479,14 +479,14 @@ |
480 | 480 | |
481 | 481 | $act = $this->getAction(); |
482 | 482 | |
483 | | - $action = Action::factory( $act, $article ); |
| 483 | + $action = Action::factory( $act, $page ); |
484 | 484 | if ( $action instanceof Action ) { |
485 | 485 | $action->show(); |
486 | 486 | wfProfileOut( __METHOD__ ); |
487 | 487 | return; |
488 | 488 | } |
489 | 489 | |
490 | | - if ( wfRunHooks( 'UnknownAction', array( $act, $article ) ) ) { |
| 490 | + if ( wfRunHooks( 'UnknownAction', array( $act, $page ) ) ) { |
491 | 491 | $output->showErrorPage( 'nosuchaction', 'nosuchactiontext' ); |
492 | 492 | } |
493 | 493 | |