Skip to content

Commit 63f66ac

Browse files
Update Document.php
1 parent 8095216 commit 63f66ac

File tree

1 file changed

+2
-2
lines changed
  • astroid/astroid-framework/framework/library/astroid

1 file changed

+2
-2
lines changed

astroid/astroid-framework/framework/library/astroid/Document.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function __construct()
4040

4141

4242
$template = Framework::getTemplate();
43-
$this->addLayoutPath(JPATH_LIBRARIES . '/astroid/framework/frontend/');
4443
$this->addLayoutPath(JPATH_SITE . '/templates/' . $template->template . '/html/frontend/');
4544
}
4645

@@ -56,7 +55,8 @@ public function include($section, $data = [], $return = false)
5655
if (Framework::isAdmin() && file_exists(JPATH_LIBRARIES . '/astroid/framework/layouts/' . $name . '.php')) {
5756
$path = JPATH_LIBRARIES . '/astroid/framework/layouts';
5857
} else {
59-
$layout_paths = array_reverse(self::$_layout_paths);
58+
$layout_paths = self::$_layout_paths;
59+
$layout_paths[] = JPATH_LIBRARIES . '/astroid/framework/frontend/';
6060
foreach ($layout_paths as $layout_path) {
6161
$layout_path = substr($layout_path, -1) == '/' ? $layout_path : $layout_path . '/';
6262
if (file_exists($layout_path . $name . '.php')) {

0 commit comments

Comments
 (0)