Skip to content

Commit

Permalink
Fix broken avatar URL in invitation
Browse files Browse the repository at this point in the history
  • Loading branch information
JustBlackBird committed Mar 24, 2015
1 parent 2031d82 commit a3f6885
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mibew/libs/classes/Mibew/Controller/WidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ public function indexAction(Request $request)
$operator_name = ($locale == get_home_locale())
? $operator['vclocalename']
: $operator['vccommonname'];
$avatar_url = $operator['vcavatar']
? $this->asset($operator['vcavatar'], AssetUrlGeneratorInterface::ABSOLUTE_URL)
: false;

// Show invitation dialog at widget side
$response_data['handlers'][] = 'invitationCreate';
$response_data['dependencies']['invitationCreate'] = array();
$response_data['data']['invitation'] = array(
'operatorName' => htmlspecialchars($operator_name),
'avatarUrl' => htmlspecialchars($this->asset(
$operator['vcavatar'],
AssetUrlGeneratorInterface::ABSOLUTE_URL
)),
'avatarUrl' => htmlspecialchars($avatar_url),
'threadUrl' => $this->generateUrl(
'chat_user_invitation',
array(),
Expand Down

0 comments on commit a3f6885

Please sign in to comment.