mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-07-01 17:43:42 +00:00
Bug fix missing info required for pathway.
git-svn-id: http://joomlacode.org/svn/joomla/development/trunk@12405 6f6e1ebd-4c2b-0410-823f-f34bde69bce9
This commit is contained in:
parent
4256de8225
commit
a1cdd904d8
|
@ -52,7 +52,18 @@ class JMenuSite extends JMenu
|
||||||
|
|
||||||
foreach ($menus as &$menu)
|
foreach ($menus as &$menu)
|
||||||
{
|
{
|
||||||
//Create the query array
|
// Get parent information
|
||||||
|
$parent_tree = array();
|
||||||
|
if (($parent = $menu->parent_id) && (isset($menus[$parent])) &&
|
||||||
|
(is_object($menus[$parent])) && (isset($menus[$parent]->route)) && isset($menus[$parent]->tree)) {
|
||||||
|
$parent_tree = $menus[$parent]->tree;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create tree.
|
||||||
|
array_push($parent_tree, $menu->id);
|
||||||
|
$menu->tree = $parent_tree;
|
||||||
|
|
||||||
|
// Create the query array.
|
||||||
$url = str_replace('index.php?', '', $menu->link);
|
$url = str_replace('index.php?', '', $menu->link);
|
||||||
if (strpos($url, '&') !== false) {
|
if (strpos($url, '&') !== false) {
|
||||||
$url = str_replace('&','&',$url);
|
$url = str_replace('&','&',$url);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user