Skip to content

Commit

Permalink
Fixed auto_suggest
Browse files Browse the repository at this point in the history
Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed May 8, 2013
1 parent 241a867 commit 3ec203a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sources/Subs.php
Expand Up @@ -3834,6 +3834,10 @@ function setupMenuContext()
if (isset($context['menu_buttons'][$current_action]))
$context['menu_buttons'][$current_action]['active_button'] = true;

// No need for accurate text if we are in xml mode
if (isset($_REQUEST['xml']))
return;

// Update the PM menu item if they have unread messages
if (!$user_info['is_guest'] && $context['user']['unread_messages'] > 0 && isset($context['menu_buttons']['pm']))
{
Expand Down
2 changes: 1 addition & 1 deletion sources/controllers/Suggest.controller.php
Expand Up @@ -56,7 +56,7 @@ function action_suggest($checkRegistered = null)
{
$function = 'action_suggest_' . $searchTypes[$_REQUEST['suggest_type']];
$context['sub_template'] = 'generic_xml';
$context['xml_data'] = $function();
$context['xml_data'] = $this->$function();
}
}

Expand Down

2 comments on commit 3ec203a

@norv
Copy link

@norv norv commented on 3ec203a May 8, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/haz lost count of oopses

@emanuele45
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/me thinks Norv wants to make the challenge more interesting... :P

Please sign in to comment.