mirror of
https://github.com/getgrav/grav.git
synced 2026-02-10 00:27:46 +01:00
Fix for Page::translatedLanguages() #2163
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* Added deprecation notices for features which will be removed in Grav 2.0
|
||||
1. [](#bugfix)
|
||||
* Allow `$page->slug()` to be called before `$page->init()` without breaking the page
|
||||
* Fix for `Page::translatedLanguages()` to use routes always [#2163](https://github.com/getgrav/grav/issues/2163)
|
||||
|
||||
# v1.5.1
|
||||
## 08/23/2018
|
||||
|
||||
@@ -195,7 +195,7 @@ class Page implements PageInterface
|
||||
|
||||
$route = isset($aPage->header()->routes['default']) ? $aPage->header()->routes['default'] : $aPage->rawRoute();
|
||||
if (!$route) {
|
||||
$route = $aPage->slug();
|
||||
$route = $aPage->route();
|
||||
}
|
||||
|
||||
if ($onlyPublished && !$aPage->published()) {
|
||||
|
||||
Reference in New Issue
Block a user