Skip to content

Commit 1a900d1

Browse files
mod_menu bug fix
1 parent 08b1e91 commit 1a900d1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

astroid/astroid-template-one/html/mod_menu/AstroidMenu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$class .= ' default';
2828
}
2929

30-
if ($item->id == $active_id || ($item->type === 'alias' && $item->params->get('aliasoptions') == $active_id))
30+
if ($item->id == $active_id || ($item->type === 'alias' && $item->getParams()->get('aliasoptions') == $active_id))
3131
{
3232
$class .= ' current';
3333
}
@@ -38,7 +38,7 @@
3838
}
3939
elseif ($item->type === 'alias')
4040
{
41-
$aliasToId = $item->params->get('aliasoptions');
41+
$aliasToId = $item->getParams()->get('aliasoptions');
4242

4343
if (count($path) > 0 && $aliasToId == $path[count($path) - 1])
4444
{

astroid/astroid-template-one/html/mod_menu/default_separator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
$linktype = $item->title;
1717

18-
$astroid_menu_options = $item->params->get('astroid_menu_options', []);
18+
$astroid_menu_options = $item->getParams()->get('astroid_menu_options', []);
1919
$astroid_menu_options = (array) $astroid_menu_options;
2020

2121
if ($item->menu_image) {
@@ -26,7 +26,7 @@
2626
$linktype = JHtml::_('image', $item->menu_image, $item->title);
2727
}
2828

29-
if ($item->params->get('menu_text', 1)) {
29+
if ($item->getParams()->get('menu_text', 1)) {
3030
$linktype .= '<span class="image-title">' . $item->title . '</span>';
3131
}
3232
}

astroid/astroid-template-zero/html/mod_menu/AstroidMenu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$class .= ' default';
2828
}
2929

30-
if ($item->id == $active_id || ($item->type === 'alias' && $item->params->get('aliasoptions') == $active_id))
30+
if ($item->id == $active_id || ($item->type === 'alias' && $item->getParams()->get('aliasoptions') == $active_id))
3131
{
3232
$class .= ' current';
3333
}
@@ -38,7 +38,7 @@
3838
}
3939
elseif ($item->type === 'alias')
4040
{
41-
$aliasToId = $item->params->get('aliasoptions');
41+
$aliasToId = $item->getParams()->get('aliasoptions');
4242

4343
if (count($path) > 0 && $aliasToId == $path[count($path) - 1])
4444
{

astroid/astroid-template-zero/html/mod_menu/default_separator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
$linktype = $item->title;
1717

18-
$astroid_menu_options = $item->params->get('astroid_menu_options', []);
18+
$astroid_menu_options = $item->getParams()->get('astroid_menu_options', []);
1919
$astroid_menu_options = (array) $astroid_menu_options;
2020

2121
if ($item->menu_image) {
@@ -26,7 +26,7 @@
2626
$linktype = JHtml::_('image', $item->menu_image, $item->title);
2727
}
2828

29-
if ($item->params->get('menu_text', 1)) {
29+
if ($item->getParams()->get('menu_text', 1)) {
3030
$linktype .= '<span class="image-title">' . $item->title . '</span>';
3131
}
3232
}

0 commit comments

Comments
 (0)