Skip to content

Commit

Permalink
Merge pull request #312 from drupalprojects/fix/JohnO/ktheme-311--dom…
Browse files Browse the repository at this point in the history
…ination

Fix [] operator not supported for strings in kalatheme_process_page()
  • Loading branch information
RobLoach committed Oct 25, 2018
2 parents b197725 + 14acd52 commit 5466aa6
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 5466aa6

Please sign in to comment.