Skip to content

Commit 8095216

Browse files
Update Document.php
1 parent af7541a commit 8095216

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public function include($section, $data = [], $return = false)
5656
if (Framework::isAdmin() && file_exists(JPATH_LIBRARIES . '/astroid/framework/layouts/' . $name . '.php')) {
5757
$path = JPATH_LIBRARIES . '/astroid/framework/layouts';
5858
} else {
59-
foreach (self::$_layout_paths as $layout_path) {
59+
$layout_paths = array_reverse(self::$_layout_paths);
60+
foreach ($layout_paths as $layout_path) {
6061
$layout_path = substr($layout_path, -1) == '/' ? $layout_path : $layout_path . '/';
6162
if (file_exists($layout_path . $name . '.php')) {
6263
$path = $layout_path;

0 commit comments

Comments
 (0)