Skip to content

Commit 4500ebb

Browse files
Initialize user from session
If the import script is run from the command line, there is no session, and the edit is still credited to 127.0.0.1. However, if there is a session – for example, if the import is run from a special page (#25) – this ensures that the correct user is used.
1 parent 3c79baa commit 4500ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EntityImporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(
5353
$this->logger = $logger;
5454

5555
$this->idParser = new BasicEntityIdParser();
56-
$this->importUser = User::newFromId( 0 );
56+
$this->importUser = User::newFromSession();
5757
$this->batchSize = 10;
5858
}
5959

0 commit comments

Comments
 (0)