return;
}
- $act = $this->getAction();
+ $action = $this->getAction();
- $action = Action::factory( $this->getAction(), $article );
- if( $action instanceof Action ){
- $action->execute();
- wfProfileOut( __METHOD__ );
- return;
- }
-
- switch( $act ) {
+ switch( $action ) {
case 'view':
$this->context->output->setSquidMaxage( $this->getVal( 'SquidMaxage' ) );
$article->view();
case 'render':
case 'deletetrackback':
case 'purge':
- $article->$act();
+ $article->$action();
break;
case 'print':
$article->view();
$rdf->show();
}
break;
+ case 'credits':
+ Credits::showPage( $article );
+ break;
case 'submit':
if ( session_id() == '' ) {
// Send a cookie so anons get talk message notifications
$external = $this->context->request->getVal( 'externaledit' );
$section = $this->context->request->getVal( 'section' );
$oldid = $this->context->request->getVal( 'oldid' );
- if ( !$this->getVal( 'UseExternalEditor' ) || $act == 'submit' || $internal ||
+ if ( !$this->getVal( 'UseExternalEditor' ) || $action == 'submit' || $internal ||
$section || $oldid || ( !$this->context->user->getOption( 'externaleditor' ) && !$external ) ) {
$editor = new EditPage( $article );
$editor->submit();
$special->execute( '' );
break;
default:
- if ( wfRunHooks( 'UnknownAction', array( $act, $article ) ) ) {
+ if ( wfRunHooks( 'UnknownAction', array( $action, $article ) ) ) {
$this->context->output->showErrorPage( 'nosuchaction', 'nosuchactiontext' );
}
}