Skip to content

Commit

Permalink
Fix [] operator not supported for strings in kalatheme_process_page()
Browse files Browse the repository at this point in the history
Fixes #311

This fix was provided by @labboy0276 over at #311
  • Loading branch information
RobLoach committed Oct 25, 2018
1 parent b197725 commit 14acd52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ function kalatheme_process_page(&$variables) {

// Add local actions as the last item in the local tasks.
if (!empty($variables['action_links'])) {
if (empty($variables['tabs']['#primary'])) {
$variables['tabs']['#primary'] = array();
}
$variables['tabs']['#primary'][] = array(
'#theme' => 'menu_local_actions',
'#menu_actions' => $variables['action_links'],
Expand Down

0 comments on commit 14acd52

Please sign in to comment.