Skip to content

Commit

Permalink
Look also in the tmpl folder to get the view form for the menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed May 23, 2017
1 parent bef435e commit 3d618c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion administrator/components/com_menus/Model/Item.php
Expand Up @@ -1102,7 +1102,8 @@ protected function preprocessForm(\JForm $form, $data, $group = 'content')
// Check for the layout XML file. Use standard xml file if it exists.
$tplFolders = array(
$base . '/views/' . $view . '/tmpl',
$base . '/view/' . $view . '/tmpl'
$base . '/view/' . $view . '/tmpl',
$base . '/tmpl/' . $view
);
$path = \JPath::find($tplFolders, $layout . '.xml');

Expand Down

0 comments on commit 3d618c5

Please sign in to comment.