Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #54 from fabianmichael/patch-1
Browse files Browse the repository at this point in the history
Fix error thrown for files, which are children of `$site`
  • Loading branch information
bnomei authored Oct 23, 2020
2 parents e020296 + 818f91d commit d827aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/AutoIDProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ private function itemFromSite($object): array
private function itemFromFile($object): array
{
return [
'page' => $object->page()->id(),
'diruri' => $object->page()->diruri() . '@' . $object->filename(),
'page' => $object->parent()->id(),
'diruri' => $object->parent()->diruri() . '@' . $object->filename(),
'filename' => $object->filename(),
'modified' => $object->modified(),
'kind' => AutoIDItem::KIND_FILE,
Expand Down

0 comments on commit d827aa9

Please sign in to comment.