Skip to content

Commit

Permalink
in saver if no editInfo is explictly passed fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed Dec 14, 2015
1 parent 13738d8 commit 2213ba3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Api/Service/RevisionSaver.php
Expand Up @@ -89,7 +89,11 @@ public function save( Revision $revision, EditInfo $editInfo = null ) {
$params['new'] = $entity->getType();
}

$editInfo = $revision->getEditInfo();
// If no editInfo is explicitly passed call back to the one in the revision?
if( $editInfo === null ) {
$editInfo = $revision->getEditInfo();
}

if( $editInfo->getBot() ) {
$params['bot'] = true;
}
Expand Down

0 comments on commit 2213ba3

Please sign in to comment.