r110246 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110245‎ | r110246 | r110247 >
Date:15:24, 29 January 2012
Author:jeroendedauw
Status:ok
Tags:
Comment:
fix doc and var names
Modified paths:
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -460,9 +460,9 @@
461461 /**
462462 * Perform one of the "standard" actions
463463 *
464 - * @param $article Article
 464+ * @param $page Page
465465 */
466 - private function performAction( Page $article ) {
 466+ private function performAction( Page $page ) {
467467 wfProfileIn( __METHOD__ );
468468
469469 $request = $this->context->getRequest();
@@ -471,7 +471,7 @@
472472 $user = $this->context->getUser();
473473
474474 if ( !wfRunHooks( 'MediaWikiPerformAction',
475 - array( $output, $article, $title, $user, $request, $this ) ) )
 475+ array( $output, $page, $title, $user, $request, $this ) ) )
476476 {
477477 wfProfileOut( __METHOD__ );
478478 return;
@@ -479,14 +479,14 @@
480480
481481 $act = $this->getAction();
482482
483 - $action = Action::factory( $act, $article );
 483+ $action = Action::factory( $act, $page );
484484 if ( $action instanceof Action ) {
485485 $action->show();
486486 wfProfileOut( __METHOD__ );
487487 return;
488488 }
489489
490 - if ( wfRunHooks( 'UnknownAction', array( $act, $article ) ) ) {
 490+ if ( wfRunHooks( 'UnknownAction', array( $act, $page ) ) ) {
491491 $output->showErrorPage( 'nosuchaction', 'nosuchactiontext' );
492492 }
493493

Status & tagging log