FIX: fix order of pages on homepage
This commit is contained in:
@@ -58,7 +58,15 @@ abstract class OnePage implements TemplateHandler
|
||||
$pages = $pages->where('status', Content::STATUS_PUBLIC);
|
||||
}
|
||||
|
||||
self:: $homepagePages = $pages->get();
|
||||
$homepagePages = $pages->get()
|
||||
->getDictionary();
|
||||
|
||||
foreach ($pageIds as $pageId) {
|
||||
if (!isset($homepagePages[$pageId]))
|
||||
continue;
|
||||
|
||||
self::$homepagePages[] = $homepagePages[$pageId];
|
||||
}
|
||||
|
||||
self::$homepagePagesInitialized = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user