Generate notifications: fix rollback session failure

Change-Id: Ifbd90549accdbd0edeb979d27583e8f03f1366e5
This commit is contained in:
Stephane Bisson 2016-07-12 09:20:58 -04:00
parent e63b8799a4
commit 4e8e5a794f

View file

@ -239,11 +239,10 @@ class GenerateSampleNotifications extends Maintenance {
$this->addToPageContent( $moai2, $user, "\nadding a line here\n" ); $this->addToPageContent( $moai2, $user, "\nadding a line here\n" );
$this->addToPageContent( $moai2, $user, "\nadding a line here\n" ); $this->addToPageContent( $moai2, $user, "\nadding a line here\n" );
$details = array(); $details = array();
$token = $agent->getEditToken( array( $moai2->getPrefixedText(), $user->getName() ), null ); $token = $agent->getEditToken( 'rollback', null );
$errors = $page->doRollback( $user->getName(), 'generating reverted notification', $token, false, $details, $agent ); $errors = $page->doRollback( $user->getName(), 'generating reverted notification', $token, false, $details, $agent );
if ( $errors ) { if ( $errors ) {
$errorAsString = serialize( $errors ); $this->error( serialize( $errors ) );
$this->error( $errorAsString );
} }
} }