Fix for Page::translatedLanguages() #2163

This commit is contained in:
Andy Miller
2018-09-05 19:08:42 -06:00
parent 1808fd3d6e
commit dfabceb3d2
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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()) {