Fix a bug happening when importing links with override option
The shorturl would be set to null, generating a lot of warnings and breaking permalinks
This commit is contained in:
parent
a4af59f471
commit
28794b69cb
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ public static function import($post, $files, $linkDb, $conf, $history)
|
|||
$newLink['id'] = $existingLink['id'];
|
||||
$newLink['created'] = $existingLink['created'];
|
||||
$newLink['updated'] = new DateTime();
|
||||
$newLink['shorturl'] = $existingLink['shorturl'];
|
||||
$linkDb[$existingLink['id']] = $newLink;
|
||||
$importCount++;
|
||||
$overwriteCount++;
|
||||
|
|
Loading…
Reference in a new issue