From 4e8e5a794f8dc71b7c02991894659bc7bc5373dc Mon Sep 17 00:00:00 2001 From: Stephane Bisson Date: Tue, 12 Jul 2016 09:20:58 -0400 Subject: [PATCH] Generate notifications: fix rollback session failure Change-Id: Ifbd90549accdbd0edeb979d27583e8f03f1366e5 --- maintenance/generateSampleNotifications.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/maintenance/generateSampleNotifications.php b/maintenance/generateSampleNotifications.php index 7e1b94882..13776a30f 100644 --- a/maintenance/generateSampleNotifications.php +++ b/maintenance/generateSampleNotifications.php @@ -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" ); $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 ); if ( $errors ) { - $errorAsString = serialize( $errors ); - $this->error( $errorAsString ); + $this->error( serialize( $errors ) ); } }