mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-18 19:01:28 +00:00
Generate notifications: fix rollback session failure
Change-Id: Ifbd90549accdbd0edeb979d27583e8f03f1366e5
This commit is contained in:
parent
e63b8799a4
commit
4e8e5a794f
|
@ -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 );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue