Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #89 from foerdeliebe/master
Browse files Browse the repository at this point in the history
fix: changed deprecated Kirby\Toolkit\Query
  • Loading branch information
sylvainjule authored Mar 10, 2024
2 parents 7f6738f + d593075 commit 7ed5add
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pagetable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use Kirby\Toolkit\Query;
use Kirby\Query\Query;
use Kirby\Toolkit\Str;
use Kirby\Toolkit\A;
use Kirby\Toolkit\I18n;
Expand Down Expand Up @@ -89,13 +89,13 @@
}
} else {
// added to support query
$q = new Query($this->query, [
$q = new Query($this->query);
$pages = $q->resolve([
'site' => site(),
'page' => $this->model(),
'pages' => site()->pages(),
'kirby' => kirby()
]);
$pages = $q->result();
}

// loop for the best performance
Expand Down

0 comments on commit 7ed5add

Please sign in to comment.