mirror of
https://github.com/getgrav/grav.git
synced 2026-02-21 05:58:01 +01:00
Grav 1.7: Fixed prev/next page missing pages if pagination was turned on in page header
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* Support customizable null character replacement in `CSVFormatter::decode()`
|
||||
1. [](#bugfix)
|
||||
* Fixed wrong Grav param separator when using `Route` class
|
||||
* Grav 1.7: Fixed prev/next page missing pages if pagination was turned on in page header
|
||||
|
||||
# v1.7.0-beta.9
|
||||
## 09/26/2019
|
||||
|
||||
@@ -2032,7 +2032,7 @@ class Page implements PageInterface
|
||||
$this->path = dirname($var, 2);
|
||||
}
|
||||
|
||||
return $this->path . '/' . $this->folder . '/' . ($this->name ?: '');
|
||||
return rtrim($this->path . '/' . $this->folder . '/' . ($this->name() ?: ''), '/');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2602,6 +2602,9 @@ class Page implements PageInterface
|
||||
throw new \InvalidArgumentException('Argument should be either header variable name or array of parameters');
|
||||
}
|
||||
|
||||
if (!$pagination) {
|
||||
$params['pagination'] = false;
|
||||
}
|
||||
$context = [
|
||||
'pagination' => $pagination,
|
||||
'self' => $this
|
||||
|
||||
Reference in New Issue
Block a user